READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Difference between “If-then”, “if-then-else” and “for each trade”

1 replies

Wayang

Subscriber, bbp_participant, community, 0 replies.

Visit profile

8 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

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

8 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)

0

Viewing 1 replies (of 1 total)