I'd like to determine the slope of a moving average using the Slope function.
if (Slope(SMA(10), 10, 0))>0.25
{
DrawDot("Long" + CurrentBar, false, 0, Low[0]- 5*(TickSize), Color.Black);
}
The problem is, when I use this code in two different markets, for example the Dax futures and the NQ, it will draw the dot in one of them but not in the other, although the slopes of the moving averages look the same in both markets.
How can that be?
Thanks
Comment