Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
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)
Updated November 27, 2023
Top Posters
looks_one
Rrrracer
with 20 posts (9 thanks)
looks_two
slickiam
with 16 posts (30 thanks)
looks_3
swandro
with 8 posts (17 thanks)
looks_4
ejtrader
with 3 posts (0 thanks)
Best Posters
looks_one
swandro
with 2.1 thanks per post
looks_two
bobwest
with 2 thanks per post
looks_3
slickiam
with 1.9 thanks per post
looks_4
Rrrracer
with 0.5 thanks per post
trending_up
25,210 views
thumb_up
65 thanks given
group
20 followers
forum
60 posts
attach_file
20 attachments
February 18th, 2019, 03:43 PM
On the road
Webinar Host
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,756
OK man, thanks, will take it for a test drive and report back!
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
February 18th, 2019, 04:59 PM
On the road
Webinar Host
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,756
OK, the build failed.. here's the message:
The remote build did not succeed. Result:
hideDrwng_b2.cpp: In function 'void scsf_hideDrwng_b2(SCStudyInterfaceRef)':
hideDrwng_b2.cpp:41:6: error: 'struct s_sc' has no member named 'SetACSToolButtonText'
sc.SetACSToolButtonText(1, sc.Input[0].GetString());
^
hideDrwng_b2.cpp:42:6: error: 'struct s_sc' has no member named 'SetACSToolToolTip'
sc.SetACSToolToolTip(1, sc.Input[1].GetString());
^
-- End of Build -- 16:57:28
February 18th, 2019, 05:06 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
OK, the build failed.. here's the message:
The remote build did not succeed. Result:
hideDrwng_b2.cpp: In function 'void scsf_hideDrwng_b2(SCStudyInterfaceRef)':
hideDrwng_b2.cpp:41:6: error: 'struct s_sc' has no member named 'SetACSToolButtonText'
sc.SetACSToolButtonText(1, sc.Input[0].GetString());
^
hideDrwng_b2.cpp:42:6: error: 'struct s_sc' has no member named 'SetACSToolToolTip'
sc.SetACSToolToolTip(1, sc.Input[1].GetString());
^
-- End of Build -- 16:57:28
SC ver?
and
*.dll attached and it was build on Debian 9 using mingw32 cross-compiler
so you need to run SC 32 bit to load it onto a chart to test
Scientia Libertas Prosperitas
Attached Files
Elite Membership required to download: hideDrwng_b2.dll
February 18th, 2019, 05:20 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
OK, the build failed.. here's the message:
The remote build did not succeed. Result:
-- End of Build -- 16:57:28
It has been tested locally and using remote compiler with no issue vs SC ver 1860.
and I've sent this link to SC Team to solve it.
Scientia Libertas Prosperitas
February 18th, 2019, 05:35 PM
On the road
Webinar Host
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,756
I'm on SC1875, it's the 64 bit version... that's why I had to enlist the assistance of @swandro , he converted your original Hide Studies study to 64 bit.
February 18th, 2019, 05:36 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
slickiam
It has been tested locally and using remote compiler with no issue vs SC ver 1860.
and I've sent this link to SC Team to solve it.
I see it is not compiled since 1865 due to ACSIL changes (damn it all )
so I need some time to add the changes to get it right on 1875 and above.
Scientia Libertas Prosperitas
February 18th, 2019, 05:55 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
I'm on SC1875, it's the 64 bit version... that's why I had to enlist the assistance of @
swandro , he converted your original Hide Studies study to 64 bit.
_beta3 for v.1875 and above
Code
#include <windows.h>
#include "sierrachart.h"
SCDLLName("hideDrwng_b3");
SCSFExport scsf_hideDrwng_b3(SCStudyInterfaceRef sc) {
if(sc.SetDefaults) {
sc.GraphName="hideDrwng_b3";
sc.StudyDescription="Hide/Show drawings for v. 1875 and above >>beta3<< @ganz ";
sc.AutoLoop = 0;
sc.GraphRegion = 0;
sc.Input[0].Name = "Button#1 Name";
sc.Input[0].SetString("Name");
sc.Input[1].Name = "Button#1 Description";
sc.Input[1].SetString("Dscr");
sc.Input[2].Name = "drawing type number";
sc.Input[2].SetInt(0);
sc.Input[2].SetIntLimits(0, 46);
return;
}
int& drwng_last = sc.GetPersistentInt(1); sc.SetPersistentInt(1, 0);
int& drwng_type = sc.GetPersistentInt(2); sc.SetPersistentInt(2, 0);
int& isHide = sc.GetPersistentInt(3); sc.SetPersistentInt(3, 0);
s_UseTool ChartDrawing;
if (sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_UNKNOWN, ChartDrawing, -1) > 0) {
if ( drwng_last == ChartDrawing.LineNumber ) return;
else sc.SetPersistentInt(1, ChartDrawing.LineNumber);
if ( sc.Input[2].GetInt() ) sc.SetPersistentInt(2, sc.Input[2].GetInt());
else sc.SetPersistentInt(2, ChartDrawing.DrawingType);
sc.SetCustomStudyControlBarButtonText(1, sc.Input[0].GetString());
sc.SetCustomStudyControlBarButtonHoverText(1, sc.Input[1].GetString());
if ( sc.MenuEventID == ACS_BUTTON_1 ) {
if (sc.PointerEventType == SC_ACS_BUTTON_ON ) sc.SetPersistentInt(3, 1);
else sc.SetPersistentInt(3, 0);
for (int lineNumber = drwng_last; lineNumber < 0 ; lineNumber++) {
if ( sc.GetUserDrawnChartDrawing(sc.ChartNumber, drwng_type, ChartDrawing, lineNumber) > 0 ) {
ChartDrawing.HideDrawing=isHide; // hide drwng
sc.UseTool(ChartDrawing);
}
}
}
}
return;
}
so try this one
ps: i see some another changes for _buttons but i'll test it later
Scientia Libertas Prosperitas
Attached Files
Elite Membership required to download: hideDrwng_b3.cpp
February 18th, 2019, 06:10 PM
On the road
Webinar Host
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,756
Compiled and working! I was able to turn lines on and off using drawing code 1. It works on different charts as long as the charts have the Hide Drawing study applied.
OK a couple of things...
Can we have the ACS buttons start at #11? I have ACS 1-10 associated with the Hide Studies buttons.
Can we add more ACS buttons? I don't use all of the tools SC offers but I bet I use at least 10 of them...
Thank you!
February 19th, 2019, 08:58 AM
Western Florida
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,171 since Jan 2013
Thanks Given: 57,812
Thanks Received: 26,373
Rrrracer
Compiled and working! I was able to turn lines on and off using drawing code 1. It works on different charts as long as the charts have the Hide Drawing study applied.
I'm enjoying just watching this happening. Haven't put it to use yet, but I'm lurking and appreciating. (I'll wait for you to get it finalized.)
Nice work, @Rrrracer and @slickiam .
Bob.
February 19th, 2019, 11:40 AM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
Can we add more ACS buttons? I don't use all of the tools SC offers but I bet I use at least 10 of them...
_beta4 to multiple the Button
Scientia Libertas Prosperitas
Attached Files
Elite Membership required to download: hideDrwng_b4.cpp
Last Updated on November 26, 2023