OPEN-SOURCE SCRIPT

First 30M Candle Rule Ref / 5M Entries

258
This strategy highlights and reacts to two key 30-minute candles on the Romanian market schedule — at 10:30 AM and 15:30 or 16:30 (depending on daylight saving time).
It is designed to run on a 5-minute chart, using the 30-minute candles as reference points for potential entries.

When each 30-minute candle closes, the script:

Colors the background during that specific 30-minute period (green for the morning session, red for the afternoon session)

Sends an alert confirming the candle’s closure

Places a symbolic long trade after the 10:30 candle closes and a symbolic short trade after the afternoon candle closes (for backtesting purposes)

This setup allows traders to test or automate strategies that rely on market reactions following key time-based candles, without plotting any extra lines on the chart.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.