Need help for price oscillator

#1
Hello,
I want to add 2 moving averages for oscillator i.e separate moving average for positive and negative signal. Follwing are the oscillator formula:-
r1 = Param( "Fast avg", 5, 2, 200, 1 );
r2 = Param( "Slow avg", 35, 2, 200, 1 );
Plot(OscP( r1,r2), _DEFAULT_NAME(), ParamColor("Histogram color", colorCustom12 ), styleNoTitle | ParamStyle("Histogram style", styleHistogram | styleNoLabel, maskHistogram ) );
Please help me in this regard.

Regards,
Kamal

:clapping:
 

Similar threads