Login Page - Create Account

Support Board


Date/Time: Thu, 21 Nov 2024 16:46:29 +0000



MA re-painting

View Count: 70

[2024-11-06 17:29:41]
cnev - Posts: 17
I totally understand if its not possible but I wanted to ask anyway.
I am overlaying an EMA from a 5min to a 1min for example.
I set a Color bar signal to trigger on the 1min 2t above the MA on close and it fires before the 5min bar closed.
By the time the 5min bar closes the 5min MA has shifted invalidating the signal.
I understand this is going to happen but what I want to know is...
Is there a way to latch the 1min signal when it occurs and even when the 5min changes, the signal remains triggered?
[2024-11-06 19:12:20]
John - SC Support - Posts: 36186
What we would need to understand is how you would eventually set the condition back to False?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-11-06 20:32:27]
cnev - Posts: 17
Thanks John for the quick reply. I would prefer to leave it as true if it occurs I dont need or want the reset back to false.
[2024-11-06 21:20:46]
John - SC Support - Posts: 36186
To create a persistent state based on an event, use a formula that looks like the following in a Spreadsheet Formula study:
=IF(C > ID1.SG1 + 2 * TICKSIZE, 1, ID2.SG1[-1])

Where C is the Close of a bar, ID1 is the ID of the Moving Average study and the SG1 following it is the actual subgraph, ID2 is the Spreadsheet Formula study and the SG1 following it is its subgraph. the nomenclature of [-1] is to look back at the value one bar prior.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account