Difference between “If-then”, “if-then-else” and “for each trade”
1 replies
Wayang
5 years ago #234948
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
tomas262
5 years ago #234959
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 1 replies (of 1 total)