Help with DPO codes

 

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 ;

 
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

 

Hi EADeveloper,


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


Best

Reason: