Login Page - Create Account

Support Board


Date/Time: Wed, 24 Dec 2025 11:18:41 +0000



IsSwingHighAllowEqual_S

View Count: 1092

[2017-09-06 02:21:56]
ertrader - Posts: 686
The study "Swing High and Low" calls IsSwingHighAllowEqual_S. This study is located in studies6.cpp. When compiling, the following error occurs.

Can you please direct me how to resolve the error?
Thank you


C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
SwingHighLow.cpp
Creating library SwingHighLow.lib and object SwingHighLow.exp
SwingHighLow.obj : error LNK2001: unresolved external symbol "int __cdecl IsSwingHighAllowEqual_S(struct s_sc &,int,int,int)" (?IsSwingHighAllowEqual_S@@YAHAAUs_sc@@HHH@Z)
SwingHighLow.obj : error LNK2001: unresolved external symbol "int __cdecl IsSwingLowAllowEqual_S(struct s_sc &,int,int,int)" (?IsSwingLowAllowEqual_S@@YAHAAUs_sc@@HHH@Z)
C:\files\Sierra_Data\SwingHighLow.dll : fatal error LNK1120: 2 unresolved externals
-- End of Build -- 21:19:18
Date Time Of Last Edit: 2017-09-06 02:22:59
[2017-09-06 16:25:43]
Sierra Chart Engineering - Posts: 104368
You need to include the IsSwingHighAllowEqual_S function from the SCStudyFunctions.cpp file.

Place this function above your main study function.
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
[2025-11-08 11:53:14]
User253985 - Posts: 24
This is what I did, hope this helps someone

//Searched for SCSFExport scsf_SwingHighAndLow(SCStudyInterfaceRef sc)
//Copied code from DriveName>>SierraChart>>ACS_Source>>Studies6.cpp
//Copied and pasted it to a new file and gave the file a name.cpp
//From DriveName>>SierraChart>>ACS_Source>>SCStudyfunctions.cpp I copied and pasted the Declared and Defined function IsSwingHighAllowEqual_S above SCSFExport scsf_SwingHighAndLow(SCStudyInterfaceRef sc)
//From DriveName>>SierraChart>>ACS_Source>>SCStudyfunctions.cpp I copied and pasted the Declared and Defined function IsSwingLowAllowEqual_S above SCSFExport scsf_SwingHighAndLow(SCStudyInterfaceRef sc)
//Then typed SCDLLName("AnyNameYouWantToPutHere rev:0") above SCSFExport scsf_SwingHighAndLow(SCStudyInterfaceRef sc)

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

Login

Login Page - Create Account