Support Board
Date/Time: Fri, 07 Feb 2025 02:39:36 +0000
Post From: Calculation Precedence And Auto looping
[2020-05-16 05:30:19] |
|
The chance of something being wrong on the Sierra Chart side is next to 0%. The log we provided above is during a chart replay. It is the same even when new bars are added to the chart. First thing we recommend you do is to remove this block code,: // One Time Processing per Bar
int& LastBarIndexProcessed = sc.GetPersistentInt(0); if (Index == 0) LastBarIndexProcessed = -1; if (Index == LastBarIndexProcessed) return; LastBarIndexProcessed = Index; And then you can see your study functions being called in the expected order. In this log you can see that one new bar is added at index 6399 that your own logging is not being triggered for Manual Loop Study ONE until after the second calculation.: Replay 10.00X: YMM20[M] 1 Min #1 | ---- | 2020-05-16 01:29:01.383 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Manual Loop Study ONE | 2020-05-16 01:29:01.383 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Bar Numbering | 2020-05-16 01:29:01.384 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Auto Loop Study TWO | 2020-05-16 01:29:01.386 Chart: Replay 10.00X: YMM20[M] 1 Min #1 | Study: Auto Loop Study TWO | STUDY-2 Index: 6399, Subgraph value: 23393.00 | 2020-05-16 01:29:01.387 Replay 10.00X: YMM20[M] 1 Min #1 | ---- | 2020-05-16 01:29:02.325 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Manual Loop Study ONE | 2020-05-16 01:29:02.326 Chart: Replay 10.00X: YMM20[M] 1 Min #1 | Study: Manual Loop Study ONE | STUDY-1 Index: 6399, Subgraph value: 23399.00 | 2020-05-16 01:29:02.326 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Bar Numbering | 2020-05-16 01:29:02.327 Replay 10.00X: YMM20[M] 1 Min #1 | +Calculating study: Auto Loop Study TWO | 2020-05-16 01:29:02.327 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, *change* to the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2020-05-16 05:30:51
|