Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Expert Advisor | Poker SHOW

MetaTrader Experts, Indicators, Scripts and Libraries

The author of the idea: Gladiator.

The MQL5 code author: Vladimir Karputov.

The EA determines whether or not to enter a position based on the random number generator. It has eight gradations: the Poker combination number parameter:

  • Straight-flush → 127;
  • Quads → 255;
  • Full House → 511;
  • Flush → 1023;
  • Straight → 2047;
  • Set → 4095;
  • Two pairs → 8191;
  • Couple → 16383.

If the given gradation is greater than the current value of the random number generator, then this is a signal.

Then, the presence of a trend is checked:

  • If the Reverse parameter is set to "false":
    • Moving Average is higher than the Ask price by Minimum distance between MA and price - this is a BUY signal;
    • Moving Average is lower than the Ask price by Minimum distance between MA and price - this is a SELL signal.
  • If Reverse is set to "true":
    • Moving Average is lower than the Bid price by Minimum distance between MA and price - this is a BUY signal;
    • Moving Average is higher than the Bid price by Minimum distance between MA and price - this is a SELL signal.

Input Values

  • Poker combination number - the given gradation of the probability;
  • Lots - the size of the position to open;
  • Stop Loss
  • Take Profit
  • Use BUY - allow opening BUY positions;
  • Use SELL - allow opening SELL positions;
  • MA trend: Minimum distance between MA and price - the minimum distance value;
  • MA trend: period - timeframe for the Moving Average;
  • MA trend: averaging period - the averaging period for the Moving Average;
  • MA trend: horizontal shift - the horizontal shift for the Moving Average;
  • MA trend: smoothing type - the smoothing type for the Moving Average;
  • MA trend: type of price - the price type;
  • Reverse. "false" → MA on top - BUY; "true" → MA on top - SELL - reversing Moving Average signals;
  • magic number - unique EA identifier;
  • slippage - slippage size.

Since this Expert Advisor is based on a random number generator, testings results are rendered incorrectly, because each time you get different results.

20485

Best MetaTrader Indicators + Profitable Expert Advisors