NexusFi: Find Your Edge


Home Menu

 





"Hide/Show studies" Buttons Study


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Rrrracer with 20 posts (9 thanks)
    2. looks_two slickiam with 16 posts (30 thanks)
    3. looks_3 swandro with 8 posts (17 thanks)
    4. looks_4 ejtrader with 3 posts (0 thanks)
      Best Posters
    1. looks_one swandro with 2.1 thanks per post
    2. looks_two mkata with 2 thanks per post
    3. looks_3 slickiam with 1.9 thanks per post
    4. looks_4 Rrrracer with 0.5 thanks per post
    1. trending_up 20,624 views
    2. thumb_up 65 thanks given
    3. group 20 followers
    1. forum 60 posts
    2. attach_file 20 attachments




 
Search this Thread

"Hide/Show studies" Buttons Study

  #31 (permalink)
 
Rrrracer's Avatar
 Rrrracer 
On the road
Webinar Host
Trading Nomad
 
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,752




I know... that's even worse than trying to show/hide studies LOL...

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
About a successful futures trader who didnt know anythin …
Psychology and Money Management
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
MC PL editor upgrade
MultiCharts
REcommedations for programming help
Sierra Chart
 
  #32 (permalink)
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435


Rrrracer View Post
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
Started this thread Reply With Quote
  #33 (permalink)
 
Rrrracer's Avatar
 Rrrracer 
On the road
Webinar Host
Trading Nomad
 
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,752



slickiam View Post
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.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #34 (permalink)
 
slickiam's Avatar
 slickiam 
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
Started this thread Reply With Quote
  #35 (permalink)
 
Rrrracer's Avatar
 Rrrracer 
On the road
Webinar Host
Trading Nomad
 
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,752


slickiam View Post
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

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #36 (permalink)
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435


Rrrracer View Post
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
Started this thread Reply With Quote
Thanked by:
  #37 (permalink)
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435


Rrrracer View Post
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
Started this thread Reply With Quote
Thanked by:
  #38 (permalink)
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435


slickiam View Post
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
Started this thread Reply With Quote
Thanked by:
  #39 (permalink)
 
Rrrracer's Avatar
 Rrrracer 
On the road
Webinar Host
Trading Nomad
 
Experience: Intermediate
Platform: TradingView
Broker: Oanda
Trading: FX
Posts: 2,512 since Feb 2017
Thanks Given: 17,582
Thanks Received: 9,752


slickiam View Post
_beta2 "online version"

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.

Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #40 (permalink)
 
slickiam's Avatar
 slickiam 
Tomsk, Russia
 
Experience: Beginner
Platform: custom
Trading: gold
Posts: 273 since Dec 2010
Thanks Given: 133
Thanks Received: 435



Rrrracer View Post
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
Started this thread Reply With Quote
Thanked by:




Last Updated on November 26, 2023


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts