Indicator puts a dot on top of a candle who’s high is greater than or equal to the 2 candles on each side of it. (and vice versa for lows) See attached.
This code is so simple in my broker’s program:
if High[3]>=High[4] AND High[3]>=High[5] AND High[3]>=High[2] AND High[3]>=High[1] then begin plot1(High[3], "Up", cyan);
end
else
NoPlot(1);
if Low[3]<=Low[4] AND Low[3]<=Low[5] AND Low[3]<=Low[2] AND Low[3]<=Low[1]
then begin plot2(Low[3], "Down", cyan);
end
else
NoPlot(2);
Thanks for any assistance to shorten my learning curve!
Comment