Hi. Could anyone advise me it there is any way of running a backtest that monitors the price action within the time frame of a bar and trades accordingly.
For example if I am trading on five minute bars and have entered a position with a MA crossover on this basis, is it possible to exit the position immediately upon the market price falling 10 point/pips below the entry price, or does that exit need to wait for the end of the 5 minute period/bar ?
I have only been able to come up with scripts that exit at period end.
Being able to exit within the period would replicate real stop losses in the market, and will make a big difference to results when trading highly levered forex positions in fast markets.
Any help would therefore be most appreciated !
thanks, Nigel.
For example if I am trading on five minute bars and have entered a position with a MA crossover on this basis, is it possible to exit the position immediately upon the market price falling 10 point/pips below the entry price, or does that exit need to wait for the end of the 5 minute period/bar ?
I have only been able to come up with scripts that exit at period end.
Being able to exit within the period would replicate real stop losses in the market, and will make a big difference to results when trading highly levered forex positions in fast markets.
Any help would therefore be most appreciated !
thanks, Nigel.
Comment