Hello, I’m testing a simple backtest, below is an outline of what it should do
Adjust the level at which a Short is triggered if a higher low for the previous candle occurs.
The level of the Short is set to the value of the new higher low minus 10pips
For some reason it never triggers, if I set an explicit vale like, 1.48020 then it’ll work fine, attached is a screenshot of my backtest with indicators as to where it starts and where I expect the trigger to occur. Any help or suggestions would be greatly appreciated.
I reckon the problem is to do with the trackPips, but I can’t explain why (without thinking how to explain, maybe more later)! 🙂
Also your code doesn’t mention highest low (or can’t I see it?) but your image states that Sellshort should have executed at 10 points below highest low?
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