I am trying to code a strategy that goes like this:
If current bar has this characteristic
and
The next bar after current bar closes above the current bar
then
Go long limit at median of the bar zero (current bar)
Although I can get results doing this using the Strategy Analyzer but I am thinking that in a real situation this won't be possible because the program can't handle going back to current bar median price and place a limit order at that price. I suspect this because in the Analyzer the entry is on the next bar after the current bar when it should have waited to see that bar closes above the current bar before placing the trade. Can you give me some guideline on how I can resolve this situation. Thank you.

Comment