OPEN-SOURCE SCRIPT

Intraday + 1-Hour Trend Match

Release Note: Intraday + 1-Hour Trend Match Strategy (Version 1.1)
Overview:
We’ve updated the Intraday + 1-Hour Trend Match strategy with a new exit condition to close trades either at the all-day high or at 3:00 PM. This update enhances the strategy by allowing it to exit at the best possible price for the day, maximizing potential profits while maintaining the 3:00 PM fallback for closing positions.

Key Updates:
All-Day High Tracking:

The strategy now tracks the highest price of the day, and if the price reaches the all-day high, the trade is exited.
The all-day high is updated continuously during the trading session to ensure accurate tracking.
Exit Conditions:

Exit at All-Day High: The strategy exits the position when the current price reaches the highest price of the day.
Fallback Exit at 3:00 PM: If the all-day high is not reached, the position is automatically closed at 3:00 PM to prevent holding past the market close.
Improved Strategy Logic:

The strategy still combines a 3-minute EMA, volume spike, and 1-hour trend to determine entry signals.
A buy signal is generated when the price is above the 3-minute EMA with a volume spike and is in an uptrend on the 1-hour chart.
How It Works:
The strategy calculates the 3-minute EMA and 1-hour EMA to determine entry conditions.
It then checks for volume spikes on the 3-minute chart and ensures that the 1-hour trend is in an uptrend.
Upon meeting these conditions, the strategy enters a long position.
Positions are closed either at the all-day high or at 3:00 PM, whichever comes first.
New Features:
All-Day High Exit: The strategy now tracks the highest price of the day and exits when the current price matches this high.
Time-Based Exit: Positions are automatically closed at 3:00 PM if the all-day high is not reached.
Bug Fixes & Optimizations:
Minor performance improvements to ensure smooth operation during intraday trading.
Fixed a potential issue where the all-day high wasn’t resetting correctly at the market open.
Usage:
This strategy is designed for intraday traders who want to combine short-term trends with a longer-term trend filter.
Ideal for stocks with high intraday volatility and liquidity.
Next Steps:
We’ll continue to monitor the performance and consider further optimizations, such as adding additional risk management features like stop loss and take profit.
Exponential Moving Average (EMA)

Script open-source

In pieno spirito TradingView, l'autore di questo script lo ha pubblicato open-source, in modo che i trader possano comprenderlo e verificarlo. Un saluto all'autore! È possibile utilizzarlo gratuitamente, ma il riutilizzo di questo codice in una pubblicazione è regolato dal nostro Regolamento. Per aggiungerlo al grafico, mettilo tra i preferiti.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità