Indicators

dir

Market Direction Algo, use it to get the market direction

dir (all)

Market Direction Algo, use it to get the market direction

Input parameters

PropTypeDefaultDescription
minutesnumber-The number of minutes to look back for the tick flow
fromstring09:00From time to look back for the tick flow
fromDatestring-From date to look back for the tick flow
tostring17:00To time to look back for the tick flow
toDatestring-To date to look back for the tick flow
useBookboolean-Whether to use the book data
maxboolean-Whether to use the max book/tick data
resnumber-The resistance to use for the tick flow
useResbooleanfalseUse side resistance calculations

SQL example

TICK marketDirection WITH minutes=5 = 'buy' THEN order SET transmit=true, type="market", side="buy ...

On this page