The “Conditional Trading Logic” action allows you to create an “If Block”, an “If… Else Block”, an “If… Else If Block” with an unlimited number of “Else If Blocks”, and an “If… Else If… Else Block” with an unlimited number of “Else If Blocks”.
Furthermore, you can put any of the above “Conditional Trading Logic” actions inside the “If Block”, any “Else If Block”, or the “Else Block” of any other “Conditional Trading Logic” action, including those already nested in another “Conditional Trading Logic” action’s “If Block”, any “Else If Block”, or the “Else Block”, you can put any loop in inside the “If Block”, any “Else If Block”, or the “Else Block” of any “Conditional Trading Logic” action and you can put any “Conditional Trading Logic” action in any loop, allowing you truly unlimited control over what code gets executed under what conditions and how many times the code gets executed under what conditions.
The “If Block” Conditional Trading Logic Action
Does the actions in the “Then do the following…” section if the condition or conditions in the “If the following condition is true…” section are true.
The “If… Else Block” Conditional Trading Logic Action
Does the actions in the “Then do the following…” section if the condition or conditions in the “If the following condition is true…” section are true.
Otherwise, does the actions in the “Otherwise, do the following…” section.
The “If… Else If Block” Conditional Trading Logic Action
Does the actions in the “Then do the following…” section directly beneath the “If the following condition is true…” section if the condition or conditions in the “If the following condition is true…” section are true.
Otherwise, does the actions in the “Then do the following…” section beneath the first “Otherwise, if the following condition is true…” section whose condition or conditions are true, if such a section exists.
If no such section exists, execution of the code continues at the first line of code after the “If… Else If Block” Conditional Trading Logic action.
The “If… Else If… Else Block” Conditional Trading Logic Action
Does the actions in the “Then do the following…” section directly beneath the “If the following condition is true…” section if the condition or conditions in the “If the following condition is true…” section are true.
Otherwise, does the actions in the “Then do the following…” section beneath the first “Otherwise, if the following condition is true…” section whose condition or conditions are true, if such a section exists.
If no such section exists, does the actions in the “Otherwise, do the following…” section.