Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Experts

An Expert Advisor - Index Moving Average - expert for MetaTrader 5

Views:
17609
Rating:
(42)
Published:
2010.07.30 18:16
Updated:
2016.11.22 07:32
\MQL5\Indicators\
ima.mq5 (1.76 KB) view
ima_expert.mq5 (6.96 KB) view
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This Expert Advisor implements the trading strategy, based on the Index Moving Average (IMA) indicator, its money management system dependent on the specified risk and loss size.

The strategy

The daily bars are used for trading. The signals checks when the new bar is appear.

The formulae is:

k=(ima0 – ima1)/|ima1|

where ima0 – the current value of IMA indicator, ima1 – is the previous value of the IMA indicator.

  • Open long position, when k>= 0,5;
  • Open short position, when k<= -0,5.

The management of opened position is based on the trailing stop, specified in the value of the take parameter.
The loss trade is closed, according the specified drop parameter.

The lot size is changed with the minimal step up to the value, specified in max_lots parameter.

If this value is equal to 0, the lot can be from the minimal up the maximal allowed for the symbol.

An Expert Advisor - Index Moving Average

An Expert Advisor - Index Moving Average

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/149

Index Moving Average Index Moving Average

The indicator shows the rate of change of the simple moving average.

The "Night" Expert Advisor The "Night" Expert Advisor

An Expert Advisor for trading during the night.

Heiken Ashi On Adaptive Moving Average Heiken Ashi On Adaptive Moving Average

This is the Heiken Ashi indicator, based on the averaged Open, High, Low and Close prices, averaged using the Adaptive Moving Average.

Free Fuzzy Logic Library functions Free Fuzzy Logic Library functions

The API functions to Free Fuzzy Logic Library.