Use indicator value as a constant

Forums ProRealTime English forum ProBuilder support Use indicator value as a constant

Viewing 2 posts - 1 through 2 (of 2 total)
  • #183736

    Hi Everybody

    I’m using the ATR indicator as my Stop loss and profit target and I want that value to not update with each new bar. I’ve tried different methods but nothing works so far.

    Here the Value of “ATR” updates as every new bar opens but I want to only get the value from the same bar as I opened my position and use that value as a constant but I can’t seem to figure out how.

    Thanks in advance

    #183781

    There you go:

    embedding the two lines in the IF…ENDIF block where a trade us entered ensures they won’t be executed each candle.

     

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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