You may have as many conditions you need, using both AND and OR, even combining them, eventually using parentheses to set their priority.
Example (2 ways to code the same conditions to exit a Long position):
|
// 1 If LongOnMarket AND (Condition1 OR condition2) Then SELL AT MARKET Endif /////////////////////////////////////////////////////// // 2 c1 = LongOnMarket c2 = Condition1 c3 = Condition2 If c1 AND (c2 OR c3) Then SELL AT MARKET Endif |
I moved your post from thr ProScreener to the ProOrder support forum, as it’s a strategy.
Please use the correct support forum. Thank you 🙂