Hi,
Since my formula runs once in time period, defined by Back testing bar rate, i can't check position entry/exit condition during that period (say, an hour resolution). I didn't find standard 'Take profit" or "Stop loss" parameters that I can specify within doLong() or doShort(), that will close position automatically and record a realistic price.
Since real-life brokers must provide such functionality, how can I achieve the same with Strategy object? Otherwise, my backtesting result either must run only in per-tick resolution or will provide highly unrealistic results (depending on market volatility and bar resolution).
Am I missing something in Strategy tutorial?
Since my formula runs once in time period, defined by Back testing bar rate, i can't check position entry/exit condition during that period (say, an hour resolution). I didn't find standard 'Take profit" or "Stop loss" parameters that I can specify within doLong() or doShort(), that will close position automatically and record a realistic price.
Since real-life brokers must provide such functionality, how can I achieve the same with Strategy object? Otherwise, my backtesting result either must run only in per-tick resolution or will provide highly unrealistic results (depending on market volatility and bar resolution).
Am I missing something in Strategy tutorial?
Comment