Extending a limit order

Forums ProRealTime English forum ProOrder support Extending a limit order

Viewing 2 posts - 16 through 17 (of 17 total)
  • #215100

    I’ve updated the code but I knew immediately that it wouldn’t generate the entry signal – it is my fault because I don’t know how to define “Definitehigh” properly. Doing it as “highest[10]” when the market is rising will use a bar that is too recent. In the case of the screengrab, the highest in the range of 10 is simply the previous bar, which isn’t what I want. I need it to look back to find the high that was previously the highest before the market went upwards (at 10:25am on the screengrab). It’s similar to how someone would look back a certain number of bars to find a significant high in a divergence system. How would I do this?

     

    #215335

    You can use a LookBack period to shift the search leftwards:

     

     

Viewing 2 posts - 16 through 17 (of 17 total)

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