protectedoverridevoid OnBarUpdate()
{
// Condition set 1
if (Slope(EMA(18), 10, 0) > 0)
{
DrawDiamond("My diamond" + CurrentBar, false, 0, 0, Color.Red);
}
}
I was only writing this to figure out what numeric value is equalivant to what angle of slope.
Thanks,
Safetrading
Comment