Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

DPO for Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
oscillator, amibroker

A customized version of the ‘DPO – Detrended Price Oscillator’ Indicator that displays a shaded plot using styleCloud

Screenshots

Similar Indicators / Formulas

Debu Market Efficiency Ratio
Submitted by agent301 over 12 years ago
MACD (new timing)
Submitted by tigernifty over 12 years ago
3 Days Track
Submitted by janet0211 over 14 years ago
KILL THE OPERATOR MACD
Submitted by prasadmuni about 12 years ago
%R ++
Submitted by reb over 14 years ago
DMI Spread
Submitted by pipstar over 14 years ago

Indicator / Formula

Copy & Paste Friendly
// By  : Bill Halliday
// Date: 2006-12-05
// From: A customized version of the 'DPO - Detrended Price 
//       Oscillator' Indicator found in:
//       Program Files/AmiBroker/Formulas/Indicators that 
//       displays a shaded plot using styleCloud
//
// Initial Alterations:
//
//       1) This documentation.
//       2) Printf statement.
//       3) Changed the Plot to include shading.
//
// Revision: 2006-12-07
//
//        Moved the Interpretation commentary to a "Status" 
//        'if block' AND added line feeds to the Interpretation 
//        printf for display clarity.


// Define the DPO function

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 ) ));
}
// End Revision: 2006-12-07

1 comments

1. niladri

DPO trading During Trending Markets:
=======
Identify a trend and trade in the direction of the main trend.
Buy when DPO hits zero from above or dips below zero for a while and then goes up above zero.
Sell when DPO hits zero level from below or even crosses above zero for a while and then turns back below zero.

DPO trading During Ranging Markets:
==========
Identify overbought and oversold levels individual for every currency pair based on the past price behavior.

Buy after DPO dips below an oversold zone and then exits from it closing above the oversold zone.
Sell after Detrended Price Oscillator enters an overbought zone and then exits from it and closes below the overbought zone.

DPO Trading

Leave Comment

Please login here to leave a comment.

Back