Close below 50% of the total bar

Forums ProRealTime English forum ProOrder support Close below 50% of the total bar

Viewing 4 posts - 1 through 4 (of 4 total)
  • #112008

    Hello!

     

    I was wondering how to code a condition for short: I want the the close to be in the bottom 50% of the total bars range.

    Any ideas?

    Regards

    #112021

    There you go:

     

    #112032

    Thank you Robert!

    #112266

    Interesting how one differs from the other. The result is the same but I would write that code snippet this way:

    If I want to only sell short if it is in the bottom 10% I merely replace 0.5 with 0.1. This makes it very easy to run optimizations and find out if there is different edge in different percentages.

    I’m not saying that one is better than the other, just that there are more ways than one to skin a cat.

     

    /F

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

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