I imagine this is very simple. What I want to do is take the existing Marubozu candlestick script and have it ONLY apply to today's price. I do not care about the past. Ultimately, I want to use this in a scan filter.
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2011-2021
#
#wizard plots
#wizard text: Inputs: length:
#wizard input: length
input length = 20;
def ErrMargin = 0.05 * Average(BodyHeight(), length);
plot Bearish = IsLongBlack(length) and
high - open <= ErrMargin and
close - low <= ErrMargin;
plot Bullish = IsLongWhite(length) and
open - low <= ErrMargin and
high - close <= ErrMargin;
Bearish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Bearish.SetDefaultColor(GetColor(7));
Bearish.SetLineWeight(2);
Bullish.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Bullish.SetDefaultColor(GetColor(8));
Bullish.SetLineWeight(2);