ATR Timeframe on different timeframes

Forums ProRealTime English forum ProBuilder support ATR Timeframe on different timeframes

Viewing 6 posts - 1 through 6 (of 6 total)
  • #176511

    Hi Nicholas and all.

    I have written a code snippet for retrieving the 7hr ATR on a 1 min TF, the same program is used throughout my trading and hence used on different TF’s, however now that the ATR snippet has been added it fails to work on the daily TF …for obvious reasons..

    My question is…with the use of a variable, do you think it would be possible to have the snippet turned off by default?

    I hope that makes sense, I have attached the snippet.

    TIA

    RR

     

    #176512

    Here is a picture….

    #176518

    I added the boolean variable DISABLED which can be ticked/unticked:

    #176526

    Thanks Roberto, this still fails to load on a daily TF (when the code is disabled) …comes up with a ‘multiples’ warning)

    RR

    #176527

    Yes, the TF on your chart MUST be equal or lower that the LOWEST one used in your indicator. In you case you cannot use any TF greater than 7 hours.
    Even lower TFs must be such that 7 hours is a multiple of them. 1-min, 5-min, 6-min, 1h are fine, but NOT 9-min, NOT 2h because 7hours (420 minutes) is not a multiple of them.

    #176533

    Thanks for your help Roberto, I take it that having this snippet transfer between a 1min chart and a daily is a none starter.

    RR

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

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