I'm trying to code if a moving average is moving up or down rather than sideways and am using the following code (this is for UP) as part of overall code. But it doesn't seem to execute the any trades. When i remove this line it works fine it trades fine, but then it really doesn't allow me to take a trend into my criteria. Any assist?
SMA(25)[0] - SMA(25)[2] >= 2
Comment