Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 07:31:06 +0000



Post From: Custom Studies

[2014-06-24 17:24:35]
User55763 - Posts: 4
I have tried to follow the instructions but unfortunately, it doesn´t work.

My custom study is in .cpp file. I have downloaded the compiler and tried to convert the study to .dll file. As far as I can judge, the compiling process was succesfull:

-- Starting build of Custom Studies Source files: relVolume.cpp. -- 18:59:44

"C:\SierraChart\CPPCompiler\bin\g++.exe" "C:\SierraChart\ACS_Source\relVolume.cpp" -march=i686 -mtune=i686 -O2 -shared -static -static-libgcc -static-libstdc++ -s -fno-rtti -fno-exceptions -o "C:\SierraChart\Data\relVolume.dll"

-- End of Build -- 18:59:45

However, I can´t find the resulting .dll file in C:\SierraChart\Data\relVolume.dll nor can I find the study directly in Custom Studies of Sierra...

Do you have an idea, where could the problem be?

I attach part of the code, is there anything wrong with it?

/* Relative Volume Study

Copyright (C) Bob Duffy 2013 bobduffytrading@gmail.com

This program is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at
http://www.gnu.org/licenses.

*/

#include "sierrachart.h"
SCDLLName("RelVolume4j")

// #define FREE_DLL 0 // Set nonzero to make study reloadable

bool isWeekendDay(const SCDateTime& dateTime);
SCString fmtDateTime(const SCDateTime& dateTime);

SCSFExport scsf_RelativeVolume24j(SCStudyGraphRef sc)
{
SCSubgraphRef relV = sc.Subgraph[0];
SCSubgraphRef cumV = sc.Subgraph[1];
SCSubgraphRef avgV = sc.Subgraph[2];

...etc

Thank you for advice. Roman Pury