Jerseystranger
New member
This is a script for Faster Moving average, but getting some errors can anybody help.
declare lower;
input fastLength = 5; // Period for the faster-moving average
input slowLength = 13; // Period for the slower-moving average
plot FastMA = ExpAverage(close, fastLength);
plot SlowMA = ExpAverage(close, slowLength);
FastMA.SetDefaultColor(GetColor(8)); // Color for the faster-moving average
SlowMA.SetDefaultColor(GetColor(5)); // Color for the slower-moving average
plot BullishSignal = FastMA > SlowMA;
plot BearishSignal = FastMA < SlowMA;
FastMA.SetLineWeight(2); // Adjust line thickness if needed
SlowMA.SetLineWeight(2);
BullishSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BullishSignal.SetDefaultColor(Color.UPTICK);
BullishSignal.SetLineWeight(2);
BearishSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
BearishSignal.SetDefaultColor(Color.DOWNTICK);
BearishSignal.SetLineWeight(2);
declare lower;
input fastLength = 5; // Period for the faster-moving average
input slowLength = 13; // Period for the slower-moving average
plot FastMA = ExpAverage(close, fastLength);
plot SlowMA = ExpAverage(close, slowLength);
FastMA.SetDefaultColor(GetColor(8)); // Color for the faster-moving average
SlowMA.SetDefaultColor(GetColor(5)); // Color for the slower-moving average
plot BullishSignal = FastMA > SlowMA;
plot BearishSignal = FastMA < SlowMA;
FastMA.SetLineWeight(2); // Adjust line thickness if needed
SlowMA.SetLineWeight(2);
BullishSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
BullishSignal.SetDefaultColor(Color.UPTICK);
BullishSignal.SetLineWeight(2);
BearishSignal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
BearishSignal.SetDefaultColor(Color.DOWNTICK);
BearishSignal.SetLineWeight(2);