MainFX session indicator

Overview:
This script is designed to help traders visually identify key market sessions on their TradingView charts. It marks both the opening and closing of major sessions (Frankfurt, London, New York, Sydney, and Tokyo) by drawing lines and labels on the chart. The indicator is highly customizable, allowing you to define specific session times, choose your preferred time zone, and adjust the visual appearance of all lines.
Key Features:
Custom Session Times:
Each session’s start and end times are defined by user inputs in a simple HHMM-HHMM format. This means you can adjust the sessions to match the exact market hours you follow, making the indicator flexible for different trading strategies and markets.
Time Zone Flexibility:
The "Chart/Local Time Zone" input lets you override the default time zone of your chart. By setting a specific time zone (e.g., "Africa/Lagos" or "Africa/Accra"), the script calculates session start and end events relative to that zone. This ensures that, regardless of where you are trading from, the session markers accurately reflect the intended market hours and adjust automatically for Daylight Saving Time if applicable.
Open Range Levels (ORH/ORL):
When a session opens or closes, the script draws horizontal lines at the high and low of the candle immediately before the event. These levels act as the Open Range High (ORH) and Open Range Low (ORL) markers. They serve as key reference points for traders to gauge price levels established just before a session change.
Customizable Visuals:
Every visual element is customizable. You can adjust the color, width, and style (defaulting to a dotted line) of both the ORH/ORL lines and the combined session lines that label open and close events. This allows you to tailor the indicator to match your charting style and ensure that the lines stand out clearly.
Session Event Detection:
The script utilizes helper functions to check each bar on the chart. It compares the current bar’s session status with that of the previous bar to determine whether a session has just started or ended. When such a transition is detected, it triggers the drawing of the appropriate lines and labels.
Optimized for Intraday Trading:
Since the script’s functionality is based on minute-level bar changes, it is best used on 1-minute or lower timeframes. This ensures precision in marking the exact moments when sessions transition, which is critical for intraday trading strategies.
How It Works:
Session Timing:
The script calculates the session periods using the time() function with the user-defined session strings and time zone. This makes it independent of the chart’s inherent time settings.
Event Triggering:
When the current bar transitions into or out of a session (i.e., the session status changes between bars), the script detects this change. It then draws horizontal lines at the previous candle’s high and low (marking ORH and ORL) and adds session labels for clarity.
Visual Customization:
Users can easily change the appearance of the drawn lines and session labels via the script’s input options, ensuring that the indicators are both aesthetically pleasing and functionally clear.
Usage:
For Traders:
Use this indicator to keep track of critical market sessions and to spot participants in the session.
Customization:
Adjust session times and the time zone to suit your local market or the specific market you are analyzing.
Visual Clarity:
Customize line styles to ensure that your chart remains clear and that the session markers are easy to interpret even during overlapping sessions.
This indicator helps traders visualize major Forex trading sessions and daily separators while automatically adjusting for Daylight Saving Time (DST). It supports Frankfurt, London, New York, Sydney, and Tokyo sessions, allowing users to customize visibility, colors, and styles.
Features:
✅ Session Open/Close Markers – Highlights key forex session openings and closings.
✅ Automatic DST Adjustment – Ensures session times remain accurate year-round.
✅ Customizable Appearance – Choose session colors, line styles, and label sizes.
✅ Futures Day Separator – Marks the end of the trading day, adapting to DST shifts.
✅ Optimized for Different Timeframes:
1-minute & lower → Displays session events.
1-hour & lower → Displays daily separators.
How It Works:
Select your preferred time zone (default: Africa/Lagos).
Enable/disable specific forex sessions.
Customize colors, line styles, and transparency for a personalized look.
The futures separator adjusts based on DST (23:00 before DST, 00:00 during DST).
Ideal for forex traders who rely on session timing and day separators for market analysis
Overview
The MainFx Day Separator & Session Lines indicator enhances your TradingView charts by clearly marking daily boundaries and key market sessions. Designed with Africa/Lagos time as the reference, this tool helps traders track session overlaps and daily transitions, making multi-timeframe analysis more intuitive.
Key Features
1. Day Separator
Automatic Daily Markers – Draws a vertical line at the start of each new day, adjusted for Daylight Saving Time (DST) where applicable.
Customizable Appearance – Modify line width, style (solid, dotted, dashed), transparency, and color to match your preferences.
Weekend Differentiation – Special styling for Sundays helps distinguish weekend transitions.
2. Session Vertical Lines
Accurate Session Timing – Plots the open and close times for major trading sessions:
Frankfurt
London (e.g., 09:00–17:00 Lagos time)
New York
Tokyo
Sydney (with proper midnight handling)
Resolution-Sensitive – Displays session lines only on lower timeframes (5-minute charts or below) to prevent clutter.
Weekday Filtering – Automatically hides session markers on weekends to focus on active trading periods.
3. Fully Customizable Settings
All parameters—including session times, line widths, styles, colors, and transparency—are user-editable, allowing for complete personalization.
Usage & Disclaimer
This indicator is a visual aid for traders and is intended for educational and analytical purposes only. Users should verify session times with their own data and adjust settings as needed. The developer does not guarantee accuracy or completeness, so use this tool as a supplement to your trading strategy. Always conduct your own research and apply proper risk management when trading.
Support & Donations
I am passionate about creating free indicators for the trading community. My next project aims to develop an indicator that will display HORC signals, but I need funding to make it happen. If you find this tool useful and would like to support my work, donations are greatly appreciated. Your support helps me continue building innovative tools and also covers essential needs.
Solana : 2g9rWRSFVXgwhXWNrwMat9uY4dLvcSyyi6jhRKmckQje
Eth : 0x0ac718c2636EA93d8d4D3f9dc4B9a3B7bD27fa50
Btc : bc1qpfumvcd8mjc0hsz25twm8syx0m4d53hl3n539fbc1qpfumvcd8mjc0hsz25twm8syx0m4d53hl3n539
Overview
The MainFx Day Separator & Session Lines indicator enhances your TradingView charts by clearly marking daily boundaries and key market sessions. Designed with Africa/Lagos time as the reference, this tool helps traders track session overlaps and daily transitions, making multi-timeframe analysis more intuitive.
Key Features
1. Day Separator
Automatic Daily Markers – Draws a vertical line at the start of each new day, adjusted for Daylight Saving Time (DST) where applicable.
Customizable Appearance – Modify line width, style (solid, dotted, dashed), transparency, and color to match your preferences.
Weekend Differentiation – Special styling for Sundays helps distinguish weekend transitions.
2. Session Vertical Lines
Accurate Session Timing – Plots the open and close times for major trading sessions:
Frankfurt
London (e.g., 09:00–17:00 Lagos time)
New York
Tokyo
Sydney (with proper midnight handling)
Resolution-Sensitive – Displays session lines only on lower timeframes (5-minute charts or below) to prevent clutter.
Weekday Filtering – Automatically hides session markers on weekends to focus on active trading periods.
3. Fully Customizable Settings
All parameters—including session times, line widths, styles, colors, and transparency—are user-editable, allowing for complete personalization.
Usage & Disclaimer
This indicator is a visual aid for traders and is intended for educational and analytical purposes only. Users should verify session times with their own data and adjust settings as needed. The developer does not guarantee accuracy or completeness, so use this tool as a supplement to your trading strategy. Always conduct your own research and apply proper risk management when trading.
This version improves readability while keeping everything professional and concise. Let me know if you'd like any adjustments! 🚀
You said:
i would love to add that i need donation as i would love to create a indicator that will show horc signal and i need fund for necessity
ChatGPT said:
You can add a donation message at the end of your description. Here’s how you might phrase it:
Support & Donations
I am passionate about creating free indicators for the trading community. My next project aims to develop an indicator that will display HORC signals, but I need funding to make it happen. If you find this tool useful and would like to support my work, donations are greatly appreciated. Your support helps me continue building innovative tools and also covers essential needs.
Btc : bc1qpfumvcd8mjc0hsz25twm8syx0m4d53hl3n539fbc1qpfumvcd8mjc0hsz25twm8syx0m4d53hl3n539f
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.