private EMA fastEMA, slowEMA;
inset defaults:
FastEMAPeriod = 8;
SlowEMAPeriod = 34;
in dataloaded:
fastEMA = EMA(Close,FastEMAPeriod);
slowEMA = EMA(Close,SlowEMAPeriod);
fastEMA.Plots[0].Brush = Brushes.Blue;
slowEMA.Plots[0].Brush = Brushes.Cyan;
fastEMA.Plots[0].Width = 2;
slowEMA.Plots[0].Width = 3;
AddChartIndicator(fastEMA);
AddChartIndicator(slowEMA);
in the condition
fastEMA[0] > sloeEMA[0]

Comment