I am trying to get rid of noise in my HMA. So I set an "EMA(HMA1, 2)" and added the EMA indicator to the chart. This worked as long as the HMA input was set to 14 and no lower, otherwise it will not let me enable the strategy? Likewise, while HMA input is set to 14, I tried to set the EMA to 3 but the strategy will not let me enable it. Instead, I have to change HMA input to 16.
{
HMA1 = HMA(Close, HMAP);
EMA1 = EMA(HMA1, 3);
HMA2 = HMA(Close, HMAP/2);
EMA1.Plots[0].Brush = Brushes.Blue;
HMA2.Plots[0].Brush = Brushes.Yellow;
AddChartIndicator(EMA1);
AddChartIndicator(HMA2);
}
Is there any reason that I would be prevented from enabling a strategy with EMA indicator over an HMA indicator?
Comment