This question mat be outside the remit of this forum but I'll ask it anyway.
I have an EFS which changes the bar colour to red when in a downtrend and green for an uptrend. All straight forward stuff.
What I need to do is 'tweak' the settings by backtesting it. My entry criteria is e.g. 2points above the first green bar of the colour change.
How do I go about giving it a command to enter at that (high+2)level which could be reached on the following bar or several bars later or not at all, without it just immediately registering an entry price that the market hasn't actually reached?
I can run a backtest using the bar close but many of the trades are invalid because they did not meet the exact criteria and editing them out is more trouble than its worth.
Are there any examples of something similar I can look at to try and decipher.
Many thanks
I have an EFS which changes the bar colour to red when in a downtrend and green for an uptrend. All straight forward stuff.
What I need to do is 'tweak' the settings by backtesting it. My entry criteria is e.g. 2points above the first green bar of the colour change.
How do I go about giving it a command to enter at that (high+2)level which could be reached on the following bar or several bars later or not at all, without it just immediately registering an entry price that the market hasn't actually reached?
I can run a backtest using the bar close but many of the trades are invalid because they did not meet the exact criteria and editing them out is more trouble than its worth.
Are there any examples of something similar I can look at to try and decipher.
Many thanks
Comment