I created 3 candle stick patterns I am scanning for and I would like to combine them into one script
but there is a conflict because all the scripts are the same (strange I thought they would be different)
I copied and tested each individual candle script to make sure they are supposed to be different
not sure what is up with them being the same
I also tried assigning them numbers but that was a conflict
here are the images of each images labeled to each section of included code
Can you not combine patterns into one script?
BearBearBull
BearBullBull
BullBearBull
but there is a conflict because all the scripts are the same (strange I thought they would be different)
I copied and tested each individual candle script to make sure they are supposed to be different
not sure what is up with them being the same
I also tried assigning them numbers but that was a conflict
here are the images of each images labeled to each section of included code
Can you not combine patterns into one script?
BearBearBull
BearBullBull
BullBearBull
Code:
# BearBearBull
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
IsDown[2] and
IsDown[1] and
IsUp[0];
PatternPlot.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
PatternPlot.SetDefaultColor(GetColor(1));
# BearBullBull
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
IsDown[2] and
IsUp[1] and
IsUp[0];
PatternPlot.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
PatternPlot.SetDefaultColor(CreateColor(0, 102, 255));
# BullBearBull
def IsUp = close > open;
def IsDown = close < open;
def IsDoji = IsDoji();
def avgRange = 0.05 * Average(high - low, 20);
plot PatternPlot =
IsUp[2] and
IsDown[1] and
IsUp[0];
PatternPlot.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
PatternPlot.SetDefaultColor(GetColor(4));