Trade Decision Assistant Pro ArBrain VE
- Indicatori
-
Bahtiyar Arniyazov
Over 33 years of engineering, economic, and executive management experience in civil and industrial construction — progressing from field engineer and site supervisor to Head of Production & Technical Department (PTO), Head of Planning & Economic Department in a state construction enterprise, Chief - Versione: 1.0
1. SHORT DESCRIPTION
Trade Decision Assistant Pro Ar.Brain VE Version №1 is an indicator for MetaTrader 5 that puts the
whole trading decision in one place: higher timeframe direction, signal strength in percent,
filter status, stop loss and take profit levels, current market conditions and instrument data.
The indicator does not trade. It analyses the market, plots signals on the chart and shows a
detailed information panel that helps the trader make a decision manually.
2. WHAT THE INDICATOR DOES
- Plots three moving averages: fast, middle and slow.
- Defines the local trend direction by the order of the three averages.
- Checks two higher timeframes; both are selected automatically or set manually.
- Generates buy and sell signals on a closed bar and marks them with arrows.
- Calculates a decision score from 0 to 100 percent and compares it with the entry threshold.
- Applies filters: RSI, ADX, ATR percent, MACD, Bollinger Bands, volume.
- Detects RSI divergence and draws it on the chart.
- Monitors the spread and blocks signals when the spread expands.
- Keeps a minimum distance between signals to avoid signal clusters.
- Builds the protective stop and the target from volatility and from price structure.
- Shows the signal mark, a text label, stop and target lines and the divergence line.
- Displays a 21 row information panel with live data.
- Sends a text and sound alert when a signal appears.
3. SIGNAL LOGIC
A buy signal is considered when the fast average is above the middle one, the middle average is
above the slow one and price is above the fast average. Sell conditions are mirrored.
Additional checks:
- the distance to the previous signal is not less than the configured number of bars;
- the decision score is not lower than the minimum;
- all enabled filters are passed;
- the spread is within the limit;
- higher timeframes do not contradict the direction.
By default signals are calculated on a closed bar, so a finished bar never repaints. On the
forming bar values may change until the bar closes.
4. FILTERS
RSI - the value must be inside the corridor for the chosen direction. Buy and sell corridors are
configured separately.
ADX - trend strength must be at or above the threshold. A weak trend blocks the entry.
ATR percent - volatility must be at or above the minimum value in percent of price. This prevents
entries on a dead market.
MACD - the main line must be above the signal line for a buy and below it for a sell.
Bollinger Bands - price must be on the required side of the middle band.
Volume - current volume is compared with the average volume multiplied by the configured
coefficient. Real volume is used when the broker provides it, otherwise tick volume is used.
MTF - two higher timeframes. Periods are derived from the current timeframe or set manually. If a
higher timeframe is against the trade, the signal is blocked.
5. DECISION SCORE
The score from 0 to 100 consists of a base value plus contributions from averages, RSI, ADX, ATR,
MACD, Bollinger Bands, volume and higher timeframes. Every weight is configurable, so priorities
can be tuned for a particular trading style.
The score is shown in the panel and in the signal label. A signal is accepted only if the score
is at or above the minimum threshold.
6. DIVERGENCE
Divergence is detected on RSI pivots: two price extremes and the RSI values at those extremes are
compared. Pivot depth, minimum and maximum distance between pivots, minimum RSI difference and
bullish and bearish line colors are configurable.
7. STOP LOSS AND TAKE PROFIT
The stop is not placed at a fixed distance from the close price; it is placed behind a structural
extreme.
Calculation for a buy:
- take the lowest low of the current bar and the configured number of previous bars;
- add a buffer above that extreme;
- the buffer is the larger of two values: a share of ATR and one and a half of the current spread;
- the stop distance can not be smaller than the lower ATR bound;
- the stop distance can not be larger than the upper ATR bound;
- the broker minimum stop level is respected.
For a sell the calculation is mirrored: the highest high is used and the stop is placed above it.
The take profit is the larger of two values: a share of ATR from the entry and the stop distance
multiplied by the minimum reward to risk ratio. So the target never becomes too close when the
stop is wide.
The purpose of this scheme: the stop survives a spike and a retest, is not taken out by a random
impulse and does not sit inside the range of the signal bar.
8. CHART VISUALISATION
- Three moving average lines with configurable periods, methods and prices.
- Buy arrow and sell arrow.
- A text label next to the signal: direction, score, divergence flag.
- Dotted stop loss line and dotted take profit line of a configured length in bars.
- Divergence line between two pivots.
- The number of signals kept on the chart is limited; older object groups are removed
automatically so the chart stays clean.
- If a signal point falls inside the information panel area, the mark is not drawn: the panel is
fully opaque and its captions always stay readable.
9. INFORMATION PANEL
The panel is drawn over the chart, has a fully opaque background, fits its width to the actually
rendered text, scales with the screen resolution and can be dragged with the mouse. Its position
is stored between sessions.
Panel rows:
1. Name, symbol, timeframe, status.
2. Trading session, spread in points and in percent.
3. Trend and two higher timeframes.
4. Signal, score, filter counter.
5. Values of the three moving averages.
6. RSI, ADX, ATR and ATR in percent.
7. MACD main and signal lines.
8. Bollinger middle band and volume with average.
9. Divergence and signal counters.
10. Last signal: direction, price, time, score.
11. Stop and target settings, reference risk value.
12. Spread rule and number of bars in the calculation.
13. Working mode, number of kept signals, font size and panel width.
14. Bid, ask, middle price, digits.
15. Server time, current bar open time, timeframe length in seconds.
16. Filter thresholds.
17. Data source state: ready handles, higher timeframe readiness.
18. Symbol parameters: stop level, freeze level, minimum and step volume, tick value.
19. Broker, server, account currency, leverage.
20. Engine counters: calculation count, calculation time, errors.
21. Instance identifier, chart identifier, panel size.
10. ALERTS
When a signal appears the indicator produces a text message and a sound. The popup window and the
sound are enabled by default. Push notifications and email can be enabled separately. Buy and sell
sound files are set separately. A repeated alert for the same bar and direction is suppressed,
including after a terminal restart.
11. FULL SETTINGS LIST
Averages group:
- Fast average period: 8
- Fast average method: exponential
- Fast average price: close
- Middle average period: 21
- Middle average method: exponential
- Middle average price: close
- Slow average period: 50
- Slow average method: exponential
- Slow average price: close
Signal group:
- Signal on closed bar: on
- Require average alignment: on
- Require price above or below the average: on
- Minimum bars between signals: 5
- Maximum history bars for the calculation: 5000
- Signals kept on the chart: 1
Filters group:
- Use RSI: on
- RSI period: 14
- Overbought level for coloring: 65
- Oversold level for coloring: 35
- Use ADX: on
- ADX period: 14
- Minimum ADX: 22.0
- Use ATR: on
- ATR period: 14
- Minimum ATR in percent: 0.04
- Use MACD: on
- MACD fast period: 12
- MACD slow period: 26
- MACD signal period: 9
- Use Bollinger Bands: off
- Bands period: 20
- Bands deviation: 2.0
- Use volume: off
- Volume average period: 20
- Volume excess coefficient: 1.1
Decision engine group:
- Use decision score: on
- Minimum score for a signal: 55.0
- Stop in ATR, lower bound: 2.0
- Take in ATR: 3.0
- Stop buffer behind the extreme in ATR: 0.35
- Bars used to find the extreme for the stop: 3
- Stop in ATR, upper bound: 3.5
- Minimum reward to risk ratio: 1.5
- Reference risk percent: 0.5
- RSI corridor for a buy: from 45.0 to 70.0
- RSI corridor for a sell: from 30.0 to 55.0
- Score base weight: 35.0
- Weight of full average alignment: 15.0
- Weight of partial average alignment: 8.0
- RSI weight: 12.0
- ADX weight: 12.0
- ATR weight: 8.0
- MACD weight: 10.0
- Bollinger Bands weight: 5.0
- Volume weight: 8.0
- Higher timeframe weight: 10.0
- Flat higher trend threshold in percent: 0.02
- Stop and target line length in bars: 12
- Arrow offset in points: 2
Divergence group:
- Use divergence: on
- Pivots to the left: 5
- Pivots to the right: 5
- Minimum bars between pivots: 10
- Maximum bars between pivots: 120
- Minimum RSI difference: 4.0
- Bullish divergence color: aqua
- Bearish divergence color: magenta
Spread group:
- Spread filter mode: percent
- Maximum spread in points: 30
- Maximum spread in percent: 0.05
- Automatic threshold by instrument type: on
- Crypto threshold in percent: 0.08
- Metals threshold in percent: 0.05
- Forex threshold in percent: 0.03
- Index threshold in percent: 0.02
- Futures threshold in percent: 0.04
Higher timeframes group:
- Mode: both timeframes
- Automatic period selection: on
- First period manually: H1
- First average period: 50
- Second period manually: H4
- Second average period: 50
Alerts group:
- Popup window: on
- Push notification: off
- Email: off
- Sound: on
- Buy sound: alert.wav
- Sell sound: alert2.wav
Panel group:
- Refresh interval in milliseconds: 500
- Show panel: on
- Mouse drag: on
- Automatic scaling for screen resolution: on
- Automatic theme by chart background: off
- Anchor corner: upper left
- Horizontal offset: 12
- Vertical offset: 20
- Automatic width by text: on
- Width for manual mode: 580
- Line height: 22
- Font size: 12
- Font: Segoe UI
- Text color: white
- Header color: blue
- Buy accent color: lime green
- Sell accent color: red
- Warning color: orange
- Muted text color: silver
- Panel background color: dark blue, values 18 21 28
- Panel border color: values 85 105 145
- Debug mode: off
12. USAGE RECOMMENDATIONS
- Instruments: currency pairs, metals, indices, cryptocurrencies.
- Timeframes: from M5 to D1. H1 and H4 are comfortable for a calm workflow.
- On M1 and M5 the spread influence is higher, so the percent spread limit is preferred.
- On volatile instruments it is useful to increase the stop buffer and the upper ATR stop bound.
- Before live trading, check the behaviour on a demo account and in the strategy tester.
13. INSTALLATION
1. Copy the indicator folder into the terminal data folder, Indicators section.
2. Open MetaEditor and compile the file if the source file is used.
3. Refresh the indicator list in the terminal Navigator.
4. Drag the indicator onto a chart.
5. Tune the parameters for your instrument and timeframe.
14. LIMITATIONS AND WARNINGS
- The indicator does not place trades and does not manage positions.
- The indicator does not guarantee profit. Past results do not define future results.
- Closed bar signals appear after the bar closes, not inside the bar.
- On a forming bar indicator values may change until the bar closes.
- Historical spread testing on old bars is limited by the broker data.
- The structural stop increases the distance, so the reward to risk ratio may be lower than
expected for some signals. Always verify the parameters on your instrument.
- The indicator is an analysis tool. Trading decisions remain the responsibility of the trader.
15. TECHNICAL SPECIFICATION
- Program type: indicator, drawn in the chart window.
- Indicator buffers: 10, five of them are calculation buffers.
- Plots: 5, three average lines and two arrow series.
- Chart objects: panel, signal marks, labels, stop and target lines, divergence lines.
- Own objects use a unique prefix and are removed when the indicator is deleted.
- History is calculated once, then only new bars are processed.
- In the strategy tester the panel is disabled and the calculation runs without visual delays.
- MetaTrader 5 build 3000 or higher is required.
Файл подготовлен для формы описания продукта на MQL5 Market.
Формат: обычный текст, без разметки, без служебных символов.
The file is prepared for the MQL5 Market product description form.
Format: plain text, no markup, no service characters.
