Support Board
Date/Time: Tue, 25 Feb 2025 14:02:07 +0000
Post From: accessing CFCO_VOLUME_BASED_ROLLOVER
[2021-04-12 16:49:25] |
User785302 - Posts: 8 |
Hello In the study that I am writing, I would like to know if the Chart is using the setting "Continuous Futures Contract - Volume Based Rollover". I believe this is the enum below as in scconstants.h. enum ContinuousFuturesContractOptionsEnum
{ CFCO_NONE = 0 , CFCO_DATE_RULE_ROLLOVER = 1 , CFCO_VOLUME_BASED_ROLLOVER = 2 , CFCO_DATE_RULE_ROLLOVER_BACK_ADJUSTED = 3 , CFCO_VOLUME_BASED_ROLLOVER_BACK_ADJUSTED = 4 , CFCO_FORWARD_CURVE_CURRENT_DAY = 5 , CFCO_ROLLOVER_EACH_YEAR_SAME_MONTH = 6 , CFCO_FORWARD_CURVE_STUDY_SUPPORT = 7 }; If I would be able to read the setting then I could log an error message sc.AddMessageToLog(true) to alert the user that the study is not going to work well without that setting active. Is this possible? Kind regards |