Daily ATR range for intraday chart

Daily ATR range for intraday chart

This indicator display graphically on any intraday chart, the daily Average True Range of the last 20 periods (periods can be modified in the indicator parameter of course) added or substract respectively to the current daily low and the daily high.

An upper and a lower line display these 2 values. I don’t know exactly how it is supposed to be traded, but I think it should be used as breakout of levels or bouncing trades.

This indicator seems to be known as “LEDGE ATR” and has been requested to be converted from MT4 version in our English forums (link in the indicator code).

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. DowBoy • 02/03/2017 #

    Hi Nicolas,
    Have a problem with this line of code
    defparam drawonlastbaronly=true
    Please complete the syntax of this line.
    Hope you can advise Nicolas
    Best regards

    • Nicolas • 02/03/2017 #

      This indicator is prorealtime 10.3 only compatible. If you are still using previous version, that’s why you get this error. 

  2. DowBoy • 02/03/2017 #

    Thanks for the heads up Nicolas!
    I’m actually using PRT Premium via IGIndex Spreadbet Account.
    At the moment they are still using v10.2
    Think I might drop them an email, see when upgrade is due!
    Cheers Nicolas

  3. RoLaDay • 02/03/2017 #

    Hello Nicolas,
    i just tried this code but the program says “atrperiod” is not defined. I use PRT 10.3. Can you please help me with this? Thanks a lot

    • Nicolas • 02/03/2017 #

      Please download the ITF file and import it into your platform to get the parameter in your indicator window.

  4. RoLaDay • 02/03/2017 #

    Works great! Thanks!

  5. RoLaDay • 02/03/2017 #

    is it possible that the indicator works for the history too not only for the actual day? e.g. for backtesting?

    • Nicolas • 02/03/2017 #

      This could be possible but would need a complete recode of the indicator logic. You can add a query on forum, but I don’t know when I could make it.

  6. saulyte1 • 02/03/2017 #

    doesn’t work on IG PRT 10.3 get the indicator window when imported but empty and no projected levels on the chart as on yours…strange…

    • Nicolas • 02/03/2017 #

      Please add the indicator on price. Use the wrench in the upper left corner of the price chart to add the indicator. 

    • saulyte1 • 02/03/2017 #

      thank you,  seems to be working now.

  7. darraghcoyle@ • 02/03/2017 #

    I have downloaded ITF file and imported it to PRT, when I choose the indicator I get a blank section with indicator name below main chart, how does it show on main screen.
    Thanks Darragh

    • Nicolas • 02/03/2017 #

      Please apply it on price instead (use the wrench at the upper left side of the price chart).

  8. darraghcoyle@ • 02/03/2017 #

    Yes , I did click on the wrench icon, but there is no option to apply on price, it only shows the name of the indicator . I have tried to attach screenshot but it says I cannot attach files to this .

  9. darraghcoyle@ • 02/03/2017 #

    got it sorted thanks

  10. DanT01 • 02/03/2017 #

    Hi Nicolas,

    Thanks very much for uploading this, works great. Is there a way to turn this into a scanner? I am basically after getting an alert when something breaks through the ATR indicator level but I am not sure how to set that up.


    • Nicolas • 02/03/2017 #

      Please add new request in the appropriate forum. You can also use the assisted creation in the platform. Firstly, you’ll have to add the high end low ATR levels in the RETURN instruction.

  11. pseven5 • 363 days ago #

    Could anyone please help me install this. I am adding it via the wrench but it just appears greyed out and doesn’t display. Thanks

    • Nicolas • 363 days ago #

      What timeframe? Be sure to add sufficient xx Bars displayd for the indicator to compute correctly.

  12. crolakstrading • 362 days ago #

    Hi Nicolas,
    this is used as a bouncing off strategy… lets say the market open of the candle and bounce off from daily ATR!!! not sure why it doesn’t match the Daily ATR indicator on prorealtime? Example: on the FTSE my indicator Daily ATR 14 period says 92.548 but your one says D1atr:138.9 ?? any reason why? please help??

    • Nicolas • 362 days ago #

      Did you change the period to 14 in this indicator too? Are you using customized timezone for FTSE?

    • crolakstrading • 362 days ago #

      hi Nicolas,
      yes i have change the in this indicator time to 14 and also tried with 20 and im using this indicator on the 15min chart.. but either 14 period or 20 period doesnt match the normal daily ATR period 14 or 20?
      EX: today FTSE – daily ATR = 88.49 and the indicator shows as D1atr 132.9
      EURJPY Daily ATR (14)= 127.6 and the indicator(14) 102.4
      GBPUSD daily ATR =133.1 and indicator D1atr = 118.33

    • Nicolas • 362 days ago #

      Be sure to have sufficient bars displayed on your chart for the indicator to compute correctly.

    • crolakstrading • 362 days ago #

      the indicator would show any lines if threre’s not enough sufficient bars displayed .. so 15mins i use minimum 1000 units.. i have tried even 1month but get the same results?? not sure why???

  13. crolakstrading • 362 days ago #

    sorry i meant the indicator would NOT show any lines if threre’s not enough sufficient bars displayed .. so 15mins i use minimum 1000 units..

  14. crolakstrading • 362 days ago #

    at least 20pips difference pretty much all the markets!!!!

    • Nicolas • 362 days ago #

      Yes, but that’s a translation of the original code someone asked in forums.

    • crolakstrading • 362 days ago #

      hi Nicolas.. please is there’s a way to fix this? what am i doing wrong? iis everyone else get the right daily ART shown as the indicator??? when i change the ATR period to 7 on the indicator.. that will come a bit closer to daily 14 period ATR!!!!

  15. crolakstrading • 361 days ago #

    what can i do to change this in to the right daily ATR? is it something to do with the timezone?

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
2 weeks ago
juanj I have actually completely redesigned this indicator with loads of improvements, so will res...
Brisvegas Thats Awesome thank you
ALE Very Very Nice
manel Hi - Many thanks for this and your other analytical codes, stellar work - very useful ! With...
Vonasi Good idea Manel. I have posted a new version here that shows results as a percentage: https:...
ottimo Congratulations Nicolas, What should I do for the 2 files I have to add them both in the gr...
Nicolas Only the "//PRC_StepALMA-VHF Hi/Lo band" is required, it uses the second code automatically....
ottimo Thank you Nicolas, great indicator, N. 1
DanT01 Hi Nicolas, great work! Is it possible to contact you to help with a couple of indicators? T...
Nicolas Assistance is free on forums. For private job, you can contact me with the trading programmi...
kuroobi Parfait , merci beaucoup .
Juan Salas Hi FULVIO09, Nice piece of work. It seems to work very well. Does only work for INDEXES??...
Johann Hi @FULVI09, I understand the instructions however I'm not too sure how to determine the "p...
Tradingrob Hi Nicolas, when i upload this indicator in my list and use it as indicator. I get a totally...
Nicolas Apply it on the price chart. The indicator plot just one single line. There are two in the...
Nicolas Should not if adxlen variable is superior to 0.
AussieTrader Nicolas, Can you explain the numerator logic - e.g. Line 35 is (sTR[1] - sTR[1]) which wo...
Nicolas You are right, this is useless. Since I converted it from another programming language, I a...
AGTrader Interesante, muy visual Doc. Felicidades!!!
Andraxx simplemente impresionante Dom...te sigo en youtube. Me ha gustado tu canal. Gracias por comp...
Caribeengeek Bonjour j’avais vu que vous proposiez d’écrire des codes pour ceux qui s’y connaisse pas Mai...
Caribeengeek Les devises unité
Nicolas Merci d'utiliser le forum pour les demandes de programmation personnalisée
winnie37 Merci Nicolas. J'ai un bug d'affichage quand j'utilise ton indicateur. La bougie en cours ...
ullle73 nicolas, can you somehome make this to be in the background of the price chart?
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
Nicolas Sorry again, doing my best to fix this problem..
Gianluca Sorry but the 2° code that you posted have some problem it doesn't work
Leo I have to check
ALE Nasdaq!
Wester HI, which values do I need to change before I can use it?
ALE Hello Wester, you can change or not every variables that are in the code. if you need as...