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

2015.12.11 11:15

Coin Flip - expert for MetaTrader 4

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

votes: 35
coin_flip.mq4 (35.5 KB)view

Expert Advisor with no custom indicator used, orders are opened pseudo-randomly. Equipped with a virtual trailing stop. After a loss the lot is increased by martingale with the specified parameters. Adapted for 4-5-digit quotes.

The EA opens deals in Market Execution mode. Take Profit and Stop Loss are placed after order execution and modified in accordance with the EA settings.


  • Risk automatic calculation of the lot for the first trade;
  • Lot — trading lot, if Risk=0;
  • Martingale lot multiplication factor in case of a loss;
  • MaxLot maximum allowed lot;
  • TakeProfit — Take profit;
  • StopLoss — Stop Loss;
  • MaxAttempts the maximal number of attempts to open an order;
  • Pause — pause between attempts;
  • Slippage maximum slippage;
  • TrailingStart number of points to start trailing;
  • TrailingStop — step of Trailing Stop;
  • Magic magic number;
  • Com comment to trades;
  • DrawInfo display/hide information on the trading;
  • Languages language of the displayed trading data;
  • TextColor displayed data color.

Translated from Russian by MetaQuotes Software Corp.
Original code:

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.

TypeToBytes TypeToBytes

Byte-wise operation with structures and standard data types.

PriceLines PriceLines

Script for drawing a price markup.