Hi, thanks a lot for sharing your automatic trading strategy with us. Could you please provide more information about your backtest please? What is the timeframe? What is the period? It would help everyone to have a better opinion about the strategy 🙂
Instead of dealing with negative/positive values you might use ABS in line 13
1
body=abs(close-open)
also
1
CS=0.3
is your treshold value, but, for example:
Dax will (almost) NEVER have such a small difference in price, something like opening at 12500.0 and closing at 12500.3
Forex pairs need will HARDLY have that difference in a single candlestick, EurUsd opening at 1.1500 then dropping suddenly to 0.8500 or raising to 1.4500
I suggest that you refer to PIPS and use the reserved word
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue