Simple Xtrade Weekly Trend

Simple Xtrade Weekly Trend
Overview:
This indicator determines the market’s weekly trend direction by comparing the closing price of the current candle with the previous candle on a custom timeframe (default is Weekly). It uses this comparison to identify whether the trend is bullish or bearish and provides signals accordingly.
Core Functionality:
Custom Timeframe Input:
The script allows you to select any timeframe (default is "W" for Weekly) to determine trend direction.
This enables flexibility depending on whether you want to align with weekly, daily, or even monthly trends.
Percentage Price Difference Calculation:
It calculates the percentage difference between the current and previous candle closes on the selected timeframe.
Formula:
(current close - previous close) / previous close
Trend Direction Logic:
If the percentage change is greater than a user-defined threshold, the market is considered bullish.
If the percentage change is less than the negative threshold, the market is considered bearish.
If the change is within the threshold range, the trend direction remains the same as the previous state (persistent logic).
Trade Entry Logic:
Bullish Condition:
When the percentage change is greater than the threshold, the indicator triggers a long entry signal labeled:
"WEEKLY TREND - BULLISH"
Bearish Condition:
When the percentage change is below the negative threshold, the indicator triggers a short entry signal labeled:
"WEEKLY TREND - BEARISH"
The persistent buying variable ensures the trend holds unless clearly invalidated by a significant opposite move.
Practical Use:
Designed for trend-following strategies, especially useful for:
Aligning intraday trades with higher-timeframe trends.
Avoiding counter-trend trades.
Gaining a clear directional bias at the start of each trading week.
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente Simple_Xtrade.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.
Declinazione di responsabilità
Script su invito
Solo gli utenti autorizzati dall'autore hanno accesso a questo script e ciò richiede solitamente un pagamento. Puoi aggiungere lo script ai tuoi preferiti, ma potrai utilizzarlo solo dopo aver richiesto l'autorizzazione e averla ottenuta dal suo autore - per saperne di più leggi qui. Per maggiori dettagli, segui le istruzioni dell'autore qui sotto o contatta direttamente Simple_Xtrade.
TradingView NON consiglia di pagare o utilizzare uno script a meno che non ci si fidi pienamente del suo autore e non si comprenda il suo funzionamento. Puoi anche trovare alternative gratuite e open-source nei nostri script della comunità.
Istruzioni dell'autore
Attenzione: prima di richiedere l'accesso, leggi la nostra guida per gli script su invito.