Please Help – Take only the first Cross

Forums ProRealTime English forum ProOrder support Please Help – Take only the first Cross

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

    Hello everyone,

    I would like the following code to take only the first cross over or cross under, as the more we progress in the trend the more likely to have fake out.

    Can you please indicate how can I modify the code to have only the first Cross Long or Short? and how to keep the trade all the way up or down?

    Thank you.

     

    #220234

    There you go (I couldn’t test it as some variables are missing):

     

    1 user thanked author for this post.
    #220239

    Thank you Roberto.

    #220244

    Thank you Roberto. The code works fine for the first Signal of the day, then doesn’t take any of the other Signals in the same direction. What I would like to achieve is to take the first Signal Long until the First Signal Short happens, then take a Short until the next Signal Long happens and take Long, etc.

    What I would like to avoid is taking two consecutive Long or two consecutive Short. If I exited the first Signal Long with TP or SL and then a second Signal Long appears, I d’ont want the system to take this second Signal in the same direction of the previous one.

    I’ve added the variables optimized with backtest on 2k units on 5 min chart.

    I hope my request is clearer now.

     

    #220312

    There  CANNOT be two consecutive CROSSOVERs in the same direction!

     

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