Login Page - Create Account

Support Board


Date/Time: Thu, 28 Nov 2024 09:59:30 +0000



[Programming Help] - Errors rebuilding older indicator in v2363

View Count: 292

[2023-05-19 14:00:08]
jivetrader - Posts: 410
-- Starting remote build of Custom Studies Source files: EhlersAdaptiveStochastic.cpp. 64-bit -- 13:55:37

Allow time for the server to compile the files and build the DLL.

The remote build did not succeed. Result:

EhlersAdaptiveStochastic.cpp: In function 'void scsf_EhlAdaptiveStochastic(SCStudyInterfaceRef)':
EhlersAdaptiveStochastic.cpp:139:36: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations]
139 | SqSum[period] = CosinePart[period] * CosinePart[period] + SinePart[period] * SinePart[period];
| ~~~~~~~~~~~~~~~~~^
EhlersAdaptiveStochastic.cpp:129:31: note: within this loop
129 | for (int period = 10; period <= 48; period++)
| ~~~~~~~^~~~~
EhlersAdaptiveStochastic.cpp:136:52: warning: iteration 45 invokes undefined behavior [-Waggressive-loop-optimizations]
136 | CosinePart[period] = CosinePart[period] + Corr[n] * cos(2 * pi * n / period);
| ~~~~~~^
EhlersAdaptiveStochastic.cpp:134:20: note: within this loop
134 | for(int n = 3; n <= 48; n++)
| ~~^~~~~
EhlersAdaptiveStochastic.cpp:144:29: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations]
144 | R[period][2] = R[period][1];
| ~~~~~~~~~~~^
EhlersAdaptiveStochastic.cpp:142:31: note: within this loop
142 | for (int period = 10; period <= 48; period++)
| ~~~~~~~^~~~~
EhlersAdaptiveStochastic.cpp:151:18: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations]
151 | if (R[period][1] > maxPwr)
| ~~~~~~~~~~~^
EhlersAdaptiveStochastic.cpp:150:31: note: within this loop
150 | for (int period = 10; period <= 48; period++)
| ~~~~~~~^~~~~
EhlersAdaptiveStochastic.cpp:155:28: warning: iteration 45 invokes undefined behavior [-Waggressive-loop-optimizations]
155 | Pwr[period] = R[period][1] / maxPwr;
| ~~~~~~~~~~~^
EhlersAdaptiveStochastic.cpp:154:30: note: within this loop
154 | for (int period = 3; period <= 48; period++)
| ~~~~~~~^~~~~
EhlersAdaptiveStochastic.cpp:161:17: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations]
161 | if (Pwr[period] >= .5)
| ~~~~~~~~~~^
EhlersAdaptiveStochastic.cpp:160:31: note: within this loop
160 | for (int period = 10; period <= 48; period++)
| ~~~~~~~^~~~~

-- End of Build -- 13:55:41
attachmentEhlersAdaptiveStochastic.cpp - Attached On 2023-05-19 13:59:19 UTC - Size: 6 KB - 184 views
Attachment Deleted.

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

Login

Login Page - Create Account