Get all type of tested and working Amibroker afl for free

The Middle Line Magic Buy Above Sell Below Mid line


The Middle Line Magic Buy Above Sell Below Mid line
The Middle Line Magic Buy Above Sell Below Mid line

//www.aflcode.com
_SECTION_BEGIN("DPO");

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

// Start of program execution

// Call the dpo function

dpo = DetrendedPriceOsc( Param("Periods", 20, 1, 100 ) );

//Plot the DPO Indicator

PlotOHLC( dpo, dpo, 0,dpo , _DEFAULT_NAME(), colorLime, styleCloud );

// Start Revision: 2006-12-07
if( Status("action") == actionCommentary )
{
// this printf prints information into the Interpretation Window
printf ( Interval(2) + " " + Name()+"("+FullName()+"):\n\n" +
"High " + H + ",\nLow " + L + ",\nClose " + C + ", \n\n" +
"dpo: " + DetrendedPriceOsc( Param("Periods", 20, 1, 100 ) ));
}
_SECTION_END();

Previous
Next Post »