INVITE-ONLY SCRIPT

IsAlgo - Ultra Trend Strategy

מעודכן
► Overview:
The Ultra Trend strategy is designed to identify trend lines based on average price movement and execute trades when the price crosses the middle line, confirmed by an entry candle. This strategy combines ATR, Moving Averages, and customizable candlestick patterns to provide a versatile and robust trading approach.

► Description:
The Ultra Trend strategy employs a multi-faceted approach to accurately gauge market trends and execute trades. It combines the Average True Range (ATR) with trendline analysis and Moving Averages, providing a comprehensive view of market conditions. The strategy uses ATR to measure market volatility and the average price movement, helping to set dynamic thresholds for trend detection and adapting to changing market conditions. The slope of the trend is calculated based on the angle of price movement, which aids in identifying the strength and direction of the trend.

Additionally, a Moving Average is used to filter trades, ensuring alignment with the broader market direction and reducing false signals, thereby enhancing trade accuracy.

Traders can configure the strategy to enter trades in the direction of the trend, against the trend, or both. This feature enhances the adaptability of the Ultra Trend strategy, making it suitable for various trading styles and market environments.

↑ Long Entry:
A long trade is executed when the entry candle crosses and closes above the trend line. This indicates a bullish market condition, signaling an opportunity to enter a buy position.
תמונת-בזק

↓ Short Entry:
A short trade is executed when the entry candle crosses and closes below the trend line. This indicates a bearish market condition, signaling an opportunity to enter a sell position.
תמונת-בזק

✕ Exit Conditions:
The strategy offers multiple stop-loss options to manage risk effectively. Traders can set stop-loss levels using fixed pips, ATR-based calculations, the higher/lower price of past candles, or close a trade if a candle moves against the trade direction.

Up to three take profit levels can be set using methods such as fixed pips, ATR, and risk-to-reward ratios. This allows traders to secure profits at various stages of the trade.

A trailing stop feature adjusts the stop loss as the trade moves into profit, locking in gains while allowing the trade to continue capturing potential upside. Additionally, a break-even feature moves the stop loss to the entry price once a certain profit level is reached, protecting against losses.

Trades can also be closed when a trend change is detected or when a candle closes outside a predefined channel, ensuring that positions are exited promptly in response to changing market conditions.

► Features and Settings:
⚙︎ Trend: Users can configure the trend direction, length, factor, and slope, allowing for precise control over how trends are identified and followed.

⚙︎ Moving Average: An Exponential Moving Average (EMA) can be employed to confirm the trend direction indicated by the trend lines. This provides further assurance that the trend line breakout is not a false signal. The EMA can be enabled or disabled based on user preference.

⚙︎ Entry Candle: The entry candle is the candle that breaks the trend line, signaling an entry opportunity. Users can specify the minimum and maximum size of the candle's body and the ratio of the body to the entire candle size. This ensures that only significant breakouts trigger trades.

⚙︎ Trading Session: This feature allows users to define specific trading hours during which the strategy should operate, ensuring trades are executed only during preferred market periods.

⚙︎ Trading Days: Users can specify which days the strategy should be active, offering the flexibility to avoid trading on specific days of the week.

⚙︎ Backtesting: Enables a backtesting period during which the strategy can be tested over a selected start and end date. This feature can be deactivated if not needed.

⚙︎ Trades: This includes configuring the direction of trades (long, short, or both), position sizing (fixed or percentage-based), the maximum number of open trades, and limitations on the number of trades per day or based on trend.

⚙︎ Trades Exit: The strategy offers various exit methods, such as setting profit or loss limits, specifying the duration a trade should remain open, or closing trades based on trend reversal.

⚙︎ Stop Loss: Various stop-loss methods are available, including a fixed number of pips, ATR-based, or using the highest or lowest price points within a specified number of previous candles. Additionally, trades can be closed after a specific number of candles move in the opposite direction of the trade.

⚙︎ Break Even: This feature adjusts the stop loss to a break-even point once certain conditions are met, such as reaching predefined profit levels, to protect gains.

⚙︎ Trailing Stop: The trailing stop feature adjusts the stop loss as the trade moves into profit, securing gains while potentially capturing further upside.

⚙︎ Take Profit: Up to three take-profit levels can be set using various methods, such as a fixed amount of pips, ATR, or risk-to-reward ratios based on the stop loss. Alternatively, users can specify a set number of candles moving in the direction of the trade.

⚙︎ Alerts: The strategy includes a comprehensive alert system that informs the user of all significant actions, such as trade openings and closings. It supports placeholders for dynamic values like take-profit levels and stop-loss prices.

⚙︎ Dashboard: A visual display provides detailed information about ongoing and past trades on the chart, helping users monitor the strategy's performance and make informed decisions.

► Backtesting Details:
Timeframe: 5-minute US30 chart
Initial Balance: $10,000
Order Size: 4% of equity per trade
Commission: $0.05 per contract
Slippage: 5 ticks
Stop Loss: ATR-based
הערות שחרור
  • Added Main Trend Strength.
  • Added Minimum Stop Loss Pips.
  • Fixed issue with missing data in alerts.
  • Updated styles and default colors.
  • Included fixes for other bug issues.
Bands and ChannelshypertrendisalgoMoving AveragesTrend AnalysisTrend Line Break

סקריפט להזמנה בלבד

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

TradingView לא מציעה לשלם עבור סקריפט ולהשתמש בו אלא אם כן אתה סומך ב-100% על המחבר שלו ומבין כיצד הסקריפט עובד. במקרים רבים, אתה יכול למצוא אלטרנטיבה טובה לקוד פתוח בחינם בבסקריפטים הקהילתיים שלנו.

הוראות המחבר

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

אזהרה: נא לקרוא לפני בקשת גישה.

גם על:

כתב ויתור