Single candle breakout code

Forums ProRealTime English forum ProOrder support Single candle breakout code

  • This topic has 2 replies, 2 voices, and was last updated 7 years ago by avatarDave.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #18965

    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?.

     

    Thanks,  Dave

     

    #18966

    To make a breakout system you should first have a look on this video I made to how to build a break out box: http://www.prorealcode.com/blog/video-tutorials/create-breakout-box-2-hours/

    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.

    #18967

    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

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login