OPEN-SOURCE SCRIPT

NAS Strategy [tradbie]

147
Hello Traders!

Introducing "NAS Strategy [tradbie]"!

NAS Strategy [tradbie] is an all-in-one NAS Strategy with several unique features.

This script is a comprehensive TradingView tool designed for session visualization, trendline analysis, fractal detection, and price-based alerts. It provides traders with customizable features to improve their technical analysis and decision-making

Features

1. Timezone Offset Settings
  • Allows users to set a timezone offset for the script.
  • Provides a floating-point input field for time zone offset in hours (e.g., 1 for CET, -5 for EST).
  • Adjustable in steps of 0.5 hours.
  • Includes a tooltip for instructions on usage.


2. Session Settings (grp1)
This section defines multiple trading sessions (e.g., Asia, London, NY Wall Street) with customizable settings:
  • Session Text: Name of the session (e.g., "Asia Session").
  • Session Time: Time range for each session (e.g., "0100-0700").
  • Session Color: Color used for visual display.
  • Session Show: Boolean option to toggle session visibility.
  • Session Length: Defines session line length.
  • Session Label Offset: Adjusts label position relative to the session.
  • Custom Labels: Custom names for session highs and lows (e.g., "Asia Session High").


3. Session Alerts (grp_alerts)
Alerts can be triggered when price reaches key session levels:
  • High Alert: Triggered when the price exceeds the session high.
  • Low Alert: Triggered when the price falls below the session low.
  • Applies to multiple sessions: Asia, London, NY Wall Street, New York, and 14 Uhr.


4. Session Time Adjustment Function (adjustTime)
  • Adjusts session times according to the user’s timezone offset.
  • Converts session start and end times based on the offset.
  • Returns the adjusted time range dynamically.


5. Reminder Settings (grp_reminder)
Displays a customizable reminder message on the chart:
  • Main Text & Subtext: Displays key messages (e.g., "Trading is Business").
  • Text Colors & Sizes: Customization options for color and font size.
  • Position: Defines reminder placement on the chart (e.g., top-center).


6. Session Variables
Stores session high and low values for calculations and alerts:
  • Example Variables: s1_high, s2_low.
  • Used to define session ranges and trigger alerts.


7. Alert Conditions
Alerts are triggered based on session highs and lows:
  • High Alert: Activates when price reaches or exceeds session high.
  • Low Alert: Activates when price drops below session low.
  • Separate alert conditions for each session.


8. Trendline Settings
Customizable settings for trendlines:
  • Uptrend/Downtrend Line Colors: Defines color scheme.
  • Line Width: Adjusts trendline thickness.
  • Break of Structure (BoS) Trendline Colors: Special colors for structure break trendlines.


9. Fractal Settings
Allows customization of fractal detection and display:
  • Fractal Colors: Customizable upward and downward fractal colors.
  • Fractal Size: Options for different sizes (e.g., tiny, small).
  • Fractal Lookback Bars: Defines the number of past candles checked for fractals (e.g., 50 candles).

________________________________________
Key Features

1. Trendlines and Break of Structure (BoS)
  • Detects upward and downward fractals (potential trend reversals).
  • Draws trendlines from fractals and tracks when they break.
  • Alerts notify when a trendline is broken, signaling structural changes.

2. Session Boxes and Alerts
  • Highlights different trading sessions (Asia, London, NY Wall Street, etc.).
  • Draws session boxes around price action.
  • Alerts notify users when session highs or lows are triggered.

3. Fractal Calculation
  • Identifies fractals for technical analysis (turning points in price action).
  • Marks fractals visually on the chart.

4. Reminder and Notes Display
  • Displays a table with customizable reminders and trading notes.
  • Includes checkboxes to track trading tasks and plans.

5. Trading Plan
  • Shows a checklist of four trading plan points.
  • Each point has a checkbox for tracking completion.

6. Alerts Based on Session Highs and Lows
  • Alerts users of significant price movements.
  • Customizable conditions for alerts.

7. Session Color and Styling
  • Allows users to differentiate sessions using custom colors and labels.

________________________________________
Possible Enhancements
1. Session Integration
  • Dynamically adjust session start/end times (e.g., add countdowns or integrate real-time market data).

2. Trendline Updates
  • Introduce conditions for auto-adjusting or deleting trendlines as price evolves.

3. BoS Enhancements
  • Extend Break of Structure logic to include multiple levels and support/resistance zones.

4. Alert Customization
  • Add complex conditions, combining fractals with trendline breaks for enhanced alerts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.