Support Board
Date/Time: Mon, 25 Nov 2024 00:21:38 +0000
Two separate signals using the same trading system based on alert condition study
View Count: 280
[2024-04-11 03:12:39] |
User585993 - Posts: 83 |
I have two separate signals that I want to use the same trading system based on alert condition study I have this formula: =AND(C[0] > C[-1], ID1.SG1[0] < 0, ABS(ID1.SG1) > 500) I need to add another signal from ID13.SG1 I tried this one without success =AND((C[0] > C[-1], ID1.SG1[0] < 0, ABS(ID1.SG1) > 500), OR(ID13.SG1[0] > 0)) What am I missing? |
[2024-04-11 05:06:59] |
Sierra_Chart Engineering - Posts: 17164 |
Is the logic that any and not necessarily all have to be true?
Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-04-11 12:12:23] |
User585993 - Posts: 83 |
ID13.SG1[0] is a separate signal, It's never true when the other signal is true
|
[2024-04-11 15:08:58] |
John - SC Support - Posts: 36238 |
It sounds like you want this formula: =OR(AND(C[0] > C[-1], ID1.SG1[0] < 0, ABS(ID1.SG1) > 500), ID13.SG1[0] > 0) This will give you a true signal if either of the following are true: - All of the following are true at the same time: C[0] > C[-1], ID1.SG1[0] < 0, ABS(ID1.SG1) > 500 - ID13.SG1[0] > 0 For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-04-11 16:38:22] |
User585993 - Posts: 83 |
That worked! Now I changed it to negative : =OR(AND(C[0] < C[-1], ID1.SG1[0] > 0, ABS(ID1.SG1) > 500), ID16.SG1[0] < 0) but I dont get the secong signal of the formula ID16.SG1[0] < 0)
|
[2024-04-11 17:22:52] |
John - SC Support - Posts: 36238 |
We do not know. The formula looks correct. Are you getting a negative value for ID16.SG1 at the current bar? You can always use the "Color Bar Based on Alert Condition" or the "Spreadsheet Formula" to work out the pieces of an alert and see what might, or might not be occurring. For instance, you can add the Spreadsheet Formula to the chart and enter the formula "=ID16.SG1 < 0" (no quotes) and then see where that value is negative. Refer to the following: Spreadsheet Formula Color Bar Based on Alert Condition For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-04-11 18:17:42] |
User585993 - Posts: 83 |
Yes I get a negative value,I have a color background based on alert condition providing the negative signal but the trading system based on alert condition is not providing a trading alert
Date Time Of Last Edit: 2024-04-12 13:57:56
|
Private File |
[2024-04-12 20:51:22] |
John - SC Support - Posts: 36238 |
One of the items is that you have your Trading studies at the top of the list, but they are dependent on other studies, so you would want to have them at the bottom. In general, the order in which the studies is calculated is from top to bottom of the Studies list. Refer to the following for more information: Chart Studies: Study Calculation Precedence And Related Issues Otherwise, we do see some kind of issue going on with the trading studies. We can only say that there is something causing a conflict that is causing the studies to not signal. We are not sure what exactly it is, and it is beyond the scope of our support to go any further than we have. We can tell you that when we try to get a signal from the "Buy Algo" and have it set with a simple alert condition, it is not signaling properly. But when we remove all the other studies, it is working correctly. 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: