Login Page - Create Account

Support Board


Date/Time: Fri, 04 Jul 2025 20:54:26 +0000



sample code error

View Count: 670

[2019-07-23 22:28:07]
Devil_On_WallStreet - Posts: 67
getting an error when trying to compile the Daily OHLC study found in the Studies8.cpp Copied exactly from sample code

error: 'CalculateDailyOHLC' was not declared in this scope

I searched above for a "void" I may have missed...

Made sure all the #include was there

of course error when adding #include "scstudyfunctions.h" error file does not exist
[2019-07-24 02:59:40]
Sierra Chart Engineering - Posts: 104368
That function exists within the SCStudyFunctions.cpp file. You need to copy it and place it in your source code file above the function it is called from.
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

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

Login

Login Page - Create Account