PROTECTED SOURCE SCRIPT

Sessions + Confirmed Trend + Volume + Alerts + StochRSI

66
Instructions for using the "Sessions + Trend Confirmed + Volume + Alerts + TP1/TP2/TP3 + SL + StochRSI Confirm" indicator
This indicator is designed to help identify trading sessions (Asian, European, American), confirm trends using the HMA (Hull Moving Average), analyze trading volume, generate buy/sell signals, and apply TP (Take Profit) and SL (Stop Loss) levels to charts.
Basic settings: After the indicator is added to the chart, you will notice a settings panel on the left. Here you can change the indicator settings according to your preferences:

Trading sessions:

Show Asian Session: You can enable or disable the display of the Asian session on the chart.

Show European Session: You can enable or disable the display of the European session on the chart.

Show American Session: You can enable or disable the display of the American session on the chart.

TP/SL Settings:

Show TP1/TP2/TP3 and SL: Enable or disable the display of TP and SL levels on the chart.

TP1 %, TP2 %, TP3 %: Set the profit percentage for each TP (Take Profit) level.

Stop Loss %: Set the percentage for the Stop Loss.

TP/SL Line Duration (bars): Adjust the duration for which the TP/SL lines will remain on the chart.

HMA Settings:

Fast HMA Period: Adjust the period for the fast HMA (recommended: 9-14 for small timeframes, 14-21 for large timeframes).

Slow HMA Period: Adjust the period for the slow HMA (recommended: 21-50 for large timeframes).

Volume Settings:

Volume Multiplier: Adjust the volume multiplier to filter out large volumes. (Recommendation: 1.5-2.0 for high volatility, 1.2-1.5 for more stable markets).

Additional Confirmations:

Volume Confirmation: Enable or disable confirmation of trading signals based on volume.

Stochastic RSI Confirmation: Enable or disable confirmation of signals based on Stochastic RSI.

2. How the indicator works:
Trading Sessions: The indicator will color the chart background according to the active session (Asia, Europe or USA), to give you a clear view of the trading periods.

Asia: Blue background

Europe: Light blue background

USA: Red background

Buy/Sell signals: The indicator will display trading signals on the chart based on the following conditions:

Buy signal (BUY): When the fast HMA (blue) crosses the slow HMA (orange) in the upward direction and the volume and Stochastic RSI confirmation conditions are met (if these confirmations are enabled).

Sell signal (SELL): When the fast HMA (blue) crosses the slow HMA (orange) in the downward direction and the volume and Stochastic RSI confirmation conditions are met (if these confirmations are enabled).

These signals will appear as green (BUY) and red (SELL) labels on the chart.

TP and SL levels: After a valid trading signal (BUY/SELL), the indicator will place TP1, TP2, TP3 and SL levels to guide you in managing your position. Lines will be drawn on the chart to show the price levels at which you could close the position for profit or limit losses.

Volume: The indicator analyzes the trading volume. If the current volume exceeds the moving average over a period of 20 bars (or other custom period), it will consider this volume as significant (HIGH VOLUME). If the volume is not significant, it will be marked as LOW VOLUME.

Stochastic RSI: The indicator calculates and uses Stochastic RSI to confirm buy/sell signals:

Buy confirmation: Stochastic RSI is below 20 and the K line (fast curve) exceeds the D line (slow curve).

Sell ​​confirmation: Stochastic RSI is above 80 and the K line is below the D line.

This helps to avoid false signals and increase the accuracy of the signals.

3. Alert in TradingView:
To enable alerts in TradingView based on buy and sell signals:

After the indicator is added to the chart, click on the "Alerts" button at the top of TradingView.

Select the desired conditions, for example:

"BUY ALERT" to receive a notification when a buy signal is generated.

"SELL ALERT" to receive a notification when a sell signal is generated.

4. Additional customization:
You can adjust the parameters of the indicators (HMA, RSI, Stochastic RSI) according to your needs or different financial instruments. For example, for BTC, you could use a shorter fast HMA, while for EUR/USD you can use a longer HMA to reflect the different volatility.

You can change the length of the TP/SL lines to make them more visible or reduce them if you don't want them to stay on the chart for too long.

To adjust the indicators according to each timeframe, I will provide you with the recommended settings for each specific timeframe for both instruments, BTC and EUR/USD.

Recommended settings for each timeframe:
1-Minute (1m):
BTC:

Fast HMA: 7

Slow HMA: 14

RSI: 7

Stochastic RSI: 7, 3, 3

Volume: Use a higher volume multiplier, e.g. 1.5.

EUR/USD:

Fast HMA: 9

Slow HMA: 18

RSI: 7

Stochastic RSI: 7, 3, 3

Volume: Use a lower volume multiplier, e.g. 1.2.

5-Minute (5m):
BTC:

Fast HMA: 9

Slow HMA: 18

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 12

Slow HMA: 24

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

15-Minute (15m):
BTC:

Fast HMA: 9

Slow HMA: 21

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 14

Slow HMA: 28

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

1-Hour (1h):
BTC:

Fast HMA: 14

Slow HMA: 28

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 18

Slow HMA: 36

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

4-Hour (4h):
BTC:

Fast HMA: 18

Slow HMA: 36

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 21

Slow HMA: 42

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

1-Day (1d):
BTC:

Fast HMA: 21

Slow HMA: 50

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 28

Slow HMA: 56

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

1-Week (1w):
BTC:

Fast HMA: 28

Slow HMA: 56

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.5 - 2.

EUR/USD:

Fast HMA: 42

Slow HMA: 84

RSI: 14

Stochastic RSI: 14, 3, 3

Volume: 1.2.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.