Files
Superalgos/docs/_includes/trading_system/time-range.md
T
2020-02-03 13:28:59 +01:00

72 lines
2.1 KiB
Markdown

<!-- TITLE AND DEFINITION starts -->
{% assign title = "Time Range" %}
{% assign definition = site.data.trading_system.time_range %}
{% assign preposition = "a" %}
<!-- TITLE AND DEFINITION ends -->
{% if include.heading != "" %}
{{include.heading}} {{title}}
{% endif %}
{% if include.icon != "no" %}
<img src='images/icons/{{include.icon}}{{ title | downcase | replace: " ", "-" }}.png' />
{% endif %}
**{{ definition }}**
<!-- CONTENT starts -->
<!-- CONTENT ends -->
{% if include.adding != "" %}
{{include.adding}} Adding {{preposition}} {{title}}
<!-- ADDING starts -->
To add a parameter that may be missing, select *Add Missing Params* on the parameters node menu.
<!-- ADDING ends -->
{% endif %}
{% if include.configuring != "" %}
{{include.configuring}} Configuring the {{title}}
<!-- CONFIGURING starts -->
Select *Configure Time Range* on the menu to access the configuration. The configuration varies slightly depending on the type of session you are running.
{{include.configuring}}# On Backtesting Sessions
```json
{
"initialDatetime": "2019-09-01T00:00:00.000Z",
"finalDatetime": "2019-09-25T00:00:00.000Z"
}
```
* ```initialDatetime``` is the datetime the session starts at. If you don't set an *initialDatetime* the system's fallback mechanism will try to get it from the parameters defined at the level of the trading system.
* ```finalDatetime``` is the datetime the session finishes at. If you don't set a *finalDatetime* at the level of the testing session or the trading system, then calculations will run until the date there is data available.
{{include.configuring}}# On Paper Trading, Forward Testing and Live Trading Sessions
These sessions always start at the datetime the session is run, therefore, there is no configuration of an initial datetime.
```json
{
"finalDatetime": "2019-09-25T00:00:00.000Z"
}
```
* ```finalDatetime``` is the datetime the session finishes at. If you don't set a *finalDatetime* at the level of the testing session or the trading system, then the session runs for one year.
<!-- CONFIGURING ends -->
{% endif %}