Oh boy! Here goes
I have named this indicator AsGoodAsItGets: I would like to get an alert to notify me when it hits the chart, such as a chime. Here is the code:
# AsGoodAsItGets Indicator
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-9-22 First Edition
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;
def tenkan_period = 9;
def kijun_period = 26;
def Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;
def avgPerc = ((Kijun - close) / Kijun) * 100;
plot signal = !isNaN(EIL) within 15 bars and low < Kijun and avgPerc < 15 and avgPerc > 0 and avgPerc[1] < avgPerc;
signal.setDefaultColor(color.white);
plot KijunCross = signal within 10 bars and Crosses(close, kijun, CrossingDirection.ABOVE);
kijuncross.setDefaultColor(color.white);
def overKijun = (kijunCross within 10 bars or overKijun[1] == 1) and low > kijun;
plot overKijun1 = overKijun;
overKijun1.setDefaultcolor(color.white);
plot signaldown = !isNAN(EIH);
signaldown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_down); AddLabel(!isNAN(EIH),"Short",color.white);
AddChartBubble(SignalDown, high, "Short", Color.white, yes);
plot signalrevBot = !isNaN(EIL);
signalrevBot.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_up);
AddChartBubble(Signalrevbot, low, "Long", Color.white, no);
Thanks- some of my friends up North told me about a TradingView Indicator developed by Harry Wang group but I don't want to join both him and TradinView and so I put this one together which my friends up north say follows the one on TradingView very closely. I use it mostly for day trading the SPY and QQQ on 2 min and 5 min charts ands try to set the SD at the tops/bottoms for these.
I have named this indicator AsGoodAsItGets: I would like to get an alert to notify me when it hits the chart, such as a chime. Here is the code:
# AsGoodAsItGets Indicator
#CSR Buy/Sell Arrows with Short/Long Bubbles
#Developed 4-9-22 First Edition
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;
def tenkan_period = 9;
def kijun_period = 26;
def Kijun = (Highest(high, kijun_period) + Lowest(low, kijun_period)) / 2;
def avgPerc = ((Kijun - close) / Kijun) * 100;
plot signal = !isNaN(EIL) within 15 bars and low < Kijun and avgPerc < 15 and avgPerc > 0 and avgPerc[1] < avgPerc;
signal.setDefaultColor(color.white);
plot KijunCross = signal within 10 bars and Crosses(close, kijun, CrossingDirection.ABOVE);
kijuncross.setDefaultColor(color.white);
def overKijun = (kijunCross within 10 bars or overKijun[1] == 1) and low > kijun;
plot overKijun1 = overKijun;
overKijun1.setDefaultcolor(color.white);
plot signaldown = !isNAN(EIH);
signaldown.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_down); AddLabel(!isNAN(EIH),"Short",color.white);
AddChartBubble(SignalDown, high, "Short", Color.white, yes);
plot signalrevBot = !isNaN(EIL);
signalrevBot.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_up);
AddChartBubble(Signalrevbot, low, "Long", Color.white, no);
Thanks- some of my friends up North told me about a TradingView Indicator developed by Harry Wang group but I don't want to join both him and TradinView and so I put this one together which my friends up north say follows the one on TradingView very closely. I use it mostly for day trading the SPY and QQQ on 2 min and 5 min charts ands try to set the SD at the tops/bottoms for these.