1. Introduction
Figuring out the precise second a development shifts course is likely one of the hardest issues in technical evaluation. Shifting common crossovers lag. Momentum oscillators generate conflicting alerts. Trendline breaks rely on subjective drawing. The core problem is just not the absence of instruments — it’s the absence of a framework that mixes development detection with structured danger administration in a single system.
The FluxGate Precision Indicator solves this by integrating Fibonacci-based development detection with ATR-adaptive take-profit and stop-loss administration right into a single, non-repainting device. It scans worth motion inside a configurable evaluation window, derives three Fibonacci ranges from the rolling highest excessive and lowest low, and generates BUY or SELL alerts when worth crosses the higher or decrease threshold. Every sign mechanically produces as much as 4 take-profit targets and a stop-loss stage that scale to present volatility utilizing ATR. A progressive break-even system trails the cease as every goal is reached. An actual-time dashboard shows the present sign, entry worth, all TP/SL ranges, hit standing, and commerce end result at a look.
The indicator works on any image and any timeframe. All alerts are non-repainting — they affirm solely on closed bars and by no means disappear or change after the very fact.
The FluxGate Precision Indicator is on the market on the MQL5 Marketplace for each platforms:
A free demo model is on the market for testing earlier than buy.
2. What Are Fibonacci Retracement Ranges
The Fibonacci sequence — 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144 — produces key ratios when adjoining numbers are divided. Dividing any quantity by its successor converges towards 0.618 (the golden ratio). Its complement is 0.382. The sq. root offers 0.786, and dividing by two locations forward yields 0.236.
These derived ratios — 23.6%, 38.2%, 50%, 61.8%, and 78.6% — type the usual Fibonacci retracement ranges utilized in technical evaluation. The 50% stage is just not a real Fibonacci ratio however is included for its historic significance in Dow Concept.
In buying and selling, Fibonacci retracement ranges are utilized to a accomplished worth swing. After a robust transfer, worth tends to retrace to one in all these share ranges earlier than resuming the unique development. If a inventory rallies from 100 to 200, merchants look ahead to help on the 23.6% retracement (176.40), the 38.2% (161.80), the 50% (150.00), the 61.8% (138.20), and the 78.6% (121.40).
Why do these ranges work? Essentially the most sensible clarification is self-fulfilling habits. Giant numbers of members — together with institutional algorithms — use Fibonacci ranges for entries, exits, and cease placement, creating precise demand or provide at these zones. Past self-fulfilling prophecy, crowd psychology tends to comply with proportional patterns: the Fibonacci percentages describe the vary of “regular” retracements that characterize short-term counter-pressure reasonably than full reversals.
Every ratio has a attribute function. The 23.6% retracement is the shallowest, suggesting robust unique momentum. The 38.2% represents a reasonable, wholesome correction. The 50% is psychological equilibrium. The 61.8% golden ratio is taken into account the utmost tolerable correction earlier than development continuation. The 78.6% is the deepest customary stage, suggesting the unique development is beneath critical reversal strain.
Understanding these depths issues as a result of the FluxGate Precision Indicator lets you choose which Fibonacci ranges function development thresholds. Selecting 23.6% for the higher threshold defines “bullish” as worth close to the excessive of the vary. Selecting 38.2% requires stronger positioning earlier than a bullish sign fires. This immediately impacts sign frequency and high quality, mentioned within the Fibonacci Sensitivity Tuning part.
3. Utilizing Fibonacci for Development Detection
Conventional Fibonacci evaluation is backward-looking: you establish a accomplished swing, draw retracement ranges, and anticipate worth to achieve them. The FluxGate Precision Indicator makes use of Fibonacci ranges in a forward-looking method. As an alternative of measuring a accomplished swing after the very fact, it constantly derives Fibonacci ranges from a rolling evaluation window — the very best excessive and lowest low over the latest N bars.
The three derived ranges are:
Fib Excessive — The higher threshold, derived by subtracting 23.6% or 38.2% of the vary from the very best excessive. Bullish dominance is confirmed when worth is above this stage.
Development Line — The 50% midpoint. This equilibrium stage divides the vary into higher (bullish) and decrease (bearish) territory.
Fib Low — The decrease threshold, derived by subtracting 61.8% or 78.6% of the vary from the very best excessive. Bearish dominance is confirmed beneath this stage.
A BUY sign requires worth to shut above each the Development Line and Fib Excessive. A SELL sign requires closing beneath each the Development Line and Fib Low. This dual-threshold requirement filters out oscillations across the midpoint that will in any other case produce false alerts.
The degrees recalculate on each bar as new highs or lows type throughout the window, adapting to altering situations with out handbook intervention. When the market is risky and the vary is broad, the gap between thresholds is massive, requiring a extra important transfer to set off a sign. When quiet, the thresholds contract, making the system extra responsive. This volatility adaptation is constructed into the rolling window arithmetic.
4. The Evaluation Window Idea
The evaluation window is the inspiration of development detection. Managed by the InpAnalysisWindow parameter (default: 44), it defines what number of bars the indicator makes use of to calculate the very best excessive and lowest low from which the three Fibonacci ranges are derived.
On each bar, the indicator appears to be like again over the latest 44 bars, finds the very best excessive and lowest low, computes the vary, and derives the Fib Excessive, Development Line, and Fib Low. As every new bar kinds, the oldest bar drops off and the most recent enters, making a rolling calculation that constantly tracks market construction.
The default worth of 44 balances responsiveness and stability. On H1, it covers slightly below two buying and selling days. On D1, roughly two months. Shorter home windows (e.g., 20) produce tighter bands with extra frequent alerts however extra false positives. Longer home windows (e.g., 100) create wider, extra steady bands with fewer alerts and slower response.
Merchants can modify to match their model:
- Quick-term (M5-M30): Cut back to 20-30 bars for sooner alerts
- Swing (H1-H4): Default 44 captures medium-term traits properly
- Place (D1-W1): Enhance to 60-100 bars for broader development identification
The ATR interval (default 14) measures volatility over a shorter lookback than the evaluation window, so TP/SL ranges reply to latest volatility modifications sooner than the Fibonacci bands modify. This dual-speed system captures development construction broadly however calibrates danger tightly.
5. Fibonacci Sensitivity Tuning
Two parameters management the place the higher and decrease Fibonacci thresholds sit throughout the rolling vary: InpFibHigh (Fib Excessive Sensitivity) and InpFibLow (Fib Low Sensitivity).
Fib Excessive Sensitivity provides two choices:
23.6% (Extra Delicate) — Default. The higher threshold sits near the vary excessive. Value doesn’t have to retrace far earlier than the BUY threshold is met, producing extra frequent alerts.
38.2% (Much less Delicate) — The edge strikes farther from the excessive towards the midpoint, requiring stronger bullish conviction earlier than a BUY sign fires. Fewer however probably higher-quality alerts.
Fib Low Sensitivity additionally provides two choices:
61.8% (Much less Delicate) — The decrease threshold is nearer to the midpoint, producing fewer SELL alerts.
78.6% (Extra Delicate) — Default. The edge sits deep within the decrease portion, requiring worth to point out robust bearish momentum earlier than a SELL sign fires.
The interplay between these settings determines total sign character:
| Configuration | Fib Excessive | Fib Low | Sign Frequency | Finest For |
|---|---|---|---|---|
| Default | 23.6% | 78.6% | Average | Common buying and selling, all timeframes |
| Aggressive | 23.6% | 61.8% | Increased | Scalping, range-bound markets |
| Conservative | 38.2% | 78.6% | Decrease | Swing buying and selling, trending markets |
| Most Filter | 38.2% | 61.8% | Lowest | Place buying and selling, main traits solely |
The sign logic at all times requires worth to shut above each the Fib Excessive AND the Development Line (50%) for a BUY, or beneath each the Fib Low AND the Development Line for a SELL. This dual-threshold requirement filters noise even with the “Extra Delicate” settings.
6. Non-Repainting Sign Structure
A repainting indicator reveals alerts on the present bar that disappear or change when the following bar opens, making backtesting deceptive. The FluxGate Precision Indicator is non-repainting: all sign choices are made on confirmed (accomplished) bars solely at shift >= 1. A sign can solely seem after the bar has closed and its closing shut worth is understood.
The sign detection logic:
canBuy = (shut >= trendLine) AND (shut >= fibHigh) AND (not already bullish) canSell = (shut <= trendLine) AND (shut <= fibLow) AND (not already bearish)
The state machine guard prevents duplicate alerts. As soon as a BUY fires and the indicator enters a bullish state, no additional BUY alerts are generated till a SELL sign resets the state. This ensures precisely one sign per development change.
Three sensible penalties:
What you see on historic charts is precisely what occurred in actual time. Each arrow appeared on the shut of the bar it’s drawn on and by no means moved afterward.
Alerts alternate between BUY and SELL. You’ll by no means see two consecutive alerts in the identical course.
The present bar reveals no sign till it closes. There is no such thing as a “preview” on the forming bar.
The Fibonacci band traces do replace on the present bar as new highs and lows type — that is anticipated habits for rolling reference ranges. What doesn’t change is the sign: as soon as positioned on a confirmed bar, it stays completely.
7. ATR-Adaptive Danger Administration
The FluxGate Precision Indicator makes use of an ATR-adaptive TP/SL system that mechanically scales danger ranges to present market volatility.
How ATR-Adaptive Ranges Work
When a sign fires, the indicator reads the present ATR worth and computes a normalized ratio:
atrRatio = ATR / shut
This converts ATR to a share of worth, making the identical multiplier settings produce proportionally applicable ranges throughout devices with totally different worth scales. TP and SL ranges are then:
For a BUY sign: SL = shut * (1 – atrRatio * SL_multiplier) TP1 = shut * (1 + atrRatio * TP1_multiplier) TP2 = shut * (1 + atrRatio * TP2_multiplier) For a SELL sign: SL = shut * (1 + atrRatio * SL_multiplier) TP1 = shut * (1 – atrRatio * TP1_multiplier) TP2 = shut * (1 – atrRatio * TP2_multiplier)
Default Multiplier Settings
| Parameter | Default | Impact |
|---|---|---|
| InpSLMult | 1.5 | Cease loss at 1.5x ATR-ratio distance from entry |
| InpTP1Mult | 1.0 | First take revenue at 1.0x ATR-ratio distance |
| InpTP2Mult | 2.0 | Second take revenue at 2.0x ATR-ratio distance |
| InpTP3Mult | 0.0 | Third take revenue (disabled by default) |
| InpTP4Mult | 0.0 | Fourth take revenue (disabled by default) |
TP1 is deliberately nearer to entry than the cease loss — a “fast revenue” goal that triggers the progressive break-even system to eradicate danger on the remaining place.
Working Instance
BUY sign on EURUSD at shut 1.16910, ATR 0.00090:
atrRatio = 0.00090 / 1.16910 = 0.000770 SL = 1.16910 * (1 - 0.000770 * 1.5) = 1.16775 TP1 = 1.16910 * (1 + 0.000770 * 1.0) = 1.17000 TP2 = 1.16910 * (1 + 0.000770 * 2.0) = 1.17090
The identical settings on XAUUSD at 2350.00 with ATR 28.00 would produce SL=2308.03, TP1=2377.99, TP2=2406.00 — mechanically scaled wider for the higher-volatility instrument. No handbook adjustment wanted when switching between charts.
Disabling Take-Revenue Ranges
Setting any TP multiplier to 0.0 disables that stage. Widespread configurations:
- 1 TP: TP1=2.0, TP2-4=0 (single goal at 2x ATR)
- 2 TPs: TP1=1.0, TP2=2.0 (default — fast revenue + development continuation)
- 4 TPs: TP1=0.8, TP2=1.5, TP3=2.5, TP4=4.0 (granular scaling)
Handbook Proportion Mode
When InpUseATR = false, TP/SL ranges are fastened percentages of entry worth:
| Parameter | Default | Impact |
|---|---|---|
| InpManualSL | 0.8% | Cease loss at 0.8% from entry |
| InpManualTP1 | 0.65% | TP1 at 0.65% from entry |
| InpManualTP2 | 1.1% | TP2 at 1.1% from entry |
| InpManualTP3 | 0.0% | TP3 disabled |
| InpManualTP4 | 0.0% | TP4 disabled |
Handbook mode is beneficial while you need constant distances no matter volatility. Nonetheless, ATR-adaptive mode is beneficial for many use instances.
8. Progressive Break-Even Trailing
The progressive break-even system, managed by InpBreakEven (default: true), mechanically adjusts the efficient stop-loss stage as every take-profit goal is reached.
The development:
| Occasion | Break-Even Strikes To | Worst-Case Consequence |
|---|---|---|
| Sign fires | Authentic SL | Full loss |
| TP1 hit | Entry worth | Breakeven (zero loss) |
| TP2 hit | TP1 stage | Locked-in TP1 revenue |
| TP3 hit | TP2 stage | Locked-in TP2 revenue |
| TP4 hit | Commerce totally closed | All targets captured |
If worth reverses to the present break-even stage at any level, the commerce closes at that stage. If the cease loss is hit earlier than any TP, the commerce closes on the unique SL with a loss.
The elemental benefit over fastened stop-losses is {that a} commerce transferring 80% towards your goal earlier than reversing not produces the identical loss as a right away adversarial transfer. As soon as TP1 is hit, the worst case turns into breakeven. Every goal ratchets the ground upward, creating an uneven payoff construction that considerably improves total expectancy.
On the chart, green-filled rectangles seem between the entry and every TP when hit. Purple-filled rectangles seem if the cease loss triggers. The dashboard reveals “V” subsequent to every hit TP, “X” subsequent to a triggered SL, and the present standing (Energetic, Break Even Hit, Stopped Out, All TPs Hit, or Development Change).
For many merchants on M15 and above, holding break-even enabled is beneficial. Contemplate disabling it just for very short-term scalping the place regular worth noise might set off untimely closures.
9. The Actual-Time Dashboard
The indicator consists of an on-chart dashboard panel positioned within the upper-right nook, toggled with InpShowDashboard.
The dashboard shows sign course (^ LONG or v SHORT), entry worth, SL with hit standing, every lively TP with hit standing, and the present commerce standing. It makes use of a darkish background with coloured textual content for readability in opposition to any chart scheme.
The dashboard mechanically adjusts its top primarily based on lively TP ranges and repositions when the chart is resized. It persists throughout chart refreshes by replaying the historic sign sequence on recalculation.
Standing Messages
| Standing | Shade | That means |
|---|---|---|
| Awaiting Sign | Orange | No lively commerce session |
| Energetic | Inexperienced | Commerce in progress, no TP or SL hit but |
| Break Even Hit | Orange | Protecting cease triggered after a TP hit |
| Stopped Out | Purple | Value hit cease loss |
| All TPs Hit | Orange | All enabled targets reached |
| Development Change | Orange | Reverse sign closed the earlier session |
At a look, test: (1) sign course, (2) standing, and (3) TP markers (V or -) to know the complete commerce state immediately.
10. The Alert System
The indicator helps 8 alert situations throughout 4 supply channels, permitting real-time notification with out constantly watching the chart.
Alert Circumstances
| Situation | Fires When |
|---|---|
| BUY Sign | New bullish development change confirmed |
| SELL Sign | New bearish development change confirmed |
| TP1 Hit | Value reaches first take-profit |
| TP2 Hit | Value reaches second take-profit |
| TP3 Hit | Value reaches third take-profit |
| TP4 Hit | Value reaches fourth take-profit |
| SL Hit | Value reaches stop-loss |
| BE Hit | Value reverses to break-even stage |
Alert Channels
| Channel | Parameter | Default |
|---|---|---|
| Popup | InpAlertPopup | true |
| Sound | InpAlertSound | true |
| Push | InpAlertPush | false (requires MetaTrader cellular app setup) |
| InpAlertEmail | false (requires SMTP configuration) |
All 4 channels will be enabled concurrently. A historical past guard ( g_historyDone flag) suppresses alerts throughout the preliminary historic calculation, making certain you solely obtain alerts for brand spanking new alerts shaped after the indicator masses.
11. Sensible Buying and selling Workflow
The next workflow describes find out how to use the FluxGate Precision Indicator from setup by way of commerce administration.
Step 1: Configure. Begin with defaults: Evaluation Window 44, Fib Excessive 23.6%, Fib Low 78.6%, ATR-based TP/SL enabled (SL=1.5x, TP1=1.0x, TP2=2.0x), Break Even enabled. Activate popup and sound alerts.
Step 2: Determine the Sign. Look forward to a BUY (inexperienced arrow beneath bar) or SELL (crimson arrow above bar) sign. The dashboard updates with entry worth and all TP/SL ranges.
Step 3: Consider Context. Not each sign warrants a commerce. Verify higher-timeframe alignment, close by key ranges, and upcoming information occasions. Confluence will increase sign reliability.
Step 4: Enter the Commerce. Place a market order utilizing the precise SL and TP costs displayed on the dashboard.
Step 5: Monitor Progress. Watch the dashboard for “V” markers as TPs are hit and standing updates. If break-even is enabled, contemplate closing partial positions at every TP stage.
Step 6: Evaluation. After every commerce, scroll again to see the inexperienced (TP hit) and crimson (SL hit) rectangles. Regulate ATR multipliers if TP1 isn’t reached or if stops are too tight.
Timeframe Issues
| Timeframe | Sign Frequency | Finest For |
|---|---|---|
| M5-M15 | Excessive | Scalping, day buying and selling |
| M30-H1 | Average | Intraday swing buying and selling |
| H4-D1 | Low | Swing buying and selling |
| W1-MN | Very low | Place buying and selling |
For broader protection, apply the indicator to a number of charts concurrently. Every occasion operates independently. A sensible strategy: use H4 for total development course, H1 for major alerts, and M15 for entry timing.
12. Parameter Reference
The FluxGate Precision Indicator has 24 enter parameters organized into 5 teams.
Sign Settings
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Evaluation Window | 44 | int | Variety of bars for highest excessive / lowest low calculation |
| Fib Excessive Sensitivity | 23.6 (Extra Delicate) | enum | Higher Fibonacci threshold: 23.6% or 38.2% |
| Fib Low Sensitivity | 78.6 (Extra Delicate) | enum | Decrease Fibonacci threshold: 61.8% or 78.6% |
TP/SL Settings
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Use ATR-Based mostly TP/SL | true | bool | Toggle ATR-adaptive mode (true) or handbook share mode (false) |
| ATR Interval | 14 | int | Variety of bars for ATR calculation |
| SL Multiplier | 1.5 | double | Cease-loss distance as a number of of ATR ratio |
| TP1 Multiplier | 1.0 | double | First take-profit distance as a number of of ATR ratio |
| TP2 Multiplier (0=disable) | 2.0 | double | Second take-profit distance; set to 0 to disable |
| TP3 Multiplier (0=disable) | 0.0 | double | Third take-profit distance; disabled by default |
| TP4 Multiplier (0=disable) | 0.0 | double | Fourth take-profit distance; disabled by default |
| Break Even | true | bool | Allow progressive break-even trailing |
Handbook TP/SL (When ATR Disabled)
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Handbook SL % | 0.8 | double | Cease-loss distance as share of entry worth |
| Handbook TP1 % | 0.65 | double | First take-profit as share of entry worth |
| Handbook TP2 % (0=disable) | 1.1 | double | Second take-profit as share; 0 disables |
| Handbook TP3 % (0=disable) | 0.0 | double | Third take-profit; disabled by default |
| Handbook TP4 % (0=disable) | 0.0 | double | Fourth take-profit; disabled by default |
Show Settings
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Present TP/SL Strains | true | bool | Draw horizontal TP/SL traces and fill rectangles on chart |
| Present Sign Labels | true | bool | Show BUY/SELL arrow alerts on chart |
| Present Dashboard | true | bool | Present the real-time dashboard panel |
| Max Visible Historical past (bars) | 500 | int | Most variety of bars again to retain visible objects |
Alert Settings
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Allow Popup Alerts | true | bool | Present MetaTrader popup dialog on sign/TP/SL occasions |
| Allow Push Notifications | false | bool | Ship push notification to MetaTrader cellular app |
| Allow E-mail Alerts | false | bool | Ship e-mail notification by way of configured SMTP |
| Allow Sound Alerts | true | bool | Play alert sound file |
Preset Profiles
Conservative Profile — Fewer alerts, wider bands, extra room for trades to develop:
| Parameter | Worth |
|---|---|
| Evaluation Window | 60 |
| Fib Excessive Sensitivity | 38.2 (Much less Delicate) |
| Fib Low Sensitivity | 78.6 (Extra Delicate) |
| SL Multiplier | 2.0 |
| TP1 Multiplier | 1.5 |
| TP2 Multiplier | 3.0 |
| Break Even | true |
Default Profile — Balanced sign frequency and danger administration:
| Parameter | Worth |
|---|---|
| Evaluation Window | 44 |
| Fib Excessive Sensitivity | 23.6 (Extra Delicate) |
| Fib Low Sensitivity | 78.6 (Extra Delicate) |
| SL Multiplier | 1.5 |
| TP1 Multiplier | 1.0 |
| TP2 Multiplier | 2.0 |
| Break Even | true |
Aggressive Profile — Extra frequent alerts, tighter danger administration:
| Parameter | Worth |
|---|---|
| Evaluation Window | 25 |
| Fib Excessive Sensitivity | 23.6 (Extra Delicate) |
| Fib Low Sensitivity | 61.8 (Much less Delicate) |
| SL Multiplier | 1.0 |
| TP1 Multiplier | 0.8 |
| TP2 Multiplier | 1.5 |
| TP3 Multiplier | 2.5 |
| Break Even | true |
13. Set up
The FluxGate Precision Indicator is distributed by way of the MQL5.com Market and installs mechanically for each MetaTrader 4 and MetaTrader 5.
Set up Steps
- Go to the product web page on the MQL5.com Market and buy the indicator (or obtain the free demo model for testing)
- The indicator installs mechanically by way of the MQL5.com platform — no handbook file copying is required
- Restart MetaTrader or refresh the Navigator panel (right-click > Refresh)
- Discover the indicator in Navigator > Indicators > Market
- Drag the indicator onto any chart to activate it
- Configure the enter parameters within the dialog that seems and click on OK
First-Time Setup Suggestions
- Begin with the default parameters on a timeframe you’re conversant in
- Allow the dashboard to see real-time commerce monitoring
- Allow popup and sound alerts so you’re notified of recent alerts
- Let the indicator run for a minimum of a couple of buying and selling classes earlier than making parameter changes
- Use the free demo model to check on totally different devices and timeframes earlier than committing to the complete model
The indicator is on the market on the MQL5 Marketplace for each platforms:
Danger Disclaimer
Buying and selling monetary devices includes substantial danger and is probably not appropriate for all buyers. Previous efficiency of any buying and selling system, methodology, or indicator is just not essentially indicative of future outcomes. The FluxGate Precision Indicator is a technical evaluation device that generates alerts primarily based on mathematical calculations utilized to historic worth knowledge. It doesn’t assure worthwhile trades or optimistic returns. Customers ought to conduct their very own evaluation, make use of correct danger administration, and by no means danger capital they can’t afford to lose. This indicator doesn’t represent monetary recommendation, funding recommendation, or buying and selling recommendation. The developer assumes no legal responsibility for buying and selling losses incurred whereas utilizing this product.




