Price action strategy cant WF test correctly/missing orders

Forums ProRealTime English forum ProOrder support Price action strategy cant WF test correctly/missing orders

Viewing 6 posts - 1 through 6 (of 6 total)
  • #104216

    Hi, I made a mostly price action strategy that also uses some moving averages. The result seems fine but despite having a MA-filter for positions it still longs under the Ma allowed.

    The other problem i have is when i forward test the longs disappears, PRT wont execute the trades! If i add some more conditions they disappear aswell.

    This is Dax 1h timeframe.

    Does anyone know the solution to these problems?

    Kind regards,

    Anders

     

    #104221

    From the atteched pics I can’t see where your three MA’s are.

    Since at line 14 you don’t check MA2, close can be lower than that.

    #104238

    Line 32 should read as below (not Buy to exit a Short trade) …

     

    1 user thanked author for this post.
    #104240

    Thank you both for replying.

    I changed the code to exitshort grahal, thank you for the tip! i’ve only been coding for a week so im still learning. That fixed my problem with the longs below the moving average!

    ma = powerful enough trend to long/short, ma2 = ema to stop trades that have weak trends, and ma3 should be the one that decides if to short or long, sorry for the confusion.

    The Ma visible on the pictures is the long/short filter. The long trades are all visible during regular backtests but during WF almost all of them disappear. 107 trades is missing..

    #104260

    Problem solved by using

     

    #104261

    Max preload bars is 10K, no matter what you write.

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

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