Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2008.10.21 09:37

Discipline - indicator for MetaTrader 4

| English 日本語 Русский 中文 Español Deutsch Português

votes: 2
Discipline.mq4 (5.16 KB)view

Of course it has some inaccuracies, but they are 10% of 100%.

Input Parameters:

extern int period=10;
extern int price=0; // 0 or other = (H+L)/2
                    // 1 = Open
                    // 2 = Close
                    // 3 = High
                    // 4 = Low
                    // 5 = (H+L+C)/3
                    // 6 = (O+C+H+L)/4
                    // 7 = (O+C)/2
extern bool Mode_Fast=false;
extern bool Signals  =true;


The indicator was tested on:

  • - timeframes: М15, H 1, H 4, Daily;
  • - currency pairs: EUR/USD, GBP/USD, USD/CHF, USD/JPY;

The author citation about this indicator is published here.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.