OPEN-SOURCE SCRIPT

ATR Position Size Automation

All you have to fill out is your account balance, the % amount of your account you want to risk, and the percentage of ATR you want calculated. If you have 100% it will do a full ATR calculation. So if the ATR is $2 then your risk per share would be $2. If you had 50% in the same example it would be risking $1 per share.

You can also customize what time frame you want the ATR to be calculating off of. Just be aware the calculation will only be right if you are showing a lower time frame on your chart then the one selected on the indicator. (If you are calculating a daily dont be on a weekly chart. You have to be on a Daily or lower)

You can select what boxes you want displayed and if you want the ATR lines on the chart.

ATRpositionsizepositionsizecalculatorpositionsizingVolatility

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer