kc5560
New member
input fastlength = 9;
input slowlength = 13;
def fastEMA = ExpAverage(close, fastlength);
def slowEMA = ExpAverage(close, slowlength);
plot signal = if fastEMA crosses above slowEMA then 1 else if fastEMA crosses below slowEMA then -1 else 0;
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP_DOWN);
#Customize the appearance of the arrows
signal.SetDefaultColor(Color.WHITE);
signal.SetLineWeight(3);
input slowlength = 13;
def fastEMA = ExpAverage(close, fastlength);
def slowEMA = ExpAverage(close, slowlength);
plot signal = if fastEMA crosses above slowEMA then 1 else if fastEMA crosses below slowEMA then -1 else 0;
signal.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP_DOWN);
#Customize the appearance of the arrows
signal.SetDefaultColor(Color.WHITE);
signal.SetLineWeight(3);