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 • 354 days ago #

    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 • 354 days ago #

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

  4. RoLaDay • 354 days ago #

    Works great! Thanks!

  5. RoLaDay • 354 days ago #

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

    • Nicolas • 354 days ago #

      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 • 354 days ago #

    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 • 354 days ago #

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

    • saulyte1 • 354 days ago #

      thank you,  seems to be working now.

  7. darraghcoyle@ • 277 days ago #

    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 • 277 days ago #

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

  8. darraghcoyle@ • 277 days ago #

    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@ • 277 days ago #

    got it sorted thanks

  10. DanT01 • 174 days ago #

    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 • 174 days ago #

      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.

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
jebus89 Big thanks for sharing this :) Seems to work as expected, good stuff.
Leo ..for some reason I can not add PRT code properly... anyway
Vonasi Thanks for that Leo. Apparently there is some fault with the site that means posting code is...
Nicolas Sorry again, doing my best to fix this problem..
patrick356 Hi Andreag76, Did you test it in shorter time frames? Any success? / Patrick
lizmerrill re:AverageTrueRange[atrtrailingperiod]((close/10)*pipsize)/1000, can you explain to how the ...
ALE There is not a particular motive, that formula allows to find a relative value of the price,...
2 months ago
Trinity Impulse
Trinity Impulse
ribou bonjour Nicolas Bravo pour l'ensemble de ton oeuvre très riche en informations de qualité ...
Nicolas Cet indicateur nécessite que l'instrument possède des Volumes. Sinon il ne pourra pas se cal...
ribou ah d'accord merci beaucoup
Rolanbay Merci beaucoup, c'est exactement ce qu'il fallait faire.
Youness Charif Bonjour Nicolas, L'indicateur s'affiche dans une fenêtre en bas et non pas sur le cours....
Nicolas Appliquer l'indicateur sur le prix à l'aide de la clé à molette située en haut à gauche de v...
Wilko In the IF-clause containing the BUY or SELLSHORT instruction you could add a line containing...
Wilko In answer to SAM: The Logic of the cover clause containing the same logic as the entry-claus...
JanWd Tried the code, nice concept, seems to work quit well for US/EUR 2hrs, Other markets seems n...
Jean-Pierre Poulain When I buy and when I sell ?
Nicolas The featured image of the post do not deserve the indicator you are right, I attached other ...
Nicolas It is described in the post already :) The BUY/SELL signals are quite similar of what you ca...
imokdesign Hi Everybody, when I look at the strategy I felt the need to implement a Moneymanagement-Sy...
Inertia newlevel then multiplier=multiplier+1 oldlevel=newlevel newlevel=strategyprofit+startequi...
Inertia Hi Bjoern, I was playing around with your code this morning (EUR/USD 5'). Thank you to the...
ALE Very useful, it could potentially solve many problems of false signals!!Thanks Nicolas!
ALE Hello Nicolas  which parameters could be modified to slow volatility? The viscosity? Thank...
Nicolas viscosity and sedimentation are only the classic "fast/slow" periods parameters for this ind...
albertocampagna Sei grande Nicolas :-)
SAcht Dear Nicolas, Great work, thank you very much!I would love to use the indicator in ProScree...
SAcht btw: The above-posted ProScreener is supposed to show stocks for which the center line has i...
Wilko  Nice method of making linked AND-statements more readable!
Wilko And not only readable.... makes it much easier to iterate different entry/exit-conditions, d...
IGOSNELL Hi Interesting strategy, when I used $ M-R Dif EURUSD M15 Long if does not enter any positi...
victormork Hi, I would just like to share my own take on this strategy. I'm using 30 min on EURUSD but ...
mckubik Thanks. I will run a Test. 
poonsl2828 Hi! bjoern May i know what timing should i change for time zone (Singapore (GMT +8:00) ...
bluetime6 Hello Nicolas. Can i ask you for something? I backtested your strategy in Dax 4H Timeframe...
Mirko borgna va bene anche france 40, ho modificato stoploss a 50 e takeprofit a 90
Nicolas Thanks for contributing to the "ichimoku section" of the prorealtime code library Don't he...
sourberry Thank you , this is a great indicator works beautifully. Could you kindly modify to scr...
Laurent7533 Bonjour, J'aimerais utiliser cet indicateur dans un autre indicateur mais quand j'utilise l...
Degardin Arnaud Ajoute ceci à la strategie pour gerer les sorties dans le proorder: //ATR TRAILING STOP //...
Nicolas Use the wrench of the price chart! Upper left of the window
Dymjohn The wrench shows options for the components of the indicator not how to show in the main cha...
Nicolas http://www.prorealcode.com/topic/overlapping-indicators/