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 December 4, 2013
Top Posters
looks_one
Mickey Caine
with 5 posts (0 thanks)
looks_two
Jolew
with 3 posts (1 thanks)
looks_3
trendfriendpa
with 2 posts (1 thanks)
looks_4
Nicolas11
with 2 posts (1 thanks)
Best Posters
looks_one
cory
with 1 thanks per post
looks_two
trendfriendpa
with 0.5 thanks per post
looks_3
Nicolas11
with 0.5 thanks per post
looks_4
Jolew
with 0.3 thanks per post
trending_up
5,221 views
thumb_up
4 thanks given
group
5 followers
forum
15 posts
attach_file
0 attachments
September 17th, 2011, 08:15 PM
virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,098 since Jun 2009
Thanks Given: 877
Thanks Received: 8,090
Big Mike
I have never looked at SC code. But am curious, what is "SG1" - other than a pretty good TV show
Mike
an indicator can has many parms, SG1 = subgrapth 1 = first parm.
ps: should have said many outputs, SG1 = first output.
August 29th, 2012, 11:32 PM
philadelphia USA
Experience: Intermediate
Platform: TOS, Webull, Ninja 8
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
Posts: 79 since May 2011
Thanks Given: 54
Thanks Received: 53
Big Mike
I have never looked at SC code. But am curious, what is "SG1" - other than a pretty good TV show
Mike
SG1 means subgraph 1 that is about the only thing I know when it comes to Sierra Chart other than sc. meaning sierra chart
August 30th, 2012, 09:29 AM
near Paris, France
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769
@Big Mike ,
Big Mike
I have never looked at SC code. But am curious, what is "SG1" - other than a pretty good TV show
In addition to the above answers, below please find a minimal code (17 lines) which plots... the close of each bar (in a sub-panel).
There is an unique plot (subgraph): SG1.
In the code, "SG1" does not appear as such, but is referred to as sc.Subgraph[0] (in bold).
Nicolas
Code
#include "sierrachart.h"
SCDLLName("Example DLL")
SCSFExport scsf_Example(SCStudyGraphRef sc)
{
if ( sc.SetDefaults ) {
sc.GraphName = "Example";
sc.FreeDLL = 1;
sc.AutoLoop = 1;
sc.Subgraph[0] .Name = "Copy of the price";
sc.Subgraph[0] .DrawStyle = DRAWSTYLE_LINE;
return;
}
sc.Subgraph[0] [sc.Index] = sc.Close[sc.Index];
}
November 20th, 2013, 01:13 AM
philadelphia USA
Experience: Intermediate
Platform: TOS, Webull, Ninja 8
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
Posts: 79 since May 2011
Thanks Given: 54
Thanks Received: 53
I believe SG1 translates to SierraGraph1 (which is the main chart)
SG2 - is the first subgraph under the chart
SG3 - is the second subgraph under the chart
November 21st, 2013, 04:44 PM
near Paris, France
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks Given: 2,232
Thanks Received: 1,769
@trendfriendpa ,
I do not think so.
As explained above, SGn refers to the n-th plot on the chart.
It also documented there: Study/Chart Alerts And Scanning - Sierra Chart
Nicolas
December 3rd, 2013, 11:37 PM
Alameda, CA
Experience: Intermediate
Platform: Sierracharts
Trading: NQ
Posts: 45 since Oct 2011
Thanks Given: 177
Thanks Received: 30
For Example:
With the indicator CCI
SG1 = CCI line (value determined by user)
SG3 = Line Value such as +100 (value determined by user)
SG4 = Line Value such as -100 (value determined by user)
If SG1 was above SG3 one bar ago (a.k.a [-1] ), and assuming the CCI sudy is ID1, then a cross-over of the CCI from above +100 (Line Value SG3) to below it on the current bar, can be written :
=and(ID1.SG1[-1]>ID1.SG3[-1],ID1.SG1[0]<ID1.SG3[0])
for an alert such as
auditory,
a colored bar (as in candlestick),
background color (behind candlestick),
arrow down etc.
To learn best about alerts, look at any offerings from Tom Gilb.
Last Updated on December 3, 2013