Sorry to bug you folks with such a stupid question, but I'm having a problem with Easylanguage, and nobody on the TS forum seems to be interested in it.
This is supposed to turn into a strategy, but I wanted to try an easy painbar to test the building blocks. The code is supposed to paint market structure highs that exceed the upper BB:
inputs
rice(close), period(20), Deviations(2);
if high[2]<high[1] and high<high[1] and high[1]>=BollingerBand(price,period, deviations) then begin
plotpb[1](low[1], high[1],"Poke Bar", red);
end
else
NoPlot(1);
Only problem is this code misses instances. I've attached a screenshot where you can see such examples.
Any idea what stupid mistake I'm making? Thanks in advance.
This is supposed to turn into a strategy, but I wanted to try an easy painbar to test the building blocks. The code is supposed to paint market structure highs that exceed the upper BB:
inputs
rice(close), period(20), Deviations(2);if high[2]<high[1] and high<high[1] and high[1]>=BollingerBand(price,period, deviations) then begin
plotpb[1](low[1], high[1],"Poke Bar", red);
end
else
NoPlot(1);
Only problem is this code misses instances. I've attached a screenshot where you can see such examples.
Any idea what stupid mistake I'm making? Thanks in advance.