In multiple condition groups in set entry or exit condition can 1 group is AND with another 2nd condition group and both
General0 views
Prashant kulkarni
In multiple condition groups in set entry or exit condition can 1 group is AND with another 2nd condition group and both togather is OR to third group and all three togather AND to 4th group and all these together OR to 5th group .also Can we have nested groups within group conditions in tradetron
Ask TTAI
Short answer: Yes, you can get this exact logic. Tradetron lets you put conditions into groups, join the conditions inside a group with one operator, and then join that whole group to other conditions with a different operator. The Condition Builder lets you chain conditions with any number of AND / OR. But I couldn't find anything in the docs that says whether you can put a group inside another group, so I can't confirm nesting either way.
You don't need nesting for your rule, though. You can rewrite it so it only needs one level of groups.
Your rule, written out
((((G1 AND G2) OR G3) AND G4) OR G5)
The same rule using only one level of groups (this is just Boolean algebra, nothing Tradetron-specific):
(G1 AND G2 AND G4)
OR
(G3 AND G4)
OR
(G5)
Why it's the same: (X OR G3) AND G4 equals (X AND G4) OR (G3 AND G4). So G4 just gets repeated in two groups.
How to build it
On the create strategy page, click Add in the Entry (or Exit) condition block to open the Condition Builder.
Group A: add the conditions from G1, G2 and G4, joined with AND.
Group B: add the conditions from G3 and G4, joined with AND (yes, G4 goes in again).
Group C: add the condition(s) from G5.
Join Group A, Group B and Group C with OR.
How it fires: AND needs every condition true on the same check. OR needs only one of them to be true. So the entry fires if Group A is fully true, or Group B is fully true, or Group C is true.
Two catches:
This assumes each of your groups (G1 to G5) uses AND inside it. If one of them uses OR inside, the rewrite gets longer. Post the actual conditions and we can work it out.
Repeating G4 doesn't change the logic, but it's easy to get wrong. If you edit G4 later, change it in both groups.
Nested groups (group inside a group): The docs I found don't say whether this is supported. Try it in the Condition Builder, or ask the chat on tradetron.tech for a definite answer. The one-level version above avoids the question entirely.