PROTECTED SOURCE SCRIPT

Mid-Term Refuges by MFC

104
Mid-Term Refuges by MFC
Description in English
OverviewThe "Mid-Term Refuges by MFC" indicator is a versatile tool designed for TradingView, tailored for mid-term and short-term traders. It combines Classic Pivots, Higher Highs/Lower Highs/Lower Lows/Higher Lows (HH/HL/LL/LH), Daily/Weekly/Monthly/Annual Open Levels, Mid-Term Levels based on the annual open, and the All-Time High (ATH) level. Ideal for swing trading, day trading, and market structure analysis, it offers customizable visualizations to adapt to various trading styles and timeframes.
Key Features
1. Classic Pivots

Purpose: Displays pivot points (PP, S1, R1, S2, R2, S3, R3) calculated from the high, low, and close of a selected timeframe.
Visualization: Lines for the central pivot (PP), supports (S1, S2, S3), and resistances (R1, R2, R3), with customizable colors and styles.
Customization:
Enable/disable pivot lines and price labels.
Select pivot timeframe (1H, 4H, 8H, D, W, M, 12M).
Adjust colors, line thickness (1-4), and styles (solid, dashed, dotted).
Show pivots on all timeframes or only higher ones.
Display price values on lines with customizable text color and size.



2. HH/HL/LL/LH Pivots

Purpose: Identifies Higher Highs (HH), Lower Highs (LH), Lower Lows (LL), and Higher Lows (HL) to detect trend continuations or reversals.
Visualization: Dashed lines and labels at pivot points, with green for HH/LH and red for LL/HL.
Customization:
Enable/disable HH/HL/LL/LH pivots.
Adjust left/right bars (default: 5) for pivot sensitivity.
Set colors for each pivot type and limit historical pivots (up to 20).
Customize label text size and color.



3. Open Levels (Daily, Weekly, Monthly, Annual)

Purpose: Plots open prices for daily, weekly, monthly, and annual periods as key reference levels.
Visualization: Horizontal lines with labels showing the open price, updated at the start of each period.
Customization:
Enable/disable individual open levels.
Show on all timeframes or restrict to higher timeframes.
Adjust colors, line thickness (1-4), and styles (solid, dashed, dotted).
Display price labels with customizable text color and size.



4. Mid-Term Levels

Purpose: Displays upper (L1 to L8+) and lower (L-1 to L-8+) levels based on the annual open, calculated using customizable percentages.
Visualization: Dotted lines with labels for up to 8 default levels plus additional levels (up to 10).
Customization:
Enable/disable mid-term levels.
Set upper/lower percentages (default: 10%) and additional levels (0-10).
Adjust colors and line styles for primary and additional levels.



5. All-Time High (ATH)

Purpose: Tracks and displays the all-time high price of the asset.
Visualization: A horizontal line with a label at the ATH level, updated dynamically.
Customization:
Enable/disable ATH line and label.
Adjust color, line thickness (1-4), and style (solid, dashed, dotted).
Customize label text size and color.



6. Debugging Table

Purpose: Provides a table with real-time data for debugging and analysis.
Visualization: A table in the top-right corner showing pivot values, open levels, mid-term levels, and ATH.
Customization: Enable/disable the table.

Indicator Settings
General Settings

Show Debugging Table: Toggle the debugging table.
Pivot Timeframe: Select timeframe for classic pivots (1H, 4H, 8H, D, W, M, 12M).
Show Classic Pivots: Enable/disable classic pivot lines.
Show HH/HL/LL/LH Pivots: Enable/disable trend pivot lines.
Show Open Levels: Enable/disable daily, weekly, monthly, and annual open lines.

Classic Pivots

Colors and Styles: Set colors and styles (solid, dashed, dotted) for PP, S1, R1, S2, R2, S3, R3.
Line Thickness: Adjust line thickness (1-4).
Show Price Labels: Toggle price values on pivot lines.
Text Color and Size: Customize label appearance.
Enable on All Timeframes: Show pivots on intraday timeframes.

HH/HL/LL/LH Pivots

Left/Right Bars: Set sensitivity (default: 5 bars).
Colors: Green for HH/LH, red for LL/HL.
Max Historical Pivots: Limit displayed pivots (1-20).

Open Levels

Enable Daily/Weekly/Monthly/Annual: Toggle individual open levels.
Enable on All Timeframes: Show open levels on intraday timeframes.
Colors and Styles: Set colors and styles for each open level.
Line Thickness: Adjust thickness (1-4).
Show Price Labels: Toggle price values with customizable text color and size.

Mid-Term Levels

Enable Mid-Term Levels: Toggle upper/lower levels.
Upper/Lower Percentages: Set percentages (default: 10%).
Additional Levels: Add up to 10 extra levels.
Colors and Styles: Customize for primary and additional levels.

ATH

Show ATH: Toggle ATH line and label.
Color, Thickness, Style: Customize appearance.
Show Price Label: Toggle ATH price with customizable text.

How to Use

Add to Chart:
Search for "Mid-Term Refuges by MFC" in TradingView’s indicators and add it.


Initial Setup:
By default, all features (pivots, open levels, mid-term levels, ATH) are enabled.
Adjust colors, styles, percentages, and timeframes to match your strategy.


Interpretation:
Classic Pivots: Use PP, S1, R1, S2, R2, S3, R3 as support/resistance zones for entries, exits, or stops.
HH/HL/LL/LH Pivots: Identify trend direction (HH/HL for bullish, LL/LH for bearish) or reversals.
Open Levels: Use daily, weekly, monthly, and annual opens as key reference points for price reactions.
Mid-Term Levels: Monitor upper (L1 to L8+) and lower (L-1 to L-8+) levels for mid-term trend targets.
ATH: Track the all-time high as a critical resistance level.
Debugging Table: Review real-time values for pivots, opens, and levels.


Timeframes:
Ideal for swing trading (4H, D, W) and day trading (1H, 15M).
Enable "All Timeframes" for intraday analysis (1M, 5M).


Customization:
Adjust pivot sensitivity (left_bars, right_bars) for HH/HL/LL/LH.
Fine-tune percentages for mid-term levels and line styles for clarity.



Notes and Recommendations

Swing Trading: Use higher timeframes (4H, D, W) for classic pivots and mid-term levels to identify key zones.
Day Trading: Enable "All Timeframes" for open levels and pivots on lower timeframes (1M, 5M).
Avoid Clutter: Adjust text size or disable labels if the chart becomes crowded.
Testing: Experiment with pivot timeframes and mid-term level percentages for different markets (Forex, stocks, crypto).
Limitations: In low timeframes, HH/HL/LL/LH pivots may be sensitive to noise. Increase left_bars/right_bars for robustness.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.