Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 16:36:26 +0000



[Programming Help] - Help on Sequential Conditions

View Count: 188

[2024-02-17 18:04:13]
christensen.trev - Posts: 7
How do I make a signal for conditions happening in sequence? I have 3 conditions for a spreadsheet system for trading that need to happen in a specific order, not just when all 3 happen to be met.
[2024-02-17 21:54:54]
Sawtooth - Posts: 4120
- Make Condition 1 persistent, but only if Condition 2 and Condition 3 are FALSE.
- Then make Condition 2 persistent, but only if persistent Condition 1 is TRUE, and Condition 3 is FALSE.
- Then Condition 3 is TRUE only if the other two persistent Conditions are TRUE.

You'll need to release the persistent TRUEs based on other condition(s).

Here are some persistent examples:
Spreadsheet Example Formulas and Usage: Persistent and Incrementing Variables
Notice that there are two IF statements: one begins persistence, one releases it.

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account