Skip to main content

Detrended Price Oscillator System for Amibroker (AFL)

shahed2047 about 10 years ago Amibroker (AFL)

  • Rating:
    3 / 5 (Votes 3)
  • Tags:
    oscillator, trading system, amibroker

Analysis with help ADX,PDI,MDI,CCI,DetrendedPriceOsc,CCI and…
this clishe and bases formula…
this just for analysis…

Indicator / Formula

Copy & Paste Friendly
function DetrendedPriceOsc( Periods )
{
 return C - Ref( MA( C, Periods ), -( 1 + Periods/2 ) );
}

Plot( DetrendedPriceOsc( Param("Periods", 20, 1, 100 ) ),
		_DEFAULT_NAME(),
		ParamColor("Color", ColorCycle ) );

Buy= ADX(14)<40 AND  PDI(14) > MDI(14) AND CCI(14)>(DetrendedPriceOsc( 20 )) AND CCI(14)> MACD(12,26) AND StochK(15,3) > StochD(15,3,3) AND RSI(14)<RSI (25) ;
Sell=ADX(14)<40 AND PDI(14) < MDI(14) AND CCI(14)<(DetrendedPriceOsc( 20 )) AND CCI(14)< MACD(12,26) AND StochK(15,3) < StochD(15,3,3)AND RSI(14)>RSI (25) ;

0 comments

Leave Comment

Please login here to leave a comment.