4/4/25, 2:21 PM Float — MetaTrader Indicator
EN
Advertisements
— ForexIro Gold! Profit Boost!
— Trade Forex with 1:2000 Leverage
EarnForex Software MetaTrader Indicators Float
Float
Float MetaTrader indicator — a sophisticated indicator that analyzes the previous chart history for the
given currency pair and then tries to analyze the trends in the current situation. It shows where trends start
and end in a separate chart window and Fibonacci retracement levels combined with DiNapoli levels on the
main chart. It also displays how long ago the local high and low were detected. This indicator is available
for MT4 and MT5.
The indicator repaints its levels based on all the bars it analyzes (200 by default). This means that you
cannot use its detections of new peaks or troughs as trading signals as they will be revised based on how
market situation develops further. This indicator should be used only for the analysis of trend swing
durations and important chart levels.
Input parameters
Float (default = 200) — the number of bars to process for trend analysis. The lower is the number
means more up-to-date data but less accurate analysis.
ObjectPrefix (default = "FI-") — prefix for chart objects for compatibility with other indicators.
DisableDinapoli (default = false) — if true, then DiNapoli levels won't be drawn in the main chart
window.
DisableFibonacci (default = false) — if true, then Fibonacci levels won't be drawn in the main chart
window.
DrawVerticalLinesAsBackground (default = false) — if true, vertical lines for trend start and end will be
set as chart background to avoid concealing the chart itself.
https://www.earnforex.com/metatrader-indicators/Float/ 1/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
SwingBorderColor (default = clrBlue) — the color of the swing zone borders.
SwingBorderWidth (default = 1) — the width of the swing zone borders.
SwingBorderStyle (default = STYLE_SOLID) — the line style for the swing zone borders.
SwingLinesColor (default = clrRed) — the color of the swing lines.
SwingLinesWidth (default = 1) — the width of the swing lines.
SwingLinesStyle (default = STYLE_DOT) — the line style for the swing lines.
FiboColor (default = clrGreen) — the color of the Fibonacci levels.
FiboWidth (default = 1) — the width of the Fibonacci levels.
FiboStyle (default = STYLE_DASH) — the line style for the Fibonacci levels.
DinapoliColor (default = clrRed) — the color of the DiNapoli levels.
DinapoliWidth (default = 1) — the width of the DiNapoli levels.
DinapoliStyle (default = STYLE_DOT) — the line style for the DiNapoli levels.
Float indicator example
https://www.earnforex.com/metatrader-indicators/Float/ 2/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
As you can see, the trend's start and end are marked clearly on the chart with this indicator. You can
attach it and wait for the beginning of the next trend and then decide whether to buy or sell. Fibonacci
retracement levels can be used for the target and stop-loss levels.
Download (ver. 1.02, 2023-08-07)
Float in .zip for MetaTrader 4
Download
Float in .mq4 for MetaTrader 4
Download
https://www.earnforex.com/metatrader-indicators/Float/ 3/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
Float in .zip for MetaTrader 5
Download
Float in .mq5 for MetaTrader 5
Download
Discussion
Warning!
If you do not know how to install this indicator, please read the MetaTrader
Indicators Tutorial.
Do you have any suggestions or questions regarding this indicator? You can always discuss Float with the
other traders and MQL programmers on the indicators forums.
Changelog
1.02 - 2023-08-07
Added color/style/width parameters for the indicator's lines.
1.01 - 2022-03-06
Refactored MQL4 and MQL5 code.
https://www.earnforex.com/metatrader-indicators/Float/ 4/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
Added ObjectPrefix input parameter to make possible adding more than one instance of Float to one
chart and to make it compatible with other indicators.
Improved calculation performance.
Subscribe to the newsletter
We’ll send you our monthly newsletter which is fully stocked with free resources like articles,
videos, podcasts, reward ideas, and anything else we can think of to help you make your
trading knowledge awesome.
Enter your email address
SUBSCRIBE TO OUR NEWSLETTER
Advertisements
— Trade smarter: TradingView, MT4, MT5.
Forex — the foreign exchange market (also known as FOREX or FX) is the biggest and the most liquid financial market in the
world. It boasts a daily volume of more than $7.5 trillion. Trading in this market involves buying and selling world currencies,
taking profit from the exchange rates difference. FX trading can yield high profits but is also a very risky endeavor.
Forex Brokers
MT4 Forex Brokers
MT5 Forex Brokers
PayPal Brokers
Regulated Brokers
https://www.earnforex.com/metatrader-indicators/Float/ 5/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
Oil Trading Brokers
Gold Trading Brokers
Muslim-Friendly Brokers
Web Browser Platform
Brokers with CFD Trading
ECN Brokers
Skrill Brokers
Neteller Brokers
Perfect Money FX Brokers
See all
Forex Tools
Forex Brokers
Community
Forex Books
Software
Education
About
https://www.earnforex.com/metatrader-indicators/Float/ 6/7
4/4/25, 2:21 PM Float — MetaTrader Indicator
© 2005-2025. EarnForex. All Rights Reserved.
Developed by
Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you
lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account
even faster. CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs
carry a high level of risk thus may not be appropriate for all investors. EarnForex.com is operated by EARNFOREX S.A.S., a
company registered at the following address: 229 rue Saint-Honoré, 75001 Paris, France. Tribunal de commerce de Paris
registration number: 951833029. French VAT ID: FR04951833029.
https://www.earnforex.com/metatrader-indicators/Float/ 7/7