Support Board
Date/Time: Sun, 02 Nov 2025 17:07:33 +0000
Post From: Can sc.EvaluateGivenAlertConditionFormulaAsBoolean() be used more than once?
| [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; |
