Help with DPO codes

To add comments, please log in or register
jc
9
jc  

Hi


Can anyone please help me to convert this code for DPO (detrend price oscillator)? Thanks a lot.



inputs:

Price( Close ),

Length( 250 ) ;

variables:

DPO( 0 ) ;

DPO = Detrend( Price, Length ) ;

if DPO crosses over 0 then

Buy next bar market

else if DPO crosses under 0 then

Sell short next bar market ;

rv
461
rv  
hobag wrote >>

Hi

Can anyone please help me to convert this code for DPO (detrend price oscillator)? Thanks a lot.

inputs:

Price( Close ),

Length( 250 ) ;

variables:

DPO( 0 ) ;

DPO = Detrend( Price, Length ) ;

if DPO crosses over 0 then

Buy next bar market

else if DPO crosses under 0 then

Sell short next bar market ;

https://www.mql5.com/en/code/8387

jc
9
jc  

Hi EADeveloper,


I was talking about scripts for Expert Advisor trading. If you could help, it would be great. Thank you very much.


Best

To add comments, please log in or register