Indicators
marketDirection
Market Direction Algo, use it to get the market direction
marketDirection (all)
Market Direction Algo, use it to get the market direction
Input parameters
| Prop | Type | Default | Description |
|---|---|---|---|
minutes | number | - | The number of minutes to look back for the tick flow |
from | string | 09:00 | From time to look back for the tick flow |
fromDate | string | - | From date to look back for the tick flow |
to | string | 17:00 | To time to look back for the tick flow |
toDate | string | - | To date to look back for the tick flow |
useBook | boolean | - | Whether to use the book data |
max | boolean | - | Whether to use the max book/tick data |
res | number | - | The resistance to use for the tick flow |
useRes | boolean | false | Use side resistance calculations |
SQL example
TICK marketDirection WITH minutes=5 = 'buy' THEN order SET transmit=true, type="market", side="buy ...