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



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 trendfriendpa with 0.5 thanks per post
    3. looks_3 Nicolas11 with 0.5 thanks per post
    4. looks_4 Jolew with 0.3 thanks per post
    1. trending_up 3,743 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)
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

Can you help answer these questions
from other members on futures io?
Which kind of Blockvolume is visible? - order processing
Emini and Emicro Index
Short Interest Ratio indicator?
ThinkOrSwim
What blockvolume is visible? - order processing
NinjaTrader
SimplerOptions
Trading Reviews and Vendors
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Battlestations: Show us your trading desks!
118 thanks
Big Mike in Ecuador
66 thanks
If you needed one-on-one help with any trading issue, ho …
31 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Building a Crypto Mining Rig
21 thanks
 
(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.

Reply With Quote
 
(login for full post details)
  #4 (permalink)
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)
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)
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)
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)
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)
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)
Site Administrator
Swing Trader
Data Scientist & DevOps
Manta, Ecuador
 
Experience: Advanced
Platform: My own custom solution
Trading: Emini Futures
 
Big Mike's Avatar
 
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

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/
Follow me on Twitter Visit my futures io Trade Journal Reply With Quote
 
(login for full post details)
  #11 (permalink)
the coin hunter
virginia
 
Experience: Intermediate
Platform: ninja
Trading: NQ
 
cory's Avatar
 
Posts: 6,030 since Jun 2009
Thanks: 845 given, 7,894 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)
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 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,751 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: 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

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,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

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: 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
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 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