FJ Universe RSI macd
- Experts
-
Frantisek Juris
Hello!
Thank you for visiting my profile - I truly appreciate it!
I'm a full-time traveler who previously worked as an automation specialist in the field of software testing and development. I’ve worked with companies like Vodafone, NCR, and Global Payments in Prague, Czech Republic. - Version: 1.0
- Activations: 5
Overview
FJUNIVERSE RSI MACDON EA is a fully automated Expert Advisor for MetaTrader 5 that uses RSI (Relative Strength Index) and MACD (Moving Average Convergence Divergence) as its core signal engine. Before any trade is opened, the EA evaluates up to ten configurable RSI and MACD conditions simultaneously. All conditions must pass at the same time. This approach reduces false entries and improves the quality of every position placed on the account. This EA is extended version of original FJ UNIVERSE HFTT Expert Advisor...
The EA includes eight trading strategy modes, a Dollar Cost Averaging engine, an Auto Lot Recovery system, and a real-time on-chart filter dashboard that shows the live status of every signal condition.
Signal Engine - RSI and MACD Conditions
Every trade entry is gated by the FJU EYE Filter. The following conditions are available. Each one can be enabled or disabled independently:
- RSI level filter: enter only when RSI is at or below a threshold, or at or above a threshold
- RSI bullish divergence: price makes a lower low while RSI makes a higher low
- RSI bearish divergence: price makes a higher high while RSI makes a lower high
- MACD histogram rising: histogram value is higher than the previous bar
- MACD histogram falling: histogram value is lower than the previous bar
- MACD crossover count minimum: require a minimum number of signal-line crossovers since the last zero-line cross
- MACD crossover count maximum: cap the crossover count to filter out overextended oscillation
- FJU bullish momentum: RSI bullish divergence combined with MACD histogram flipping from negative to positive and crossover count within the configured range
- FJU bearish momentum: RSI bearish divergence combined with MACD histogram flipping from positive to negative and crossover count within the configured range
- Trade direction: LONG or SHORT, applied when all active conditions pass
The RSI indicator period, MACD fast period, slow period, signal period, and the crossover count range are all configurable via input parameters.
On-Chart Filter Dashboard
When the EA is running, an overlay in the upper-right corner of the chart shows the live status of each active condition. A green value means the condition is passing. A red value means it is not. The RSI and MACD indicator is automatically attached to the chart on EA start so the trader can see the underlying signals at all times during strategy testing.
Trading Strategies
| Strategy | Description |
|---|---|
| CLASSIC | Opens one trade per signal in the direction determined by the EYE Filter (LONG or SHORT). A new trade opens only when there is no existing position on the account for this EA. |
| CLASSIC_EXTREME | Opens a trade in the EYE Filter direction on every new bar signal regardless of existing open positions. Multiple positions in the same direction can stack up over time. |
| TREND | Determines direction from the last closed candle body. Opens a long when close is above open (bullish candle). Opens a short when close is below open (bearish candle). Only one position open at a time. |
| TREND_EXTREME | Same candle direction logic as TREND but opens a new position on every bar signal without waiting for the previous position to close. Positions stack in the direction of the candle. |
| REVERSE | Opposite of TREND. Opens a short when the last candle closed bullish. Opens a long when the last candle closed bearish. Only one position open at a time. |
| REVERSE_EXTREME | Same counter-candle logic as REVERSE but stacks positions on every bar signal without waiting for the previous one to close. |
| CLASSIC_EXTREME_SMART | Stacks positions in the EYE Filter direction, but only when the current price is better than the average open price of all existing positions in that direction. For longs, the ask must be at or below the current average long price. For shorts, the bid must be at or above the current average short price. |
| CLASSIC_EXTREME_SMART_PLUS | Stacks positions in the EYE Filter direction, but only when the current price is better than the best (highest for longs, lowest for shorts) individual entry price among all open positions in that direction. A stricter entry filter than CLASSIC_EXTREME_SMART. |
Dollar Cost Averaging
When DCA is enabled, the EA opens additional positions as the market moves against the initial trade. The basket of positions is closed together when the combined take-profit level is reached. A stop-loss can optionally remain active during DCA sequences. The lot size of each additional position is calculated from the configured trade size settings.
Auto Lot Recovery
When previous trades have resulted in a net loss, the Auto Lot Recovery system calculates a larger lot size for the next trade to recover the deficit. Two modes are available:
- From past trades by magic number: reads the actual closed profit and loss of the last N trades belonging to this EA and calculates the exact lot needed to recover
- From equity and balance drawdown: monitors live equity against balance and triggers a recovery reset when the gap exceeds the configured threshold
Take-Profit and Stop-Loss Sizing
Four sizing formats are available:
- PERCENT_OF_BALANCE: lot size is calculated so that a full price move to zero would cost the configured percentage of account balance (-100% in LONG case). In practice this produces a very small position, so a typical TP or SL hit represents only a fraction of that percentage loss.
- PERCENT_OF_EQUITY: same calculation as PERCENT_OF_BALANCE but uses live equity instead of balance, so the lot size adjusts dynamically as equity changes.
- CURRENCY_AMOUNT: fixed amount in the account currency
- LOT: direct lot size input
Equity Target Auto-Exit
A specific equity value can be configured. When the account reaches that level, the EA closes all open positions and removes itself from the chart. This is useful for running profit targets on challenge accounts or managed accounts.
Input Parameters
Strategy settings
| Parameter | Default | Description |
|---|---|---|
| RSIM_TP_PERC | 1.0 | Take-profit size, interpreted by costFormat |
| RSIM_SL_PERC | 1.0 | Stop-loss size, interpreted by costFormat |
| costOfSingleOrder | 1.0 | Base trade size |
| costFormat | PERCENT_OF_BALANCE | How cost is measured: LOT, CURRENCY_AMOUNT, PERCENT_OF_BALANCE, PERCENT_OF_EQUITY |
| tradingStrategy | CLASSIC | One of eight strategy modes |
DCA and recovery settings
| Parameter | Default | Description |
|---|---|---|
| useDCA | false | Enable Dollar Cost Averaging |
| activateSLWithDCA | false | Keep stop-loss active during DCA sequences |
| useAutoLotRecoveryByFJU | FROM_PAST_TRADES_BY_MAGIC_NUMBER | Lot recovery method: by past trades, equity drawdown, or disabled |
| recoveryRangeForPastTrades | 100 | Number of past trades included in the lot recovery calculation |
| additionalPercentageToRecovery | 10 | Extra percentage added on top of the calculated recovery lot |
| closeAllTradesOnEquityHigherThen | 0 | Auto-close all trades when equity reaches this value. Set to 0 to disable. |
| useEquityManagerForAutoLotRecovery | true | Enable the equity-based position reset guard |
| lastCycleOfRSIM | false | Mark this as the final recovery cycle. No new entries open after recovery completes. |
EA general settings
| Parameter | Default | Description |
|---|---|---|
| orderComment | FJUNIVERSE.COM | RSIM | TRADE | Comment attached to every order ticket |
| magicNumber | 260306 | EA identifier. Must be unique per symbol and chart instance. |
| useFillingPolicy | true | Auto-detect the broker fill policy (IOC, FOK, or RETURN) |
RSI and MACD signal conditions
| Parameter | Default | Description |
|---|---|---|
| EYE_RSI_BELOW | 100.0 | Enter only when RSI is at or below this value. Set to 100 to ignore. |
| EYE_RSI_ABOVE | 0.0 | Enter only when RSI is at or above this value. Set to 0 to ignore. |
| EYE_RSI_BULL_DIV | false | Require RSI bullish divergence to open a trade |
| EYE_RSI_BEAR_DIV | false | Require RSI bearish divergence to open a trade |
| EYE_MACD_RISING | false | Require the MACD histogram to be rising |
| EYE_MACD_FALLING | false | Require the MACD histogram to be falling |
| EYE_MACD_X_ABOVE | 0 | Minimum MACD signal-line crossover count since the last zero-line cross. Set to 0 to ignore. |
| EYE_MACD_X_BELOW | 99 | Maximum MACD crossover count. Set to 99 to ignore. |
| EYE_BULL_MOMENTUM | false | Require FJU bullish momentum: RSI divergence combined with MACD histogram flip and crossover count in range |
| EYE_BEAR_MOMENTUM | false | Require FJU bearish momentum: bearish counterpart of the above condition |
| EYE_OPEN_SIGNAL | LONG_TRADE | Direction when all conditions pass: LONG_TRADE or SHORT_TRADE |
RSI and MACD indicator settings
| Parameter | Default | Description |
|---|---|---|
| EYE_RSI_LEN | 14 | RSI period length |
| EYE_MACD_FAST | 12 | MACD fast EMA period |
| EYE_MACD_SLOW | 26 | MACD slow EMA period |
| EYE_MACD_SIG | 9 | MACD signal smoothing period |
| EYE_MACD_MIN_X | 2 | Minimum crossover count for the momentum signal |
| EYE_MACD_MAX_X | 3 | Maximum crossover count for the momentum signal |
| EYE_SHOW_INDICATOR | true | Attach the RSI and MACD visual indicator to the chart on EA start |
Installation
- Place FJUNIVERSE_RSI_MACDON.ex5 in the MQL5 Experts folder
- Restart MetaTrader 5 or refresh the Navigator
- Drag the EA onto a chart and enable AutoTrading
The EA works on all symbols and all timeframes. The RSI and MACD indicator is attached to the chart on background automatically on start and removed automatically when the EA is removed.
Notifications (optional)
The EA can send trade reports to Discord via webhook and to Telegram via Bot API. Both are optional. To use them, allow the relevant URLs in MetaTrader 5 under Tools, Options, Expert Advisors, Allow WebRequests for listed URLs. If notifications are not needed, leave the webhook and token fields empty.
Notes
- All signal conditions are AND-gated. Every condition that is enabled must pass simultaneously before the EA opens a trade. Disabling a condition removes it from the check entirely. A condition with its default value set to ignore (for example RSI_BELOW = 100 or RSI_ABOVE = 0) has no effect unless changed.
- The magic number must be unique per chart instance when running the EA on multiple symbols or timeframes at the same time.
- For further documentation and set file examples, see the product comments section.
Risk Disclaimer:
Trading involves significant risks, and past performance is not indicative of future results. FJ UNIVERSE EXPERT ADVISORS uses a high-frequency trading strategy with high leverage, which amplifies both potential profits and losses. Market volatility, economic changes, and unforeseen events can impact performance. There is no guarantee of profits, and you may lose part or all of your invested capital. Always conduct your own research, assess your risk tolerance, and consider consulting a financial advisor before using this EA. The performance shown reflects my account, but your results may vary due to differences in account size, broker conditions, or execution timing. I am not liable for any losses incurred by users of this EA.

