Can you please add Trend Magic indicator, as seen on TradingView? Here is the pinescript:
//@version=4 study("Trend Magic", shorttitle="TM", overlay=true, format=format.price, precision=2, resolution="") period=input(20,"CCI period") coeff=input(1,"ATR Multiplier") AP=input(5,"ATR Period") ATR=sma(tr,AP) src=input(close) upT=low-ATR*coeff downT=high+ATR*coeff MagicTrend=0.0 MagicTrend := cci(src,period)>=0 ? (upT<nz(MagicTrend[1]) ? nz(MagicTrend[1]) : upT) : (downT>nz(MagicTrend[1]) ? nz(MagicTrend[1]) : downT) color1= cci(src,period)>=0 ? #0022FC : #FC0400 plot(MagicTrend, color=color1, linewidth=3) alertcondition(cross(close, MagicTrend), title="Cross Alert", message="Price - MagicTrend Crossing!") alertcondition(crossover(low, MagicTrend), title="CrossOver Alarm", message="BUY SIGNAL!") alertcondition(crossunder(high, MagicTrend), title="CrossUnder Alarm", message="SELL SIGNAL!")
Please authenticate to join the conversation.
In Review
π‘ Feature Request
Indicators
Almost 2 years ago

southsidejames
Get notified by email when there are changes.
In Review
π‘ Feature Request
Indicators
Almost 2 years ago

southsidejames
Get notified by email when there are changes.