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 11th, 2019, 10:33 AM
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
slickiam
I know... that's even worse than trying to show/hide studies LOL...
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
February 14th, 2019, 05:20 AM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
I know... that's even worse than trying to show/hide studies LOL...
what do you mean and what do you want to have?
Scientia Libertas Prosperitas
February 16th, 2019, 08:39 AM
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
slickiam
what do you mean and what do you want to have?
@ slickiam , the show/hide studies ACS buttons you came up with a long time ago was a great idea and something I feel Sierrachart should have built in.
@ swandro was kind enough to modify that study for 64 bit machines.. it works great along with the upgrades he added. I was simply stating that it would be nice to have the same functionality for chart drawings...
For example, press one ACS button to display/hide all horizontal lines, another for fib extensions, or whatever (1 click) on the focused chart... instead of Tools->Manage Chart Drawings Window->Select symbol->Select drawing type->Show/hide->close window (4-6 clicks.)
I envision it being similar in operation to the show/hide studies buttons in this thread. Not sure if this is possible with SC, but it would go a long way towards improving functionality and ease of use.
February 16th, 2019, 09:03 AM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Quoting
Not sure if this is possible with SC, but it would go a long way towards improving functionality and ease of use.
it looks possible
Quoting
For example, press one ACS button to display/hide all horizontal lines, another for fib extensions
so .. one button per DrawingType objects to hide/show it all?
imho, it might be done, i'll try to make it real within a month or post a fail result here.
gd lck
Scientia Libertas Prosperitas
February 16th, 2019, 12:33 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
slickiam
it looks possible
so .. one button per
DrawingType objects to hide/show it all?
imho, it might be done, i'll try to make it real within a month or post a fail result here.
gd lck
Interesting, yes that sounds correct. The drawing types would be user-definable as it is with the hide/show studies.
Please, take your time... the effort is greatly appreciated. I would be glad to assist in whatever limited capacity I can
February 18th, 2019, 10:13 AM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
Interesting, yes that sounds correct. The drawing types would be user-definable as it is with the hide/show studies.
Please, take your time... the effort is greatly appreciated. I would be glad to assist in whatever limited capacity I can
so .... the idea is to hide all of drawings were equal to a last added drawing_type in case "drawing type number" is 0
or one could define a drawing_type number from the scconstants.h file from ./SierraChart /ACS_Source/ folder
like this:
Code
enum DrawingTypeEnum
{ DRAWING_UNKNOWN = 0
, DRAWING_LINE = 1
, DRAWING_RAY = 2
, DRAWING_HORIZONTALLINE = 3
, DRAWING_VERTICALLINE = 4
, DRAWING_ARROW = 5
, DRAWING_TEXT = 6
, DRAWING_CALCULATOR = 7
, DRAWING_RETRACEMENT = 8
, DRAWING_UNUSED = 9 // old fan drawing type
, DRAWING_UNUSED_10 = 10
, DRAWING_PRICE_PROJECTION = 11
, DRAWING_RECTANGLEHIGHLIGHT = 12
, DRAWING_ELLIPSEHIGHLIGHT = 13
, DRAWING_FAN_GANN = 14
, DRAWING_PITCHFORK = 15
, DRAWING_UNUSED16 = 16 // was DRAWING_FLOWELLIPSEHIGHLIGHT
, DRAWING_WORKING_ORDER = 17
, DRAWING_POSITION_LINE = 18
, DRAWING_CYCLE = 19
, DRAWING_TIME_EXPANSION = 20
, DRAWING_GANNGRID = 21
, DRAWING_UNUSED_22 = 22
, DRAWING_UNUSED_23 = 23
, DRAWING_ORDER_FILL = 24
, DRAWING_ENTRYEXIT_CONNECTLINE = 25
, DRAWING_RECTANGLE_EXT_HIGHLIGHT = 26
, DRAWING_FAN_FIBONACCI = 27
, DRAWING_PARALLEL_LINES = 28
, DRAWING_PARALLEL_RAYS = 29
, DRAWING_LINEAR_REGRESSION = 30
, DRAWING_RAFF_REGRESSION_CHANNEL = 31
, DRAWING_EXTENDED_LINE = 32
, DRAWING_PITCHFORK_SCHIFF = 33
, DRAWING_PITCHFORK_MODIFIED_SCHIFF = 34
, DRAWING_PRICE_EXPANSION = 35
, DRAWING_VOLUME_PROFILE = 36
, DRAWING_STATIONARY_TEXT = 37
, DRAWING_TIME_PROJECTION = 38
, DRAWING_MARKER = 39
, DRAWING_HORIZONTAL_RAY = 40
, DRAWING_REWARD_RISK = 41
, DRAWING_SWING_MARKER = 42
, DRAWING_DATE_MARKER = 43
, DRAWING_OHLC_RAY = 44
, DRAWING_HORIZONTAL_LINE_NON_EXTENDED = 45
, DRAWING_TRIANGLE = 46
, SC_NUM_DRAWING_TYPE
};
and the study might be as follows:
Scientia Libertas Prosperitas
February 18th, 2019, 10:18 AM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
Please, take your time...
i'm spending some time to play with SC in only case i'm tired or fill ill so no need to worry about that
gd lck
Scientia Libertas Prosperitas
February 18th, 2019, 01:00 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
slickiam
and the study might be as follows:
_beta2 "online version" for SC ver 1865 and below
Code
#include <windows.h>
#include "sierrachart.h"
SCDLLName("hideDrwng_b2");
SCSFExport scsf_hideDrwng_b2(SCStudyInterfaceRef sc) {
if(sc.SetDefaults) {
sc.GraphName="hideDrwng_b2";
sc.StudyDescription="Hide/Show drawings >>beta2<< @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.SetACSToolButtonText(1, sc.Input[0].GetString());
sc.SetACSToolToolTip(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;
}
Scientia Libertas Prosperitas
February 18th, 2019, 02:14 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
slickiam
Cool! How do I use it lol... I assume it needs to be compiled or something... sorry, I'm completely useless when it comes to coding.
February 18th, 2019, 02:30 PM
Tomsk, Russia
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435
Rrrracer
Cool! How do I use it lol... I assume it needs to be compiled or something... sorry, I'm completely useless when it comes to coding.
- get attached file or
- copy all from code_frame to file hideDrwng_b2.cpp using Notepad
- save it as *.cpp file into ~/SierraChart /ACS_Sources/ folder
- start SC
- Analysis ->Build Custom Studies DLL -> File -> Select Files
- select file -> Open
- Analysis ->Build Custom Studies DLL ->Build -> Remote Build
- take a sip
- close Build A_C_S_DLL window
- F6 -> Add Custom Study - > choose it -> OK
Scientia Libertas Prosperitas
Attached Files
Elite Membership required to download: hideDrwng_b2.cpp
Last Updated on November 26, 2023