Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)

Forums>StrategyQuant>Application Support>Difference between "If-then", "if-then-else" and "for each trade"

  • #234948 |
    Participant
    1 Posts

    Hi,

    I am new to this algorithmic building concept.

    Can anyone explain what is the differences betwen those three rule in SQ X?

    Furthermore,

    How can I (1) handle multiple position opening strategy and (2) close only one side (buy or sell respectively) in SQ X?

     

    Your explanation would be appreciated much.

     

    Thanks

    #234959
    tomas262
    Administrator
    1826 Posts

    Hello,

    if-then = IF a rule is valid THEN do action

    if-then-else = IF a rule is valid THEN do action 1 ELSE do action 2

    for each trade = execute with a trade

    For mutliple positions you need to use multiple magic numbers. Closing multiple trades on one side cannot be done with a single function now, you need to close by defined magic numbers or all positions open at once (long+short)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.