Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Thanks for the response crazybears, but I can't get it to load.
The zip file only contains the .cpp file, is that correct. Anyone else got this to load ok?
Hi @crazybears , I was wondering if you could help me out. I tried to compile your Twiggs Money Flow and I'm getting the following errors, and it's not showing up under custom studies? Thanks Rockford.
The Visual C++ compiler is not installed. Press the 'Install Compiler' button to download and install the compiler.
C:\Windows\system32\cmd.exe /C "C:\SierraChart\ACS_Source\VisualCCompile.Bat"
C:\SierraChart\ACS_Source>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
The system cannot find the path specified.
C:\SierraChart\ACS_Source>cl /GL /W3 /Gm- /O2 /Zc:inline /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_USRDLL" /D "_WINDLL" /Oy- /Oi /LD /EHsc /nologo "C:\SierraChart\ACS_Source\TwiggsMoneyFlow.cpp" /link /INCREMENTAL:NO /OPT:REF /OPT:ICF /OUT:"C:\SierraChart\Data\TwiggsMoneyFlow.dll"
'cl' is not recognized as an internal or external command,
operable program or batch file.
-- End of Build -- 16:36:02
TwiggsMoneyFlow.cpp: In function 'void scsf_TwiggsMoneyFlow(SCStudyInterfaceRef)':
TwiggsMoneyFlow.cpp:73:18: error: 'max' was not declared in this scope; did you mean 'std::max'?
73 | TRH[sc.Index] = max(sc.High[sc.Index], sc.Close[sc.Index-1]);
| ^~~
| std::max
In file included from /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/algorithm:62,
from scstructures.h:26,
from sierrachart.h:22,
from TwiggsMoneyFlow.cpp:4:
/usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/bits/stl_algo.h:3462:5: note: 'std::max' declared here
3462 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
TwiggsMoneyFlow.cpp:74:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
74 | TRL[sc.Index] = min(sc.Low[sc.Index], sc.Close[sc.Index-1]);
| ^~~
| std::min
In file included from /usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/algorithm:62,
from scstructures.h:26,
from sierrachart.h:22,
from TwiggsMoneyFlow.cpp:4:
/usr/lib/gcc/x86_64-w64-mingw32/9.3-win32/include/c++/bits/stl_algo.h:3450:5: note: 'std::min' declared here
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~