Home System Trading Post

Mastering iMA Crossovers: A Comprehensive Guide for MetaTrader 5

Attachments
18440.zip (7.08 KB, Download 0 times)

Author of the Idea: ITM7 (inspired by Requests & Ideas (MQL5 only!))

MQL5 Code Author: Vladimir Karputov.

New Additions:

We've swapped out the call to iMA for a call to Custom Moving Average Input Color. When you run this EA in backtesting or on your live chart, you'll see the Moving Average indicators displayed in different colors:

Crossing of two iMA

This strategy focuses on the crossover of two iMAs (Moving Averages), with an additional iMA serving as a filter.

Position Lot Calculation: You can either calculate it manually or set it as a percentage of your account balance.

Trading Method: You can use Stop, Market, or Limit orders. The EA will also automatically set your Stop Loss, Take Profit, and Trailing Stop levels.

Input Parameters: (new features are highlighted)

  • First Moving Average Parameters
    • Period of the first Moving Average
    • Shift of the first Moving Average
    • Method of the first Moving Average
    • Color of the first Moving Average
  • Second Moving Average Parameters
    • Period of the second Moving Average
    • Shift of the second Moving Average
    • Method of the second Moving Average
    • Color of the second Moving Average
  • Third Moving Average Parameters
    • Third indicator Moving Average - filter
    • Period of the third Moving Average
    • Shift of the third Moving Average
    • Method of the third Moving Average
    • Color of the third Moving Average
  • Money Management Parameters
    • true -> manual lot size, false -> percentage of risk from balance
    • Lots (only use if lot size is manual)
  • Trading Parameters
    • Risk percentage per trade from balance
    • (in pips) <0 -> Stop orders, =0 -> Market, >0 -> Limit orders
    • Stop Loss (in pips)
    • Take Profit (in pips)
    • Trailing Stop ("0" -> no trailing)
    • Trailing Step (use if Trailing Stop >0)
    • Magic Number
    • Slippage

Related Posts

Comments (0)