Support Board
Date/Time: Wed, 27 Nov 2024 18:43:57 +0000
[User Discussion] - 238:5: error: 'CalculateDailyOHLC' was not declared in this scope
View Count: 867
[2021-03-06 02:53:37] |
InvestmentCLB - Posts: 11 |
I copied and pasted the source code (DailyOHLC) in a custom study I'm working on. For the oddest reason, the code will not compile (remote build). This is the error message I'm receiving below: MarketProfileAlertingSystem.cpp: In function 'void scsf_DailyOHLC(SCStudyInterfaceRef)': MarketProfileAlertingSystem.cpp:238:5: error: 'CalculateDailyOHLC' was not declared in this scope 238 | CalculateDailyOHLC( | ^~~~~~~~~~~~~~~~~~ -- End of Build -- 20:37:05 Can someone help me? Thanks. |
[2021-03-08 17:01:38] |
User139950 - Posts: 4 |
Copy the CalculateDailyOHLC from scstudyfunctions.cpp to your cpp. Maybe it's enough when you include scstudyfunctions.h.
|
[2021-03-10 23:44:24] |
InvestmentCLB - Posts: 11 |
Hello, User139950 Were do I find scstudyfuntion instead of scstudyInterfaceRef to copy from? Thanks. Date Time Of Last Edit: 2021-03-10 23:47:06
|
[2021-03-11 00:59:54] |
Flipper_2 - Posts: 57 |
You should post your code so someone can easily repeat the error and help easily.
|
[2021-03-11 02:14:17] |
Ackin - Posts: 1865 |
MrRoy) compiling error scstudyfunctions.h |
[2023-07-22 06:06:45] |
Ed C. - Posts: 117 |
Is there a replacement for CalculateDailyOHLC()? Some days it gives correct data, others it doesn't. Thanks, all!
|
[2023-07-22 08:59:06] |
User431178 - Posts: 544 |
Some days it gives correct data, others it doesn't.
Are you sure? The same function is used in study 'Daily OHLC', which can be found studies8.cpp, that study seems to work ok. |
[2023-07-24 23:00:43] |
Ed C. - Posts: 117 |
Are you sure?
The same function is used in study 'Daily OHLC', which can be found studies8.cpp, that study seems to work ok. Unfortunately, yes. A study from 2020 and one compiled several days ago gives different results. The old CalculateDailyOHLC() function and the new one are also different in the number of function arguments, so something must have changed. |
To post a message in this thread, you need to log in with your Sierra Chart account: