Hello Community..

I would like to add a line of code to my script that will tell Zorro when not to trade, the line is "if the moving average (lets say SMAFast) im using is between the open and close of the previous one bar/candle i.e (the candle is not above/below the MA with it full body) zorro should not trade unless the condition is fulfilled.

Please help me put this in our lite-c language if, your help will highly be appreciated.

Thank you in advance.