HI, Could somebody look at the attached code and see if there is a problem with it?. Although I’ve managed a few successful ‘assisted creation back tests’, I’m totally new to writing it!. What I’m trying to do first is to place an order when price breaks either above or below the high/low of the 8.00 – 8.15(UK) m15 candle but when I run this in a backtest nothing happens?.
Then add pending stop orders at found levels to be sure trades will be successfully executed at that prices instead of testing if the close of the next candlestick is above or below which is often too late because of the not inside bar look (code is only read once at Close).
Let us know how it goes and any additional questions.
Thanks Nicolas, If only I had seen the video beforehand – I could have saved myself a couple of hours of hair pulling!!. I will report back when I have tried a few ideas. Dave
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