Good afternoon everyone
help to add a sound notification when arrows appear on the chart.
thanks in advance
# TD Ameritrade IP Company, Inc. (c) 2013-2015 гг.
#
entry priceH = high;
entry price L = low;
input percentage Reversal = 5.0;
input absolute reversal = 0.0;
enter atrLength = 5;
input atrReversal = 1.5;
def zigZag = link ZigZagHighLow(priceH, priceL, reversal percentage, absolute reversal, atrLength, atrReversal).ZZ;
def step1 = open[1] >= open и open >= close[1] and open[1] > close[1];
def step2 = open[1] <= open и open <= close[1] and open[1] < close[1];
def upStep1 = step1 and close > open[1];
def upStep2 = step2 and close > close[1];
def downStep1 = step1 и close < close[1];
def downStep2 = step2 and close < open[1];
graph UpStep = (upStep1 or upStep1[-1] or upStep2 or upStep2[-1]) and zigZag == low;
plot DownStep = (downStep1 or downStep1[-1] or downStep2 or downStep2[-1]) and zigZag == high;
UpStep.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
UpStep.SetDefaultColor(GetColor(0));
UpStep.SetLineWeight(2);
DownStep.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
DownStep.SetDefaultColor(GetColor(1));
DownStep.SetLineWeight(2);
help to add a sound notification when arrows appear on the chart.
thanks in advance
# TD Ameritrade IP Company, Inc. (c) 2013-2015 гг.
#
entry priceH = high;
entry price L = low;
input percentage Reversal = 5.0;
input absolute reversal = 0.0;
enter atrLength = 5;
input atrReversal = 1.5;
def zigZag = link ZigZagHighLow(priceH, priceL, reversal percentage, absolute reversal, atrLength, atrReversal).ZZ;
def step1 = open[1] >= open и open >= close[1] and open[1] > close[1];
def step2 = open[1] <= open и open <= close[1] and open[1] < close[1];
def upStep1 = step1 and close > open[1];
def upStep2 = step2 and close > close[1];
def downStep1 = step1 и close < close[1];
def downStep2 = step2 and close < open[1];
graph UpStep = (upStep1 or upStep1[-1] or upStep2 or upStep2[-1]) and zigZag == low;
plot DownStep = (downStep1 or downStep1[-1] or downStep2 or downStep2[-1]) and zigZag == high;
UpStep.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
UpStep.SetDefaultColor(GetColor(0));
UpStep.SetLineWeight(2);
DownStep.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
DownStep.SetDefaultColor(GetColor(1));
DownStep.SetLineWeight(2);