Fibos
Download scriptThis script is a specialized tool designed for the MetaTrader trading platform to automate and visualize Fibonacci retracement levels on your price charts. It simplifies the process of identifying significant price zones by automatically detecting key market extremes and plotting corresponding analytical lines.
Core Functionality
The primary purpose of this indicator is to identify the "Highest High" and "Lowest Low" within a specific timeframe that you define. Based on these two extreme points, it constructs a visual Fibonacci framework directly on your chart.
Key features include:
- Automated Extremes Detection: Instead of manually clicking on peaks and valleys, the script scans back through a user-defined number of bars (the "Bars Back" setting) to find the highest price point and the lowest price point automatically.
- Dynamic Fibonacci Plotting: Once the highs and lows are identified, the script draws a trend line connecting them and overlays several Fibonacci levels (such as 0.236, 0.382, 0.500, 0.618, and others). These levels help traders identify potential support and resistance zones where price might react or reverse.
- Directional Flexibility: The logic allows you to choose between a "High to Low" calculation (useful for identifying retracements in a downtrend) or a "Low to High" calculation (ideal for uptrends), ensuring the levels align correctly with the current market structure.
- Visual Clarity: The script includes features to draw vertical lines at the exact moments the highest and lowest prices occurred. This provides an immediate visual reference for the boundaries of the current price swing.
- Clean Chart Management: To prevent your chart from becoming cluttered with old data, the script includes an automated cleanup routine. Every time the script updates, it identifies and removes previous drawing objects that no longer meet the active criteria, ensuring only the most relevant information is visible.
User Customization Options
The script provides several inputs to tailor the experience to your specific trading style:
- Calculation Mode: Choose whether the tool focuses on High-to-Low or Low-to-High price movements.
- Customizable Levels: You can manually adjust the specific Fibonacci percentages you wish to see on the chart.
- Lookback Period: Adjust how many previous bars the script should analyze to find its highs and lows.
- Visual Styling: Customize the colors of the lines and vertical markers to match your personal chart theme.
- Pause Function: A toggle that allows you to temporarily stop the script from updating if you wish to keep a specific drawing static for manual observation.
By automating the detection of these critical price anchors, the tool eliminates the guesswork involved in placing Fibonacci levels, allowing for a more consistent and objective approach to technical analysis.
ÿþ/ / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
/ / | I n d i c a t o r _ N a m e . m q 4 |
/ / | D e v e l o p e d b y C o d e r s G u r u |
/ / | C o p y r i g h t e d f o r x p w o r x |
/ / | h t t p s : / / w w w . x p w o r x . c o m |
/ / * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
# p r o p e r t y c o p y r i g h t "