Cyborgninja33
New member
- Platform
-
- Thinkorswim
- TradingView
Hello,
I’m wondering if there is an easy way to convert the following TOS indicator for use in TradingView? Any help at all would be greatly appreciated!
I’m wondering if there is an easy way to convert the following TOS indicator for use in TradingView? Any help at all would be greatly appreciated!
Code:
#AsGoodAsItGets Indicator without Arrows
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-9-22 First Edition 8-23-22 Revised
#No Arrow Edition 1/1/23
declare upper;
input atrreversal = 2.0;
def priceh = MovingAverage(AverageType.EXPONENTIAL, high, 5);
def pricel = MovingAverage(AverageType.EXPONENTIAL, low, 5);
def EIL = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastL;
def EIH = ZigZagHighLow("price h" = priceh, "price l" = pricel, "percentage reversal" = .01, "absolute reversal" = .05, "atr length" = 5, "atr reversal" = atrreversal).lastH;
plot signaldown = !isNAN(EIH);
AddChartBubble(SignalDown, high+.15, "Short", Color.white, yes);
plot signalrevBot = !isNaN(EIL);
AddChartBubble(Signalrevbot, low-.15, "Long", Color.white, no);
input usealerts = yes;
alert(usealerts and signaldown[1] == 1, "Short", alert.bar, sound.ring);
alert(usealerts and signalrevbot[1] == 1, "Long", alert.bar, sound.ring);
Last edited by a moderator: