Join our fan page
Poker_SHOW - expert for MetaTrader 5
- Published by:
- Vladimir Karputov
- Views:
- 3109
- Rating:
- Published:
- 2018.06.06 14:39
- Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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.
Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/20485
A script calculating the distance between a point and a line.
maximus_vX liteThe Expert Advisor trades using levels. It can have a maximum of two positions of each type (Buy and Sell) in the market.
The Expert Advisor waits when the lines of MA(10), MA(20), MA(50), MA(100) and MA(200) get arranged one above the other (or one below the other).
EMA_WMA v2EMA_WMA - Expert Advisor for MetaTrader 5. Intersection of two iMA (MA). Position trailing.