Year Range Inputs:
start_year and end_year allow you to define the range of years in which the strategy will execute.
You can adjust these values in the script’s settings panel in TradingView.
Entry Condition:
The strategy checks that the current year falls within the specified range before entering a trade on Monday’s open.
Exit Condition:
Similarly, it only exits on Tuesday’s close if the current year is within the specified range.
This setup ensures that trades only take place between the defined years, effectively filtering out unwanted trades outside this timeframe.