♥ 0 |
Hi Pete, I took the Marubozu candlestick pattern and created a study with it that includes audio alerts. Problem is the alert goes off constantly while the candles are forming. Is there a way to have the alert go off only after the candle is closed? Also, is there a quick way to add a script where the volume bar of the Marubozu candlestick should be greater than the avg of the prior “x” number of bars? Your help would be greatly appreciated. The script is below: input length = 20; def ErrMargin = 0.05 * Average(BodyHeight(), length); plot Bearish = IsLongBlack(length) and plot Bullish = IsLongWhite(length) and Bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN); Thanks, Mike RESOLVED
Marked as spam
|
Please log in to post questions.
Change this...
plot Bearish = IsLongBlack(length) and high – open <= ErrMargin and close – low <= ErrMargin;
To this...
def sigBearish = IsLongBlack(length) and high – open <= ErrMargin and close – low <= ErrMargin; plot Bearish = sigBearish[1];
Alert by text, that cannot be done using a chart study. You will need to move your code into a scan, then use that scan to create a dynamic alert. I demonstrate this starting at the 29:50 mark of this video: https://www.hahn-tech.com/thinkorswim-overnight-range-scan-alert/