OPEN-SOURCE SCRIPT

Supertrend @TechnoCharts

The Supertrend Strategy with Daily Exit at 3:20 PM is a trend-following trading strategy that uses the Supertrend indicator to generate buy and sell signals based on the direction of the trend. Here’s a quick summary of its key elements:

1. Supertrend Indicator
The Supertrend is calculated using the Average True Range (ATR), which is a volatility indicator.
A multiplier (typically set to 3) is applied to the ATR to determine the threshold for trend shifts.
When the price crosses above or below the calculated thresholds (up and down), the trend direction changes.
ATR Period (default: 10) and ATR Multiplier (default: 3.0) are adjustable inputs.
2. Trend and Signal Logic
Buy Signal: Generated when the trend shifts from down to up.
Sell Signal: Generated when the trend shifts from up to down.
These signals are displayed on the chart along with optional labels to highlight buy and sell points.
3. Daily Exit Condition
The strategy includes a time-based exit, which closes any open positions at 3:20 PM each day.
This daily exit helps avoid holding positions overnight and mitigates risk from market gaps.
4. Position Sizing
The strategy uses 100% of equity for each trade by default, which is configurable.
5. Alerts
Alerts are set up for buy, sell, and trend change signals, allowing traders to receive notifications when these events occur.
This strategy is best suited for traders who want to follow trends during the day and avoid holding positions overnight, combining trend-following with a daily closing mechanism to manage risk.
Bands and Channelsmultitimeframeoptions

סקריפט קוד פתוח

ברוח TradingView אמיתית, מחבר הסקריפט הזה פרסם אותו בקוד פתוח, כך שסוחרים יוכלו להבין ולאמת אותו. כל הכבוד למחבר! אתה יכול להשתמש בו בחינם, אבל השימוש החוזר בקוד זה בפרסום כפוף לכללי הבית. אתה יכול להכניס אותו למועדפים כדי להשתמש בו בגרף.

רוצה להשתמש בסקריפ זה בגרף?

כתב ויתור