Support Board
Date/Time: Wed, 27 Nov 2024 22:32:31 +0000
Post From: how to pass an alert condition to sc.EvaluateAlertConditionFormulaAsBoolean function?
[2019-02-24 04:20:52] |
User525733 - Posts: 126 |
i am confused about how often " ParseAndSetFormula" needs to be set to 1. documentation states "It is necessary to set ParseAndSetFormula to a nonzero value the first time running this function or whenever the alert formula changes. It should not be set to a nonzero value every time because it is not efficient doing that." yet in the "Trading system based on alert condition" study...."ParseAndSetFormula" is set to 1 every time the study is updated (after the initial full calculation). Is it ok to set "ParseAndSetFormula" to 1 on a sc.IsFullRecalculation check and leave it at 0 otherwise? in other words, does the internal formatting and storage of the condition get saved between study calls or it needs to be redone on every call after the initial full study calculation? |