Pull back strategy

Forums ProRealTime English forum ProOrder support Pull back strategy

Viewing 1 post (of 1 total)
  • #123162

    Hello,

    I would like to build a code which will buy when the price made a pull back of 50% of the current wave.

    I would like to set up manually the top and the bottom of the wave when i launch the strategy but if the price continue rising i would need the code to update the new highest and calculate the new level of 50%.

    I tried this code which is not working properly:

     

    I tried to backtest it with the graphonprice function but the barindex doesn’t take in consideration the exact period of time i want to test and rather takes all the previous data which bring back a wrong value.

    I would be very gratefull if someone could help me on this matter.

     

    Thanks a lot

     

    Christophe

     

Viewing 1 post (of 1 total)

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