-
Notifications
You must be signed in to change notification settings - Fork 2
Triggers
Triggers are generally the same for each rule, but there are some exceptions. For trigger specifics, find the indicator you want below. It'll have trigger specifics if they deviate from the generic here.
During a simulation, the indicator is going to be matched with the value of that indicator for that specific day in the window. Then, the comparison is going to be made between the indicator value and the trigger.
The trigger should start with the operator. The supported operator types are:
- '<'
- '>'
- '<='
- '>='
- '=' (equality)
The trigger value should immediately follow the the operator value. Decimal trigger values are not currently supported, so use integer values.
StockBench currently offers support for '$price' variable trigger value. An example of the usage is 'SMA20': '>$price'. The simulator maps the current price of the asset to the comparison for that specific date in the window.
Next Step: Indicators
© 2022 jocon15