Login Page - Create Account

Support Board


Date/Time: Sun, 02 Nov 2025 02:56:50 +0000



[Programming Help] - Can sc.EvaluateGivenAlertConditionFormulaAsBoolean() be used more than once?

View Count: 126

[2025-09-24 20:36:47]
User45989 - Posts: 57
Is there anything that would prevent using
sc.EvaluateGivenAlertConditionFormulaAsBoolean()
twice in a study? For instance, using one formula for buy entries and another for sell entries? I am encountering some strange behaviour where it looks like the there might be cross contamination between the two but want to make sure this is intended behaviour before I continue. thank you.

LongFormulaResult = sc.EvaluateGivenAlertConditionFormulaAsBoolean(BarIndex, ParseAndSetBuyFormula, Input_BuyEntryFormula.GetString());
ParseAndSetBuyFormula = false;

ShortFormulaResult = sc.EvaluateGivenAlertConditionFormulaAsBoolean(BarIndex, ParseAndSetSellFormula, Input_SellEntryFormula.GetString());
ParseAndSetSellFormula = false;

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

Login

Login Page - Create Account