Forums › ProRealTime English forum › ProBuilder support › osMA (Moving Average of Oscillator), conversion code mt4 to prorealtime › Reply To: osMA (Moving Average of Oscillator), conversion code mt4 to prorealtime
05/07/2018 at 4:28 PM
#69948
Just found this simple code on the web, about OSMA for PROREALTIME:
1 2 3 4 5 6 |
fastMA = exponentialAverage[12](close) slowMA = exponentialAverage[26](close) myMACD = fastMA - slowMA line = Average[9](myMACD) osc = myMACD - line Return osc As "Osc" ,0 As "Null" |