Trading Articles
Article Categories
Article Tools
Trying to create a study
Updated December 3, 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
3,743 views
thumb_up
4 thanks given
group
5 followers
forum
15 posts
attach_file
0 attachments
Welcome to futures io: the largest futures trading community on the planet, with well over 125,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)
(login for full post details)
#1 (permalink )
Kent, England
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
Posts: 196 since Jul 2009
Thanks: 1,605 given,
348
received
I am new to Sierra, I have a very rudimentary knowledge of Easylanguage and a lot less of C++. I would like to create a very simple study. The EL code is
if High > Highest( High, Length )[1] then
begin
Plot1( High, "BrkoutHi" ) ;
Alert ;
end ;
Also, I did attend the webinar last night and asked whether candlestick wicks could be thicker, unfortunately the speaker, when answering increased the size of a bar chart. does anyone know if this can be done?
Any help on these questions would be appreciated.
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
San Jose, CA
Experience: Intermediate
Platform: Sierra Chart
Broker: IB
Trading: Futures
Posts: 113 since Jan 2011
Thanks: 54 given,
95
received
Take a look at the Donchian Channel study. i believe it does something very similar. You can add an alert to it if you want and select which graph you want to plot.
They actually did show the candlestick wick width increase. Global settings > graphic settings and change the width of Bar High-Low Up and Bar High-Low Down.
(login for full post details)
#4 (permalink )
Kent, England
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
Posts: 196 since Jul 2009
Thanks: 1,605 given,
348
received
Thanks for that Jolew. Currently playing with the Dochian channel, fingers crossed. I did see what he did re the wicks. It does not seem tmake any difference to my existing charts. However when I created a new one it does. strange but true. Still I will persevere.
Thanks again
(login for full post details)
#5 (permalink )
Kent, England
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
Posts: 196 since Jul 2009
Thanks: 1,605 given,
348
received
Dochian channel mirrors what I want so thanks for that. However, SG1 is the high side line, do you know what I should type into the condition box so that the alert will sound when price breaks that line. Have tried SG1>0 and also SG1>1 but toi no avail.
Cheers
(login for full post details)
#6 (permalink )
San Jose, CA
Experience: Intermediate
Platform: Sierra Chart
Broker: IB
Trading: Futures
Posts: 113 since Jan 2011
Thanks: 54 given,
95
received
Try SG1>SG1[-1]
(login for full post details)
#7 (permalink )
Kent, England
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
Posts: 196 since Jul 2009
Thanks: 1,605 given,
348
received
Thanks for your continued help.. Yes that does work, HOWEVER, it only sounds off on the close and I do not have that box checked. Any ideas? Also for the low side I presume it would be SG2<SG2[-1]
(login for full post details)
#8 (permalink )
San Jose, CA
Experience: Intermediate
Platform: Sierra Chart
Broker: IB
Trading: Futures
Posts: 113 since Jan 2011
Thanks: 54 given,
95
received
Sorry. I hadn't looked at the study. I think you might have the displacement set to 1. If you set it to 0, then it should work.
You might also be able to use with displacement of 1 and use C > SG1
The following user says Thank You to Jolew for this post:
(login for full post details)
#9 (permalink )
Kent, England
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
Posts: 196 since Jul 2009
Thanks: 1,605 given,
348
received
It only worked!!!!!!
Thanks. off to the pub to celbrate. I will set up the short version later
Your help is much appreciated
(login for full post details)
#10 (permalink )
Site Administrator Swing Trader Data Scientist & DevOps
Manta, Ecuador
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
Posts: 49,792 since Jun 2009
Thanks: 32,326 given,
97,628
received
I have never looked at SC code. But am curious, what is "SG1" - other than a pretty good TV show
Mike
(login for full post details)
#11 (permalink )
the coin hunter
virginia
Experience: Intermediate
Platform: ninja
Trading: NQ
Posts: 6,030 since Jun 2009
Thanks: 845 given,
7,894
received
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.
The following user says Thank You to cory for this post:
(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: 53 given,
53
received
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
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: -
Posts: 1,071 since Aug 2011
Thanks: 2,232 given,
1,751
received
@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];
}
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: 53 given,
53
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
(login for full post details)
#15 (permalink )
near Paris, France
Experience: Beginner
Platform: -
Trading: -
Posts: 1,071 since Aug 2011
Thanks: 2,232 given,
1,751
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
(login for full post details)
#16 (permalink )
Alameda, CA
Experience: Intermediate
Platform: Sierracharts
Trading: NQ
Posts: 45 since Oct 2011
Thanks: 170 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.
Last Updated on December 3, 2013
Right now
Ongoing
Right now
March
Register to Attend
Elite only
Coming soon
April