Trying to create a study - Sierra Chart Programming | futures io social day trading
futures io futures trading


Trying to create a study
Updated: Views / Replies:2,751 / 15
Created: by Mickey Caine Attachments:0

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 90,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
 
Thread Tools Search this Thread
 

Trying to create a study

  #11 (permalink)
Market Wizard
virginia
 
Futures Experience: Intermediate
Platform: ninja
Favorite Futures: ES
 
cory's Avatar
 
Posts: 5,216 since Jun 2009
Thanks: 628 given, 6,313 received
Forum Reputation: Legendary


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.


Last edited by cory; September 17th, 2011 at 09:40 PM.
Reply With Quote
The following user says Thank You to cory for this post:
 
  #12 (permalink)
Elite Member
philadelphia USA
 
Futures Experience: Intermediate
Platform: TOS, Sierra Chart
Broker/Data: TD Ameritrade, Infinity Futures
Favorite Futures: options, Russell emini futures
 
Posts: 74 since May 2011
Thanks: 50 given, 51 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:
 
  #13 (permalink)
Elite Member
near Paris, France
 
Futures Experience: Beginner
Platform: -
Favorite Futures: -
 
Nicolas11's Avatar
 
Posts: 1,070 since Aug 2011
Thanks: 2,232 given, 1,729 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];
}

Reply With Quote
The following user says Thank You to Nicolas11 for this post:
 
  #14 (permalink)
Elite Member
philadelphia USA
 
Futures Experience: Intermediate
Platform: TOS, Sierra Chart
Broker/Data: TD Ameritrade, Infinity Futures
Favorite Futures: options, Russell emini futures
 
Posts: 74 since May 2011
Thanks: 50 given, 51 received

SG1

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
 
  #15 (permalink)
Elite Member
near Paris, France
 
Futures Experience: Beginner
Platform: -
Favorite Futures: -
 
Nicolas11's Avatar
 
Posts: 1,070 since Aug 2011
Thanks: 2,232 given, 1,729 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

Reply With Quote
 
  #16 (permalink)
Elite Member
Andover, NY
 
Futures Experience: Intermediate
Platform: Sierracharts
Favorite Futures: NQ
 
Posts: 36 since Oct 2011
Thanks: 135 given, 19 received

SG1 etc

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

Reply



futures io > > > > > Trying to create a study

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kaufman Efficiency Study wireford NinjaTrader 12 August 3rd, 2013 11:36 AM
Reference another study that's not a function vegasfoster Sierra Chart Programming 3 June 23rd, 2011 02:41 PM
Study on Chart Pattern LukeGeniol The Elite Circle 22 June 13th, 2011 09:47 PM


All times are GMT -4. The time now is 08:04 PM.

Copyright © 2017 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
Page generated 2017-12-12 in 0.10 seconds with 19 queries on phoenix via your IP 54.234.255.29