Mastering the Poker_SHOW EA for MetaTrader 5: A Trader's Guide

Mike 2018.06.06 23:39 29 0 0
Attachments

Author of the Concept: Gladiator.

MQL5 Code Creator: Vladimir Karputov.

The Poker_SHOW Expert Advisor (EA) utilizes a random number generator to decide when to enter a trade. It features eight gradations based on poker combinations:

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

If the combination gradation exceeds the current value of the random number generator, a signal is generated.

Next, we check for the presence of a trend:

  • If the Reverse parameter is set to "false":
    • When the Moving Average is above the Ask price by the Minimum distance between MA and price, it's a BUY signal;
    • When the Moving Average is below the Ask price by the Minimum distance between MA and price, it's a SELL signal.
  • If Reverse is set to "true":
    • When the Moving Average is below the Bid price by the Minimum distance between MA and price, it's a BUY signal;
    • When the Moving Average is above the Bid price by the Minimum distance between MA and price, it's a SELL signal.


Input Parameters

  • Poker combination number - defines the gradation of probability;
  • Lots - size of the position to open;
  • Stop Loss - maximum acceptable loss;
  • Take Profit - target profit level;
  • Use BUY - enables opening BUY positions;
  • Use SELL - enables opening SELL positions;
  • MA trend: Minimum distance between MA and price - minimum distance setting;
  • MA trend: period - time period for the Moving Average;
  • MA trend: averaging period - averaging duration for the Moving Average;
  • MA trend: horizontal shift - horizontal adjustment for the Moving Average;
  • MA trend: smoothing type - smoothing method for the Moving Average;
  • MA trend: type of price - type of price used;
  • Reverse. "false" → MA on top - BUY; "true" → MA on top - SELL - reverses Moving Average signals;
  • magic number - unique identifier for the EA;
  • slippage - amount of slippage allowed.

Keep in mind, since this EA relies on a random number generator, testing results can be inconsistent, as they vary each time you run it.

List
Comments 0