AddOrder(OrderType.BUY_AUTO, MktOpen and BUYCOND, open[-1], tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "DirtySanchez");
Sorry for another question. I need to add a condition to my strat. I only want a the BuytoOpen order to be placed if the close of the current bar is > daily open. All the losers are coming during downtrends. The majority of the orders on said losing days were buy orders were placed below the open of the day.
It is for a crossover strategy and I am using a 3min chart.
This is what I currently have on my current buytoOpen order. The buy conditions are "MktOpen" and "BUYCOND" and I can not figure out how to write the condition to not buy unless above the open. Any help will be greatly appreciated.
AddOrder(OrderType.BUY_AUTO, MktOpen and BUYCOND, open[-1], tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "DirtySanchez")
Sorry for another question. I need to add a condition to my strat. I only want a the BuytoOpen order to be placed if the close of the current bar is > daily open. All the losers are coming during downtrends. The majority of the orders on said losing days were buy orders were placed below the open of the day.
It is for a crossover strategy and I am using a 3min chart.
This is what I currently have on my current buytoOpen order. The buy conditions are "MktOpen" and "BUYCOND" and I can not figure out how to write the condition to not buy unless above the open. Any help will be greatly appreciated.
AddOrder(OrderType.BUY_AUTO, MktOpen and BUYCOND, open[-1], tickcolor = GetColor(1), arrowcolor = GetColor(1), name = "DirtySanchez")
Last edited by a moderator: