Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 21:01:19 +0000



Post From: ACSIL Custom Autotrading System assistance

[2024-08-06 10:36:39]
User357489 - Posts: 72
Hi there, appreciate the help!

Yes admittedly, i thought ChatGPT (4o) would understand my desired modifications enough but not the cdase, which is fine, we're both learning!

here's the errors: apologies for being slow, its a lot to take in hence AI assistance thus far

-- Starting remote build of Custom Studies Source files: sweepgeniedeltacheck.cpp. 64-bit -- 11:34:23

Allow time for the server to compile the files and build the DLL.

Server: https://build.sierrachart.com
The remote build is complete.
The build failed.
sweepgeniedeltacheck.cpp: In function 'void scsf_SweepGenie(SCStudyInterfaceRef)':
sweepgeniedeltacheck.cpp:101:46: error: cannot bind non-const lvalue reference of type 's_MarketDepthEntry&' to an rvalue of type 's_MarketDepthEntry'
101 | if (sc.GetBidMarketDepthEntryAtLevel(level, bidDepthEntry))
| ^~~~~
In file included from scstructures.h:104,
from sierrachart.h:22,
from sweepgeniedeltacheck.cpp:1:
scconstants.h:1986:2: note: after user-defined conversion: 's_MarketDepthEntry::s_MarketDepthEntry(int)'
1986 | s_MarketDepthEntry(int DummyValue = 0)
| ^~~~~~~~~~~~~~~~~~
sweepgeniedeltacheck.cpp:106:118: error: no matching function for call to 'c_VAPContainer::GetVAPElementForPriceIfExists(int, int&, const s_VolumeAtPriceV2**)'
106 | if (sc.VolumeAtPriceForBars->GetVAPElementForPriceIfExists(sc.ArraySize - 1, priceInTicks, &volumeAtPrice))
| ^
In file included from scstructures.h:108,
from sierrachart.h:22,
from sweepgeniedeltacheck.cpp:1:
VAPContainer.h:630:13: note: candidate: 'bool c_VAPContainerBase<t_VolumeAtPrice>::GetVAPElementForPriceIfExists(unsigned int, int, t_VolumeAtPrice**, unsigned int&) [with t_VolumeAtPrice = s_VolumeAtPriceV2]'
630 | inline bool c_VAPContainerBase<t_VolumeAtPrice>::GetVAPElementForPriceIfExists
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VAPContainer.h:630:13: note: candidate expects 4 arguments, 3 provided
sweepgeniedeltacheck.cpp:108:35: error: 'struct s_MarketDepthEntry' has no member named 'PullingStacking'
108 | if (bidDepthEntry.PullingStacking > volumeThreshold && volumeAtPrice->AskVolume > volumeAtPrice->BidVolume)
| ^~~~~~~~~~~~~~~
sweepgeniedeltacheck.cpp:121:46: error: cannot bind non-const lvalue reference of type 's_MarketDepthEntry&' to an rvalue of type 's_MarketDepthEntry'
121 | if (sc.GetAskMarketDepthEntryAtLevel(level, askDepthEntry))
| ^~~~~
In file included from scstructures.h:104,
from sierrachart.h:22,
from sweepgeniedeltacheck.cpp:1:
scconstants.h:1986:2: note: after user-defined conversion: 's_MarketDepthEntry::s_MarketDepthEntry(int)'
1986 | s_MarketDepthEntry(int DummyValue = 0)
| ^~~~~~~~~~~~~~~~~~
sweepgeniedeltacheck.cpp:126:118: error: no matching function for call to 'c_VAPContainer::GetVAPElementForPriceIfExists(int, int&, const s_VolumeAtPriceV2**)'
126 | if (sc.VolumeAtPriceForBars->GetVAPElementForPriceIfExists(sc.ArraySize - 1, priceInTicks, &volumeAtPrice))
| ^
In file included from scstructures.h:108,
from sierrachart.h:22,
from sweepgeniedeltacheck.cpp:1:
VAPContainer.h:630:13: note: candidate: 'bool c_VAPContainerBase<t_VolumeAtPrice>::GetVAPElementForPriceIfExists(unsigned int, int, t_VolumeAtPrice**, unsigned int&) [with t_VolumeAtPrice = s_VolumeAtPriceV2]'
630 | inline bool c_VAPContainerBase<t_VolumeAtPrice>::GetVAPElementForPriceIfExists
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
VAPContainer.h:630:13: note: candidate expects 4 arguments, 3 provided
sweepgeniedeltacheck.cpp:128:35: error: 'struct s_MarketDepthEntry' has no member named 'PullingStacking'
128 | if (askDepthEntry.PullingStacking > volumeThreshold && volumeAtPrice->BidVolume > volumeAtPrice->AskVolume)
| ^~~~~~~~~~~~~~~


-- End of Build -- 11:34:27

I have looked through the documentation, but i'm having difficulty applying it without guidance