My goal is to get the slope of the DM.DiPlus (on the DM indicator) and also the DM.DiMinus slope.
I am trying to create a condition where if the DM.DiPlus slope is positive (> 0)
and the DM.DiMinus slope is negative.
I attempted to code it on my own as I thought it would be simple since the slope reference seemed easy.
I attempted a few ways but each time the system would flash errors.
I currently have the DMI Close, 14 set already.
And I attempted to code the following in OnBarUpdate:
if (Slope(DM.DiPlus), 0, 3) > 0)
{
// condition goes here
}
I believe this to be correct but it gives me errors. Am i using the Slope script correctly?
TIA
Comment