OPEN-SOURCE SCRIPT

Artaking 2

Components of the Indicator:
Moving Averages:

Short-Term Moving Average (MA): This is a 50-period Simple Moving Average (SMA) applied to the closing price. It is used to track the short-term trend of the market.
Long-Term Moving Average (MA): This is a 200-period SMA used to track the long-term trend.
Day Trading Moving Average: A 20-period SMA is used specifically for day trading signals, focusing on shorter-term price movements.
Purpose:

The crossing of these moving averages (short-term crossing above or below long-term) provides basic buy and sell signals, indicative of potential trend reversals or continuations.
ADX (Average Directional Index) for Trend Strength:

ADX Calculation: The ADX is calculated using a 14-period length with 14-period smoothing. The ADX value indicates the strength of a trend, regardless of direction.
Strong Trend Condition: The indicator considers a trend to be strong if the ADX value is above 25. This threshold helps filter out trades during weak or sideways markets.
Purpose:

To ensure that the strategy only generates signals when there is a strong trend, thus avoiding whipsaws in low volatility or range-bound conditions.
Support Levels:

Support Level Calculation: The indicator calculates the lowest close over the last 100 periods. This level is used to identify significant support zones where the price might find a floor.
Purpose:

Support levels are critical in identifying potential areas where the price might bounce, making them ideal for setting stop losses or identifying buy opportunities.
Volatility Spike (Proxy for News Trading):

ATR (Average True Range) Calculation: The indicator uses a 14-period ATR to measure market volatility. A volatility spike is identified when the ATR is greater than 1.5 times the 14-period SMA of the ATR.
Purpose:

This serves as a proxy for news events or other sudden market movements that could make the market unpredictable. The indicator avoids generating signals during these periods to reduce the risk of being caught in a volatile, potentially news-driven move.
Fibonacci Retracement Levels:

61.8% Fibonacci Level: Calculated from the highest high and lowest low over the long MA period, this retracement level is widely regarded as a significant support or resistance level.
Purpose:

Position traders often use Fibonacci levels to identify potential reversal points. The indicator incorporates the 61.8% level to fine-tune entries and exits.
Candlestick Patterns for Price Action Trading:

Bullish Engulfing Pattern: A bullish reversal pattern where a green candle fully engulfs the previous red candle.
Bearish Engulfing Pattern: A bearish reversal pattern where a red candle fully engulfs the previous green candle.
Purpose:

These patterns are classic signals used in price action trading to identify potential reversals at key levels, especially when they align with other conditions like support/resistance or Fibonacci levels.
Signal Generation:
The indicator generates buy and sell signals by combining the above elements:

Buy Signal:

A buy signal is triggered when:
The short-term MA crosses above the long-term MA (indicating a potential uptrend).
The trend is strong (ADX > 25).
The current price is near or below the 61.8% Fibonacci retracement level, suggesting a potential reversal.
No significant volatility spike is detected, ensuring the market isn’t reacting unpredictably to news.
Sell Signal:

A sell signal is triggered when:
The short-term MA crosses below the long-term MA (indicating a potential downtrend).
The trend is strong (ADX > 25).
The current price is near or above the 61.8% Fibonacci retracement level, suggesting potential resistance.
No significant volatility spike is detected.
Day Trading Signals:

Independent of the main trend signals, the indicator also generates intraday buy and sell signals when the price crosses above or below the 20-period day trading MA.
Price Action Signals:

The indicator can trigger buy or sell signals based purely on price action, such as the occurrence of bullish or bearish engulfing patterns. This is optional and can be enabled or disabled.
Alerts:
The indicator includes built-in alert conditions that notify the trader when a buy or sell signal is generated. This allows traders to act immediately without having to constantly monitor the charts.
Practical Application:
This indicator is versatile and can be used across various trading styles:

Position Trading: The long-term MA, Fibonacci retracement, and ADX provide a solid foundation for identifying long-term trends and potential entry/exit points.
Day Trading: The short-term MA and day trading MA offer quick signals for intraday trading.
Price Action: Candlestick pattern recognition allows for precise entry points based on market sentiment and behavior.
News Trading: The volatility spike filter helps avoid trading during periods of market instability, often driven by news events.
Conclusion:
The Comprehensive Trading Strategy Indicator is a robust tool designed to help traders navigate various market conditions by integrating multiple strategies into a single, coherent framework. It provides clear, actionable signals while filtering out potentially dangerous trades during volatile or weak market conditions. Whether you're a long-term trader, a day trader, or someone who relies on price action, this indicator can be a valuable addition to your trading toolkit.
Bands and ChannelsCandlestick analysisChart patterns

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer