This is a trading item or a component that was created using QuantShare by one of our members.
This item can be downloaded and used by QuantShare Trading Software.
Trading items are of different types. There are data downloaders, trading indicators, trading systems, watchlists, composites/indices...
You can use this item and hundreds of others for free by downloading QuantShare.
Top Reasons Why You Should Use QuantShare:
Works with US and international markets (stock, forex, options, futures, ETF...)
Offers you the tools that will help you become a profitable trader
Allows you to implement any trading ideas
Exchange items and ideas with other QuantShare users
Our support team is very responsive and will answer any of your questions
We will implement any features you suggest
Very low price and much more features than the majority of other trading software
The Date filter is a simple function that returns one if a specific bar's date is comprised between a given start and end dates; otherwise, it returns zero.
The date filter accepts six parameters.
Param1: The day of the start date
Param2: The month of the start date
Param3: The year of the start date
Param4: The day of the end date
Param5: The month of the end date
Param6: The year of the end date
For example, the following formula allows you to test the corresponding trading rule starting from the first July 2007 for a period of 2 years
rule1 = rsi(14) > 70; // Relative Strength Index higher than 70
rule2 = rule1 && datefilter(1,7,2007,1,7,2009);
Optimization Example:
In the rules analyzer, you can add the following formula in the fixed rule field.
datefilter(1,1,a,1,1,3000) // "A" varies from 2000 to 2008.
The Date Filter rule instructs the trading software to perform nine iterations for each given trading rule. For each iteration, the trading rule (The one you want to test) is backtested using a different period.
Let us say you want to analyze the following rule: rsi(14) > 70
In the first iteration, the rule (rsi(14) > 70) is analyzed using a period that spans from the beginning of 2000 to present.
In the second iteration, the rule is analyzed using a period that spans from the beginning of 2001 to present.
...
In the rules analyzer report, you can right click on any rule and select the variable "a". This will show you the performance of your trading rules for each period.
Inside Period is a very similar function, it returns one if the current bar's date is comprised between a start and an end date. However, Inside Period does not have the same parameters and it calculates the start and end dates using a different method.