1. Introduction
Figuring out the precise second a pattern shifts route is among the hardest issues in technical evaluation. Shifting common crossovers lag. Momentum oscillators generate conflicting indicators. Trendline breaks depend upon subjective drawing. The core issue will not be the absence of instruments — it’s the absence of a framework that mixes pattern detection with structured danger administration in a single system.
The FluxGate Precision Indicator solves this by integrating Fibonacci-based pattern detection with ATR-adaptive take-profit and stop-loss administration right into a single, non-repainting instrument. It scans value motion inside a configurable evaluation window, derives three Fibonacci ranges from the rolling highest excessive and lowest low, and generates BUY or SELL indicators when value crosses the higher or decrease threshold. Every sign mechanically produces as much as 4 take-profit targets and a stop-loss degree 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 value, all TP/SL ranges, hit standing, and commerce final result at a look.
The indicator works on any image and any timeframe. All indicators 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% degree will not be 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 value swing. After a robust transfer, value tends to retrace to one in every of these share ranges earlier than resuming the unique pattern. If a inventory rallies from 100 to 200, merchants look ahead to assist 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? Probably the most sensible rationalization is self-fulfilling habits. Giant numbers of contributors — 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 observe proportional patterns: the Fibonacci percentages describe the vary of “regular” retracements that signify momentary counter-pressure reasonably than full reversals.
Every ratio has a attribute position. The 23.6% retracement is the shallowest, suggesting sturdy authentic momentum. The 38.2% represents a average, wholesome correction. The 50% is psychological equilibrium. The 61.8% golden ratio is taken into account the utmost tolerable correction earlier than pattern continuation. The 78.6% is the deepest commonplace degree, suggesting the unique pattern is underneath severe reversal stress.
Understanding these depths issues as a result of the FluxGate Precision Indicator lets you choose which Fibonacci ranges function pattern thresholds. Selecting 23.6% for the higher threshold defines “bullish” as value 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 determine a accomplished swing, draw retracement ranges, and watch for value to achieve them. The FluxGate Precision Indicator makes use of Fibonacci ranges in a forward-looking method. As a substitute 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 newest 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 value is above this degree.
-
Development Line — The 50% midpoint. This equilibrium degree 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 under this degree.
A BUY sign requires value to shut above each the Development Line and Fib Excessive. A SELL sign requires closing under 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 indicators.
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 extensive, the space between thresholds is giant, requiring a extra vital 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 muse of pattern 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 seems to be again over the newest 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 types, the oldest bar drops off and the latest 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 indicators however extra false positives. Longer home windows (e.g., 100) create wider, extra steady bands with fewer indicators and slower response.
Merchants can regulate to match their type:
- Quick-term (M5-M30): Scale back to 20-30 bars for sooner indicators
- Swing (H1-H4): Default 44 captures medium-term traits properly
- Place (D1-W1): Improve to 60-100 bars for broader pattern identification
The ATR interval (default 14) measures volatility over a shorter lookback than the evaluation window, so TP/SL ranges reply to current volatility modifications sooner than the Fibonacci bands regulate. This dual-speed system captures pattern 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 affords two choices:
-
23.6% (Extra Delicate)Â — Default. The higher threshold sits near the vary excessive. Worth doesn’t have to retrace far earlier than the BUY threshold is met, producing extra frequent indicators.
-
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 indicators.
Fib Low Sensitivity additionally affords two choices:
-
61.8% (Much less Delicate)Â — The decrease threshold is nearer to the midpoint, producing fewer SELL indicators.
-
78.6% (Extra Delicate)Â — Default. The edge sits deep within the decrease portion, requiring value to point out sturdy bearish momentum earlier than a SELL sign fires.
The interplay between these settings determines total sign character:
| Configuration | Fib Excessive | Fib Low | Sign Frequency | Greatest For |
|---|---|---|---|---|
| Default | 23.6% | 78.6% | Average | Basic buying and selling, all timeframes |
| Aggressive | 23.6% | 61.8% | Greater | 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 all the time requires value to shut above each the Fib Excessive AND the Development Line (50%) for a BUY, or under 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 indicators 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 ultimate shut value is thought.
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 indicators. As soon as a BUY fires and the indicator enters a bullish state, no additional BUY indicators are generated till a SELL sign resets the state. This ensures precisely one sign per pattern 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 indicators in the identical route.
-
The present bar reveals no sign till it closes. There isn’t a “preview” on the forming bar.
The Fibonacci band strains 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 Threat 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 value, making the identical multiplier settings produce proportionally applicable ranges throughout devices with completely different value 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 degree. Frequent 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 + pattern continuation)
- 4 TPs: TP1=0.8, TP2=1.5, TP3=2.5, TP4=4.0 (granular scaling)
Guide Proportion Mode
When InpUseATR = false, TP/SL ranges are fastened percentages of entry value:
| 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 |
Guide mode is beneficial if you need constant distances no matter volatility. Nonetheless, ATR-adaptive mode is advisable 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 degree as every take-profit goal is reached.
The development:
| Occasion | Break-Even Strikes To | Worst-Case Final result |
|---|---|---|
| Sign fires | Authentic SL | Full loss |
| TP1 hit | Entry value | Breakeven (zero loss) |
| TP2 hit | TP1 degree | Locked-in TP1 revenue |
| TP3 hit | TP2 degree | Locked-in TP2 revenue |
| TP4 hit | Commerce totally closed | All targets captured |
If value reverses to the present break-even degree at any level, the commerce closes at that degree. If the cease loss is hit earlier than any TP, the commerce closes on the authentic SL with a loss.
The basic benefit over fastened stop-losses is {that a} commerce shifting 80% towards your goal earlier than reversing now not produces the identical loss as an instantaneous 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. Pink-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 advisable. Take into account disabling it just for very short-term scalping the place regular value 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 route (^ LONG or v SHORT), entry value, 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 towards 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 | Coloration | Which 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 | Pink | Worth 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 route, (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 Situations
| Situation | Fires When |
|---|---|
| BUY Sign | New bullish pattern change confirmed |
| SELL Sign | New bearish pattern change confirmed |
| TP1 Hit | Worth reaches first take-profit |
| TP2 Hit | Worth reaches second take-profit |
| TP3 Hit | Worth reaches third take-profit |
| TP4 Hit | Worth reaches fourth take-profit |
| SL Hit | Worth reaches stop-loss |
| BE Hit | Worth reverses to break-even degree |
Alert Channels
| Channel | Parameter | Default |
|---|---|---|
| Popup | InpAlertPopup | true |
| Sound | InpAlertSound | true |
| Push | InpAlertPush | false (requires MetaTrader cellular app setup) |
| Electronic mail | InpAlertEmail | false (requires SMTP configuration) |
All 4 channels may be enabled concurrently. A historical past guard ( g_historyDone  flag) suppresses alerts through the preliminary historic calculation, making certain you solely obtain alerts for brand spanking new indicators fashioned after the indicator hundreds.
11. Sensible Buying and selling Workflow
The next workflow describes learn how to use the FluxGate Precision Indicator from setup via 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: Establish the Sign. Look ahead to a BUY (inexperienced arrow under bar) or SELL (pink arrow above bar) sign. The dashboard updates with entry value 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, think about closing partial positions at every TP degree.
Step 6: Assessment. After every commerce, scroll again to see the inexperienced (TP hit) and pink (SL hit) rectangles. Regulate ATR multipliers if TP1 is never reached or if stops are too tight.
Timeframe Concerns
| Timeframe | Sign Frequency | Greatest 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 method: use H4 for total pattern route, H1 for main indicators, 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-Primarily based 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 |
Guide TP/SL (When ATR Disabled)
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Guide SL % | 0.8 | double | Cease-loss distance as share of entry value |
| Guide TP1 % | 0.65 | double | First take-profit as share of entry value |
| Guide TP2 % (0=disable) | 1.1 | double | Second take-profit as share; 0 disables |
| Guide TP3 % (0=disable) | 0.0 | double | Third take-profit; disabled by default |
| Guide TP4 % (0=disable) | 0.0 | double | Fourth take-profit; disabled by default |
Show Settings
| Parameter | Default | Sort | Description |
|---|---|---|---|
| Present TP/SL Traces | true | bool | Draw horizontal TP/SL strains and fill rectangles on chart |
| Present Sign Labels | true | bool | Show BUY/SELL arrow indicators 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 Electronic 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 indicators, 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 indicators, 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 via 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 accustomed to
- Allow the dashboard to see real-time commerce monitoring
- Allow popup and sound alerts so you’re notified of latest indicators
- Let the indicator run for not less than just a few buying and selling periods earlier than making parameter changes
- Use the free demo model to check on completely different devices and timeframes earlier than committing to the complete model
The indicator is on the market on the MQL5 Marketplace for each platforms:
Threat Disclaimer
Buying and selling monetary devices entails substantial danger and will not be appropriate for all buyers. Previous efficiency of any buying and selling system, methodology, or indicator will not be essentially indicative of future outcomes. The FluxGate Precision Indicator is a technical evaluation instrument that generates indicators primarily based on mathematical calculations utilized to historic value 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.






