This script provides options for the user to choose: - Start date and End date - Trade time during a day (With UTC offset) - Which days of the week to trade It return a condition if all the date and time conditions are true. It's very easy to integrate with any script.
Library "time_filters" Collection of filters that related with time like sessions and datetime ranges. All existing session functions I found in the documentation e.g. not na(time(timeframe.period, sessionTimes)) are not suitable for strategies, since the execution of the entries and the exits are delayed by one bar. Thus I created this library to overcome this...
This strategy allows you to back test longing or shorting during a period of time between two dates. Make sure you are in the daily time frame while viewing the performance and trade history to ensure you have the most historical data as possible from Trading View. Finally, due to the way Trading View enters trades at the end of a candle, you must subtract one...