TradingView
KyleBaran
٨ كانون الثاني يناير ٢٠٢٣ ٢٣:٣٤

ATR+ 

EUR/USDOANDA

الوصف

This is an indicator which uses the ATR (average true range) to calculate take profit levels, stop loss levels, and position sizing.
It acts an ATR indicator, based on concepts found in the No Nonsense Forex (NNFX) trading system.

ATR works by looking at the past N periods (14 by default) to see on average, how many pips or dollars an asset has moved. It is widely used by itself or as part of another indicator.
This script also implements money/risk management to determine:

Take Profit: 1.00x ATR (default)
Stop Loss: 1.50x ATR (default)
Risk: 2% of account size (default)
Position Sizing: How many lots/shares/units you need to achieve the indicated risk
Trade Value: The total cost of the lots/shares/units

This indicator only displays information in the status line. It does not guarantee a successful trade, and is only intended to be used to calculate take profit and stop loss levels, or as a point of reference when entering trades. Always do your own research.

ملاحظات الأخبار

  • Moved the Balance input to be the first thing so it's easier to find
  • Added support for smoothing the data
  • Added a toggle that will plot the ATR value, as in the classic ATR indicator on Trading View
  • Added a toggle that will display the ATR value as a percentage of closing price. This can help to identify volatile assets when trading.


Regarding the ATR%: this can help you find assets that are more volatile, which means you need less capital to have the same amount of risk in a trade. For example, AMEX:BOIL is a much more volatile asset than AMEX:SPY or FXOPEN:XAUUSD. This value isn't intended to be used as a signal, but it can serve as a reference point. ATR calculations for TP/SL are still done using the unsmoothed, regular ATR value; this is by design.

ملاحظات الأخبار

Made a few cosmetic changes to the descriptions / typos

ملاحظات الأخبار

Updated by adding a "Relative Values" toggle. By default, the indicator shows the calculated TP and SL based on user-defined risk. If enabled, it will instead calculate the actual TP and SL levels using the current closing price.

ملاحظات الأخبار

Forgot to take longs and shorts into account! The easiest workaround for this seems to be outputting another plot line. Sorry for the confusion
التعليقات
DarthZane
this is awesome thank you so much
KyleBaran
@DarthZane, thanks! I wanted to improve on the existing ATR indicator, but keep it as a simple drop-in with a little more information. I've used it a lot with setting up trades and position sizes, so I hope you find it useful too.
DarthZane
@KyleBaran, yeah it helps a lot.. I was working on my nnfx algo a few years ago but than got busy. I'm back into it and working on that plus trying to combine it with quarters theory by ilyan yotov. The drop in is awesome I really apprecite it
KyleBaran
The yellow number (units) is the number of shares you have to purchase to have optimal risk for a given trade (given your TP/SL levels). Since you'd be buying shares, this actually seems like it would be a proxy for option delta too. Options traders, let me know if you try this and how it works out!
المزيد