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)
I am very sorry to have to disturb you with this again...
I am using the new SC data feed now and because of that I had to upgrade to SC 1051 version (I was using version 1043 until Friday).
After installing this latest 1051 version, the Volume Threshold3 Study that you kindly created for me stopped working.
Although very insecure I renamed the .cpp file to "VolumeThreshold4" and tried to rebuild it, but not surprisingly I couldn't do it. I just got this message:
C:\SierraChart Euro\ACS_Source\VolumeThreshold4.cpp: In function 'void scsf_VolumeThreshold(SCStudyInterfaceRef)':
C:\SierraChart Euro\ACS_Source\VolumeThreshold4.cpp:93:67: error: 'const struct s_TimeAndSales' has no member named 'Date'
SCDateTime TradeDateTime = COMBINE_DATE_TIME(TimeSales[TSIndex].Date, HMS_TIME(TimeSales[TSIndex].Hour, TimeSales[TSIndex].Minute, TimeSales[TSIndex].Second));
^
C:\SierraChart Euro\ACS_Source\VolumeThreshold4.cpp:93:101: error: 'const struct s_TimeAndSales' has no member named 'Hour'
SCDateTime TradeDateTime = COMBINE_DATE_TIME(TimeSales[TSIndex].Date, HMS_TIME(TimeSales[TSIndex].Hour, TimeSales[TSIndex].Minute, TimeSales[TSIndex].Second));
^
C:\SierraChart Euro\ACS_Source\VolumeThreshold4.cpp:93:126: error: 'const struct s_TimeAndSales' has no member named 'Minute'
SCDateTime TradeDateTime = COMBINE_DATE_TIME(TimeSales[TSIndex].Date, HMS_TIME(TimeSales[TSIndex].Hour, TimeSales[TSIndex].Minute, TimeSales[TSIndex].Second));
^
C:\SierraChart Euro\ACS_Source\VolumeThreshold4.cpp:93:153: error: 'const struct s_TimeAndSales' has no member named 'Second'
SCDateTime TradeDateTime = COMBINE_DATE_TIME(TimeSales[TSIndex].Date, HMS_TIME(TimeSales[TSIndex].Hour, TimeSales[TSIndex].Minute, TimeSales[TSIndex].Second));"
As I have no idea what to do now, here I am again, asking for your help...
I was thinking about this issue and I had this thought - now, with SC 1051 version, every trade in SC T&S windows shows milliseconds (in both SC data feed and IB data feed); is it possible that the problem is coming from there?
I guess you haven't been around as you didn't reply yet.
Meanwhile I was reading the new SC release notes and found this, related to version 1047:
"The Time and Sales data structure, s_TimeAndSales has changed. There is now a single DateTime member of a SCDateTime type for the Date-Time and not individual members for the Date, Hour, Minute, Second. An ACSIL study that uses the Time and Sales data must be recompiled and be updated to use the new s_TimeAndSales:: DateTime member, for it to be used on this version or higher."
The problem with the Volume Threshold study is definitely related with the change of the T&S time stamping, isn't it?
Unfortunately I don't know how to fix it anyway.
I will be waiting for your reply and praying that you find some time and patience to do it for me.
I am looking forward for having some news from you.
@Rui S - Here is a draft version that you can test it out:
- Please note that though there is an option "AggregateTS" available - I have taken out that actual function for now. Would put this back later this week.
I have been testing and observing it closely for a few hours now. It is working now but not the way it was before.
I am not sure if you remember that problem with the previous versions - plotting the signaled trades in the wrong bar and/or price when the price moves with impulses.
Now, with this new version, the problem has changed its characteristics - when the price is moving with impulses, instead of misplacing the plotting, the study skips some of the signaled trades (doesn't color any bar nor plot the number of contracts of the trade). I can clearly see those trades in the T&S window (I have it filtered to catch them) and also in the volume study but the Volume Threshold study simply doesn't plot them in the chart.
This is happening frequently - every time the price moves faster or with impulses.
On the other hand, all the trades plotted by the study are now all in the right bar and price.
Sorry to ask - can you think on something or do anything about it? Will this issue be caused by SC way of processing data too?
@Rui S - This version was a draft version using the new structure. Should be able to take care of the issues you have described. Would post the newer version later this week.