Hello kamal,
you want something like this ?

r1 = Param( "Fast avg", 5, 2, 200, 1 );
r2 = Param( "Slow avg", 35, 2, 200, 1 );
Plot(OscP( r1,r2), _DEFAULT_NAME( ),IIf(OscP( r1,r2)>0,5,4) , styleNoTitle | 
ParamStyle(" Histogram style", styleHistogram | styleNoLabel, maskHistogram));
Plot(MA(OscP(r1,r2),5),"",IIf(OscP(r1,r2)>0,5,4),1);

Thank you

--- On Sun, 27/12/09, kml_soni1973 <[email protected]> wrote:

From: kml_soni1973 <[email protected]>
Subject: [amibroker] Need help for price oscillator
To: [email protected]
Date: Sunday, 27 December, 2009, 7:25 AM







 



  


    
      
      
      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





    
     

    
    


 



  






      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Reply via email to