JKGoldenRock
- Эксперты
-
Shi Yuan Wang
Я разрабатываю собственные индикаторы, советники (Expert Advisors, EA), скрипты и торговые инструменты для MetaTrader 4 и MetaTrader 5, а также индикаторы для TradingView (Pine Script).
Что я могу для вас сделать: - Версия: 3.0
- Активации: 5
JK-GoldenRock — Trend Following Expert Advisor for MetaTrader 5
Overview
JK-GoldenRock is an automated trend following Expert Advisor for MetaTrader 5. It reads the market direction on the current chart, determines an entry level from the recent price range once the direction is confirmed, and attaches a complete set of stop loss, take profit and position management functions to every position it opens.
The EA runs on a single symbol and a single chart timeframe. It holds one position at a time and only recognizes positions, pending orders and history records carrying its own magic number, so it does not interfere with other Expert Advisors or manual trades on the same account. All evaluations are made on closed bars. Once a direction is confirmed it stays fixed, it does not alternate while the current bar is still open and it is not redrawn afterwards.
The product is pure MQL5. It calls no external DLL, does not use WebRequest, requests or uploads no personal data, and displays no advertising or third party links on the chart. During operation it uses only the standard MQL5 library and the indicators shipped with the terminal.
Suitable markets: any chart available in the terminal, including Forex, metals, indices and CFDs. All parameters expressed in points must be recalculated according to the number of digits of the traded symbol, as explained below.
Input Parameters
Basic Settings
Parameter | Default | Description |
|---|---|---|
InpMagic | 20260814 | Magic number used to identify positions and orders of this EA. Must differ between instances running on the same account |
InpBaseLot | 0.01 | Base lot used for regular entries |
InpReversalLotMult | 2.0 | Lot adjustment multiplier. When active, the next entry size becomes base lot multiplied by this value under certain conditions |
Entry Mode
Parameter | Default | Description |
|---|---|---|
InpEntryMode | 0 | Entry method. 0 = pending order, 1 = market order |
Risk Control
Parameter | Default | Description |
|---|---|---|
InpMaxConsecLoss | 0 | Maximum number of consecutive adverse results. New entries pause at the limit. 0 = no limit |
Pending Order Entry
Parameter | Default | Description |
|---|---|---|
InpDonchianBars | 5 | Number of recent bars used as the entry reference. Determines how wide the reference range is |
InpPendingOffset | 100 | Entry offset in points. A larger value places the pending order further away from the reference boundary |
Chart Display
Parameter | Default | Description |
|---|---|---|
InpShowDonchian | true | Draw the recent price range and its numeric labels on the chart |
Signal Settings
Parameter | Default | Description |
|---|---|---|
InpFastEMA | 5 | Fast period of the direction detection. A smaller value makes direction changes more sensitive |
InpSlowEMA | 10 | Slow period of the direction detection. Both periods together define how smooth the direction reading is |
The condition is 1 ≤ fast period < slow period, otherwise the EA refuses to load. Both periods apply to the current chart timeframe.
Stop Loss / Take Profit
Parameter | Default | Description |
|---|---|---|
InpSLPoints | 100 | Fixed stop loss distance in points. Must be greater than zero |
InpTPPoints | 1000 | Take profit distance in points. Must be greater than zero |
Adaptive Structure Stop Loss
Parameter | Default | Description |
|---|---|---|
InpUseZigSL | false | Use the adaptive structure stop loss instead of the fixed point stop loss |
InpZigPath | Examples\ZigzagColor | Path of the built in indicator used to identify the price structure |
InpZigDepth | 12 | Structure detection sensitivity parameter 1 |
InpZigDev | 5 | Structure detection sensitivity parameter 2 |
InpZigBack | 3 | Structure detection sensitivity parameter 3 |
InpFibLockSkip | 1 | Offset used to select the reference structure segment. A larger value refers to an earlier structure |
InpFibSLPercent | -23.6 | Percentage position of the stop loss inside the reference structure, negative values allowed. Must not be zero when enabled |
Delayed Stop Loss
Parameter | Default | Description |
|---|---|---|
InpDelaySL | false | Enable the delayed stop loss |
InpDelaySLBars | 5 | Number of bars after entry without a stop loss. Only the take profit is attached during this period |
Trailing Stop
Parameter | Default | Description |
|---|---|---|
InpTrailTrigger | 150 | Floating profit in points, measured from the best price reached, required to activate the trailing stop |
InpTrailGap | 50 | Distance between the best price reached and the trailing stop, in points |
Position Management
Parameter | Default | Description |
|---|---|---|
InpTimeoutBars | 120 | Number of bars after which an open position is closed at market |
InpReverseClose | true | Close the position when the detected direction turns against the position direction |
Trading Session
Parameter | Default | Description |
|---|---|---|
InpUseTimeFilter | false | Enable the trading session filter. Affects new positions only |
InpTradeStart | 09:30 | Start of the allowed entry window, HH:MM in server time |
InpTradeEnd | 23:30 | End of the allowed entry window, HH:MM in server time |
Start and end must not be equal. If start is later than end, the window crosses midnight.
Info Display
Parameter | Default | Description |
|---|---|---|
InpShowComment | true | Show the information panel in the upper left corner |
InpCommentDays | 7 | Number of history days shown in the panel |
