Hi, I am trying to backtest an intraday trading system and I cannot figure out how to sell on Close at the end of the day, as the position is automatically closed at the end of the day for daytraders. I have hourly database and I have the entry signal generated but I don't know how to program it in AFL to sell at the end of the day on Close price.
Theoratically, this should work but it does not sell on EOD Close. Sell=1; SellPrice=TimeFrameGetPrice( "C", inDaily, 0); Do you have an idea what the problem is? Thanks a lot.
