Breakout Strategy help with my code

Forums ProRealTime English forum ProOrder support Breakout Strategy help with my code

Viewing 5 posts - 1 through 5 (of 5 total)
  • #31048
    Abz

    Hello

    looking for some help on the strategy below.

    1. upper is the highest price between 080000 and 090000
    2. enter short when price goes under “upper” but only if next bar closes under upper and high on this bar must also be below upper
    3.  SL shoud be the amount of points between upper and lower in the timeframe 080000 – 090000
    4. profitt target shoud be lower from the time frame 080000 – 090000
    5. same goes for Long
    6. enter long when price goes under lower and next bar closes above lower and lowest of this bar is also above lowest.
    7. SL shoud be the amount of points between upper and lower in the timeframe 080000 – 090000
    8. profitt target shoud be upper from the time frame 080000 – 090000

     

    #31075

    Hi Abz, your code seems a bit “scrambled”, I think you did a lot of debugging and copy/paste 🙂

    I changed a bit some of the lines and added some variables too (still only short position):

    Please consider that I did not test this code, please do your own tests, thank you.

    #31165
    Abz

    Thanks Nicolas the code looks much better 🙂

    for long will this work? i tried it and i dont get the entry points i am looking for.

     

     

    #31303
    Abz

    hello

    i am testing the strategy with short positions and i see that there are many trades that are executed that does not fulfill the criterias in the code see attached screen. any idea why?

    #31326

    Your upper and lower levels, are they correctly calculated? Did you GRAPH these variables in ProBacktest to see if they are ok?

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

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