Trying to create a study - futures io
futures io futures trading



Trying to create a study


Discussion in Sierra Chart

Updated by jdrower
      Top Posters
    1. looks_one Mickey Caine with 5 posts (0 thanks)
    2. looks_two Jolew with 3 posts (1 thanks)
    3. looks_3 trendfriendpa with 2 posts (1 thanks)
    4. looks_4 Nicolas11 with 2 posts (1 thanks)
      Best Posters
    1. looks_one cory with 1.0 thanks per post
    2. looks_two Nicolas11 with 0.5 thanks per post
    3. looks_3 trendfriendpa with 0.5 thanks per post
    4. looks_4 Jolew with 0.3 thanks per post
    1. trending_up 3,524 views
    2. thumb_up 4 thanks given
    3. group 5 followers
    1. forum 15 replies
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

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

 
Search this Thread
 

Trying to create a study

(login for full post details)
  #11 (permalink)
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 5,999 since Jun 2009
Thanks: 831 given, 7,833 received


Big Mike View Post
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.

Reply With Quote
The following user says Thank You to cory for this post:

Can you help answer these questions
from other members on futures io?
help to convert from thinkscript to ninjascript
NinjaTrader
Where is the link to download GomiRecorder?
NinjaTrader
Help finding a web based chart with tick charts and publishing of ideas
Platforms and Indicators
IB Bracker Order
Platforms and Indicators
OPEN_CLOSE_DOTS
ThinkOrSwim
 
 
(login for full post details)
  #12 (permalink)
philadelphia USA
 
Experience: Intermediate
Platform: TOS, Webull, Tradovate
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
 
Posts: 76 since May 2011
Thanks: 52 given, 52 received


Big Mike View Post
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

Reply With Quote
The following user says Thank You to trendfriendpa for this post:
 
(login for full post details)
  #13 (permalink)
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,746 received


@Big Mike,


Big Mike View Post
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];
}

Visit my futures io Trade Journal Reply With Quote
The following user says Thank You to Nicolas11 for this post:
 
(login for full post details)
  #14 (permalink)
philadelphia USA
 
Experience: Intermediate
Platform: TOS, Webull, Tradovate
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
 
Posts: 76 since May 2011
Thanks: 52 given, 52 received

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

Reply With Quote
 
(login for full post details)
  #15 (permalink)
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,746 received

@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

Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #16 (permalink)
Alameda, CA
 
Experience: Intermediate
Platform: Sierracharts
Trading: NQ
 
Posts: 45 since Oct 2011
Thanks: 167 given, 30 received

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.

Reply With Quote


futures io Trading Community Platforms and Indicators Sierra Chart > Trying to create a study


December 3, 2013


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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