IF market has a big move

Forums ProRealTime English forum ProOrder support IF market has a big move

Viewing 3 posts - 1 through 3 (of 3 total)
  • #5774

    Hi!

    Dose anyone now how to code: IF the instrument you trade goes up 5% one day then dont take trades the day after.

    I would be grateful for any help 🙂

     

    #5780

    Hello mikael,

    That’s pretty easy. First look for the variation from yesterday:

    Then test the “var” variable if it’s superior to your threshold (5% here), if so, then define the variable “allowtrade” to 0:

    Then you can test this variable in your order launch conditions (example):

    Tell me if it does the trick! 🙂

    #5827

    Thanks! It works :). I had thought about something like that but I couldn’t put it together.

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

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