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

votes: 18
2017.11.03 12:24
New Random.mq5 (19.97 KB)view

Trading based on a random number generator or in one of the following sequences: BUY - SELL - BUY or SELL - BUY - SELL.

New Random

At first glance it may seem that the sequences "BUY - SELL - BUY" and "SELL - BUY- SELL" are the same. But here the following interesting point is taken into account: does the type of the first opened position matter? By selecting Sequence BUY - SELL - BUY or Sequence SELL - BUY - SELL, we can check and compare the results of when the first position opened at the same time is BUY or SELL.

Input Parameters

  • Random type - the type of random position opening.
  • Minimal lots count - minimum lot value (position volume).
  • Stop Loss (in pips) - Stop Loss value.
  • Take Profit (in pips) - Take Profit value.

Translated from Russian by MetaQuotes Software Corp.
Original code:

ColorDerivative ColorDerivative

The Derivative indicator implemented as a colored histogram with an additional averaging.

VolatilityValues VolatilityValues

The indicator shows a text block with the values ​​of the user defined Volatility period for each timeframe.

up3x1 Investor up3x1 Investor

Candlestick size analysis. The idea of the trading system: candlestick parameters matter after news releases.

Opposite trade Opposite trade

Opening a position opposite to the closed one. Trades are processed in the OnTradeTransaction function.