0% found this document useful (0 votes)
204 views1 page

Detrended Price Oscillator

This document describes revisions made to a customized version of the Detrended Price Oscillator (DPO) indicator. The initial alterations included documentation, a print statement, and changing the plot to include shading. A later revision moved the interpretation commentary to a status block and added line feeds to the print statement for display clarity. The DPO function calculates the indicator value by subtracting a moving average from the close price.

Uploaded by

maddy_i5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
204 views1 page

Detrended Price Oscillator

This document describes revisions made to a customized version of the Detrended Price Oscillator (DPO) indicator. The initial alterations included documentation, a print statement, and changing the plot to include shading. A later revision moved the interpretation commentary to a status block and added line feeds to the print statement for display clarity. The DPO function calculates the indicator value by subtracting a moving average from the close price.

Uploaded by

maddy_i5
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

// 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy