Trying to create a study - futures io
futures io



Trying to create a study


Discussion in Sierra Chart

Updated
      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 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,773 views
    2. thumb_up 4 thanks given
    3. group 5 followers
    1. forum 15 posts
    2. 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)

 
Search this Thread
 

Trying to create a study

(login for full post details)
  #1 (permalink)
 Mickey Caine 
Kent, England
 
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
 
Mickey Caine's Avatar
 
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.

Visit my futures io Trade Journal Started this thread Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(582 thanks from 59 posts)
looks_twoSalao's Journalby Salao
(136 thanks from 24 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(94 thanks from 30 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(85 thanks from 26 posts)
looks_5Maybe a little bit different journalby Malykubo
(46 thanks from 28 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
471 thanks
The Crude Dude Oil Trading System
72 thanks
Spoo-nalysis ES e-mini futures S&P 500
49 thanks
Are candlesticks patterns statistically significant?
35 thanks
Can I trade ZN Future with zero spread?
20 thanks
 
(login for full post details)
  #3 (permalink)
 Jolew 
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.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
 Mickey Caine 
Kent, England
 
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
 
Mickey Caine's Avatar
 
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

Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #5 (permalink)
 Mickey Caine 
Kent, England
 
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
 
Mickey Caine's Avatar
 
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

Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #6 (permalink)
 Jolew 
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]

Reply With Quote
 
(login for full post details)
  #7 (permalink)
 Mickey Caine 
Kent, England
 
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
 
Mickey Caine's Avatar
 
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]

Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
 Jolew 
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

Reply With Quote
The following user says Thank You to Jolew for this post:
 
(login for full post details)
  #9 (permalink)
 Mickey Caine 
Kent, England
 
Experience: Intermediate
Platform: Sierra
Broker: Infinity
Trading: Oil
 
Mickey Caine's Avatar
 
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

Visit my futures io Trade Journal Started this thread Reply With Quote
 
(login for full post details)
  #10 (permalink)
 Big Mike 
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: Custom solution
Trading: Futures & Crypto
 
Big Mike's Avatar
 
Posts: 50,065 since Jun 2009
Thanks: 32,529 given, 98,479 received


I have never looked at SC code. But am curious, what is "SG1" - other than a pretty good TV show

Mike

We're here to help -- just ask

For the best trading education, watch our webinars
Searching for trading reviews? Review this list

Follow us on Twitter, YouTube, and Facebook

Support our community as an Elite Member:
https://futures.io/elite/

Visit other sites? Please spread the word about your experience with our community!
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #11 (permalink)
 cory 
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,044 since Jun 2009
Thanks: 857 given, 7,915 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:
 
(login for full post details)
  #12 (permalink)
 trendfriendpa 
philadelphia USA
 
Experience: Intermediate
Platform: TOS, Webull, Tradovate
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
 
Posts: 77 since May 2011
Thanks: 54 given, 53 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)
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,754 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)
 trendfriendpa 
philadelphia USA
 
Experience: Intermediate
Platform: TOS, Webull, Tradovate
Broker: TD Ameritrade
Trading: options, ES/NQ futures, stocks
 
Posts: 77 since May 2011
Thanks: 54 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

Reply With Quote
 
(login for full post details)
  #15 (permalink)
 Nicolas11 
near Paris, France
 
Experience: Beginner
Platform: -
Trading: -
 
Nicolas11's Avatar
 
Posts: 1,071 since Aug 2011
Thanks: 2,232 given, 1,754 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)
 jdrower 
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.

Reply With Quote


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


Last Updated on December 3, 2013


Upcoming Webinars and Events

NinjaTrader Indicator Challenge!

Ongoing

Journal Challenge w/$1,800 in prizes!

May 7

EdgeProX - A Simple Choice For The Active Trader w/Morad Askar @ Edge Clear …

Elite only

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), 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