The ES-NQ Backtester is a tool created by one of our contributors ([[Chimten]]) for backtesting strategies as well as statistics on ES during regular trading hours. To use this tool requires knowledge of basic Javascript.
## **Backtester**
[https://es-stats.herokuapp.com/test](https://es-stats.herokuapp.com/test)
## **Dataset**
This data contains minute-by-minute ES & NQ data from 4/21/2014 to 7/1/2022. In addition to some basic minute candle information, it also has some custom attributes at both the minute and the daily level. More custom attributes can be easily added - just ping Chimten if you have ideas. See the Schema for all available attributes ([https://es-stats.herokuapp.com/test](https://es-stats.herokuapp.com/test))
## **How to use**
The tool is used by writing the code for a JavaScript function, which has a three parameters: `date`, `attrs`, and `min` and should return a boolean (true/false), string, or number value, or an array of booleans/strings/numbers. For what each of these parameters represent, see the Schema below. The returned value is the 'bucket' that the day is placed in. If an array is returned, the day will be placed in each of those buckets.
Schema & backtester available at: [https://es-stats.herokuapp.com/test](https://es-stats.herokuapp.com/test)