"Hide/Show studies" Buttons Study - Sierra Chart | futures io social day trading
futures io futures trading


"Hide/Show studies" Buttons Study
Updated: Views / Replies:3,938 / 50
Created: by slickiam Attachments:16

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 16  
 
Thread Tools Search this Thread
 

"Hide/Show studies" Buttons Study

  #31 (permalink)
You did what?!
Indianoplace, IN
 
Trading Experience: Intermediate
Platform: SierraChart
Broker/Data: CQG
Favorite Futures: 6B, 6E, 6J, NQ
 
Rrrracer's Avatar
 
Posts: 1,745 since Feb 2017
Thanks: 10,293 given, 6,158 received
Forum Reputation: Legendary




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

Reply With Quote
 
  #32 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received


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
Reply With Quote
 
  #33 (permalink)
You did what?!
Indianoplace, IN
 
Trading Experience: Intermediate
Platform: SierraChart
Broker/Data: CQG
Favorite Futures: 6B, 6E, 6J, NQ
 
Rrrracer's Avatar
 
Posts: 1,745 since Feb 2017
Thanks: 10,293 given, 6,158 received
Forum Reputation: Legendary



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.

Reply With Quote
 
  #34 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received


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
Reply With Quote
 
  #35 (permalink)
You did what?!
Indianoplace, IN
 
Trading Experience: Intermediate
Platform: SierraChart
Broker/Data: CQG
Favorite Futures: 6B, 6E, 6J, NQ
 
Rrrracer's Avatar
 
Posts: 1,745 since Feb 2017
Thanks: 10,293 given, 6,158 received
Forum Reputation: Legendary


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

Reply With Quote
 
  #36 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received


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

Last edited by slickiam; February 18th, 2019 at 01:04 PM.
Reply With Quote
The following user says Thank You to slickiam for this post:
 
  #37 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received


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
Reply With Quote
The following user says Thank You to slickiam for this post:
 
  #38 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received


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

Last edited by slickiam; February 18th, 2019 at 05:34 PM.
Reply With Quote
The following user says Thank You to slickiam for this post:
 
  #39 (permalink)
You did what?!
Indianoplace, IN
 
Trading Experience: Intermediate
Platform: SierraChart
Broker/Data: CQG
Favorite Futures: 6B, 6E, 6J, NQ
 
Rrrracer's Avatar
 
Posts: 1,745 since Feb 2017
Thanks: 10,293 given, 6,158 received
Forum Reputation: Legendary


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.

Reply With Quote
 
  #40 (permalink)
Elite Member
Tomsk, Russia
 
Trading Experience: Beginner
Platform: custom
Favorite Futures: gold
 
slickiam's Avatar
 
Posts: 271 since Dec 2010
Thanks: 132 given, 427 received



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
Register to download File Type: cpp hideDrwng_b2.cpp (1.7 KB, 2 views)
Reply With Quote
The following user says Thank You to slickiam for this post:

Reply



futures io > > > > "Hide/Show studies" Buttons Study

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

60 Minutes to Better Decisions & Better Trades w/Agustin Lebron

Elite only
 

Live Day Trading the E-MICROS w/Ilan @ Cannon (special time: 12PM ET)

May 30
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please show "better volume" ES Chart Assaya TradeStation 2 September 24th, 2012 04:03 PM
"The Big 4 Banks Have To Cheat To Hide Their Insolvency" Victory Trader News and Current Events 0 August 28th, 2012 06:48 PM
Fukushima: "China Syndrome Is Inevitable" ... "Huge Steam Explosions", or "Nuclear Bo Quick Summary News and Current Events 0 November 22nd, 2011 01:50 AM
How to change "Stop Loss" and "Take Profit" in "shElderImpulse" Strategy javed759 NinjaTrader 1 November 1st, 2011 10:44 PM
"mid", "buy", "sell" volumes lokgotkent Traders Hideout 6 September 30th, 2011 01:24 PM


Tags
acsil, ai, chartbook, code, coding, dow, error, es, est, fibonacci, futures, gann, how to, list, news, ohlc, pitchfork, programming, regression, retracement, retracements, reward, sierrachart, sierra_chart, split, swing, top, tradingview, type, volume, volume profile, vwap

All times are GMT -4. The time now is 07:28 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432 WhatsApp Business, info@futures.io
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.
no new posts
Page generated 2019-05-25 in 0.20 seconds with 15 queries on phoenix