Background, I see many easy language scripts which open a new position if, for example, it closes above a moving average. Realistically, how do you know that before the daily bar closes, but for strategy back testing purposes, it could use the close price and know there may be slippage if it actually opened X min before close.
My potential solution would be to use a second series with a more granular time-frame than daily to check the condition and enter the trade, but the problem is that it requires intra-day data for back testing and my data providers don't go back that far with historical intra-day data.
Comment