How do I stop repeat signals

Forums ProRealTime English forum ProBuilder support How do I stop repeat signals

Viewing 13 posts - 1 through 13 (of 13 total)
  • #39423

    I am creating some indicators based on various combinations including moving average crossovers.   Once I have an UP signal, how can I code the indicator to ignore more UP signals until there has been a DOWN signal?

     

     

    #39436

    Make a variable that store the last signal direction and test it before launching a new signal.

    #39466

    Nicolas thanks for your reply but I’m sorry I don’t understand how to do this.

    #39517

    I could show you directly into your code if you can share it with us.

    #50953

    I bump this thread since i want the same thing. For this current easy command i dont want it to give repeated signals when Lower Low and Lower Close repeats.

    Thankful for help!

     

    //Viktor

    #50955

    I tried this

     

    and it gets rid of one repetition. How do i keep it/determine length?

    #50956

    i did this now and it works OK but if anyone has a better suggestion i all ears 🙂

     

    #51046

    You could have saved the barindex of the first signal and then test if enough bars have passed since then to give a new signal.

    Or store the first signal price into a variable and test if the new signal is different from the last saved one.

    #51050

    You mentioned that in your first reply above, but i dont know how to do that. Can you please provide a code example?

    Thanks

    #51269

    ???

    #51280

    Sorry @lebrinque, but sometimes between 2 topics, I take some rest 🙂 It was days off yesterday in France also!

    This is the amended code:

    ‘lastsignal’ variable is your new friend, take care of him 🙂

    1 user thanked author for this post.
    #51282

    Thank you!!

    #51296

    Also @nicolas the other topic i created “Command depending on prior command” as a spinoff from this one – hope it was OK to create a new thread for that.

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

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