We are presenting you feature for strategies in Pine Script. This function/pine script is about NOT opening trades on selected days. Real usage is for bank holidays or volatile days (PPI, CPI, Interest Rates etc.) in United States and United Kingdom from 2020 to 2030 (10 years of dates of bank holidays in mentioned countries above). Strategy is simple - SMA...
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...
Example how to backtest specific date(s) which can be useful for testing seasonality strategy ideas such as "Sell in May", etc. If using Daily period with wild card dates it will not trade on 1st day of month. If market is closed will trade on next open day. Works only with Daily or lower timeframes. When using on Daily timeframe set dates 1 day earlier to...
Example how to automatically set the date range window to be backtested from X days or weeks ago to present. Additional options are also included to manually set the date range or to show entire range available. Normally when you change chart period it changes the number of days being backtested, which means as you increase the chart period (for example from 5min...
C320up Strategy Tester Start Time This is a little snippet you can paste into your Strategy to set the testing start date and time. It is not a Strategy per se, though is an example with the timestamp script included. Instructions are fairly straight forward, and are listed in the script. If for some reason you also wanted an end date, that too is possible....
Example how to select and set date range window to be backtested. Normally when you change chart period it changes the number of days being backtested which means as you increas the chart period (for example from 5min to 15min) you also increase the number of days traded, so you can not compare apples to apples for which period would yield best returns for your...