• 概述
  • 评论
  • 评论
  • 新特性

Detrend Oscillator

Description

A colored multicurrency/multi-symbol Detrend Oscillator. 

In fact, the oscillator shows how far the current price has gone from a certain equilibrium price expressed in the form of a moving average. If the oscillator is greater than zero, it reflects the value of the price increase. If less - the value of the price fall. 

The oscillator may be used with any broker, irrespective of the name of the financial instrument since it is necessary to manually enter the name as an input parameter. If you enter a non-existent or incorrect name of a financial instrument, you will receive an error message that this financial instrument is unknown (does not exist).

You can select the way of the graphic display of the oscillator values, as well as color the growing and falling lines of the histogram.


Purpose

The indicator can be used for manual or automated trading in an Expert Advisor. Values of indicator buffer of the double type can be used for automated trading: 

  1. The main line of the indicator - buffer 4.
  2. The bullish line of the indicator - buffer 0, must not be equal to 0.
  3. The bearish line of the indicator - buffer 1, must not be equal to zero.
  4. The bullish line of the indicator histogram- buffer 2, must not be equal to 0.
  5. The bearish line of the indicator histogram - buffer 3, must not be equal to zero.


Inputs

  1. Currency_Name - the name of the financial instrument.
  2. Draw_Method - Oscillator drawing method:
    • a line and a histogram - 0 (default).
    • a line - 1.
    • a histogram - 2.
  3. Ind_Period - indicator calculation period.
  4. MA_Method - the MA averaging method:
    • MODE_SMA - 0.
    • MODE_EMA - 1 (by default).
    • MODE_SMMA - 2.
    • MODE_LWMA - 3.
  5. Applied_Price - used price:
    • PRICE_CLOSE - 0 (by default).
    • PRICE_OPEN - 1.
    • PRICE_HIGH - 2.
    • PRICE_LOW - 3.
    • PRICE_MEDIAN - 4.
    • PRICE_TYPICAL - 5.
    • PRICE_WEIGHTED - 6.
  6. Shift - the sift o the basic indicator relative to the price chart.


Recommendations

It is recommended to pay attention to the identity or difference in the colors of the line and the histogram simultaneously. 

无评论
版本 1.21 - 2014.09.08
Changed the way the lines are colored.