NexusFi: Find Your Edge


Home Menu

 





Sierra Chart Worksheet System For Trading/Alert Discussions


Discussion in Sierra Chart

Updated
      Top Posters
    1. looks_one Sawtooth with 73 posts (125 thanks)
    2. looks_two luckcity with 43 posts (2 thanks)
    3. looks_3 RT912 with 12 posts (0 thanks)
    4. looks_4 bxman with 10 posts (0 thanks)
      Best Posters
    1. looks_one TropicalTrader with 2 thanks per post
    2. looks_two Sawtooth with 1.7 thanks per post
    3. looks_3 aBuzz54 with 1 thanks per post
    4. looks_4 luckcity with 0 thanks per post
    1. trending_up 65,823 views
    2. thumb_up 139 thanks given
    3. group 44 followers
    1. forum 182 posts
    2. attach_file 9 attachments




 
Search this Thread

Sierra Chart Worksheet System For Trading/Alert Discussions

  #21 (permalink)
 gonzofist 
PORTLAND, OR
 
Experience: None
Platform: NinjaTrader
Trading: Futures
Posts: 185 since Jul 2011
Thanks Given: 74
Thanks Received: 168


Poocher View Post
Thanks Tomgilb for sharing your efforts.

Any opinions on a good book to learn the Sierra Charts Worksheet (spreadsheet) programming?

I'm guessing that C Programming is harder than spreadsheet programming and I'm hoping to learn to do more with SC so hope to learn one of them.

I assume a beginners Excel book?...does it matter what year?...is 2010 Excel for Dummies better than 2007?




...this looks good:

https://www.amazon.com/Learn-Excel-Essential-Skills-Method/dp/0955459923/ref=sr_1_11?s=books&ie=UTF8&qid=1311623874&sr=1-11

I would recommend one of the online training sites, Lynda.com is known for business application training, Pluralsight is good for development stuff. Here is the link to the excel stuff on Lynda, im self taught through work but have a lot of holes in stuff I haven't needed to learn, so I am currently going through their lessons as well:

Excel Training & Tutorials

Google for the free 7 day trial, it costs $25/mo for unlimited access to all their videos which I think is a pretty good deal. If you get into other languages look to Pluralsight, same type of deal, I like to watch a C# video on their app while having lunch etc.

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
ZombieSqueeze
Platforms and Indicators
Cheap historycal L1 data for stocks
Stocks and ETFs
 
  #22 (permalink)
 
Outlander's Avatar
 Outlander 
Vänersborg Sweden
 
Experience: Beginner
Platform: Sierra
Broker: Transact
Trading: YM,EMD,DAX,CL,CG
Posts: 396 since Jan 2013
Thanks Given: 559
Thanks Received: 141


tomgilb View Post
Here's a handy tool to use in Sierra's spreadsheets: Locking the TRUE state of a formula condition. This is an expanded explanation of its function, based on Sierra Chart's documentation:
Sierra Chart - Spreadsheet Additional Information

This is the basic resettable locking state formula:
=AND(OR(H1=TRUE,H2>1),H3=FALSE)

The colored portions are the only things you edit.

The Red is the cell that contains the entire formula. In this example this formula would go in H1. This creates a circular reference to H1. You may need to check the box 'Iteration' in the Workbook Explorer. (Right click in a cell, choose Workbook Explorer >> Workbook Set >> Calculation >> Iteration).

The Blue is the formula that must go TRUE to lock H1 TRUE. It can be as complex as needed, it can be part of this formula, or you can put the formula in another cell and reference it, as in the example.

The Green is the cell (H3 in this example) that contains the formula to reset the locked state of H1. When H3 goes TRUE, the lock is reset. H3 must then go FALSE before H1 can be locked TRUE again.

-Tom

Tom thanks for the help I got from you in the past. I have had great use of how to lock a cell true statement. I wonder is it possible to lock a value in a cell? Lets say I have the value 50 in a cell and want to lock this value until I release it? Any help would be kind. Regards Outlander

Reply With Quote
  #23 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603



Outlander View Post
Tom thanks for the help I got from you in the past. I have had great use of how to lock a cell true statement. I wonder is it possible to lock a value in a cell? Lets say I have the value 50 in a cell and want to lock this value until I release it? Any help would be kind. Regards Outlander

I don't know of a way to lock a value in a cell, only T/F.

The only way I know to do something like it is to use formulas in the K-Z-AX array that update on each bar, but this only works with values that are updated at each bar, which is why I have asked for more Trading: ........ studies.

Incredibly, SC once eliminated all of those studies, but brought most of them back when I made a case for them, then added some others.
Trading: Studies have been removed? - Sierra Chart

Started this thread Reply With Quote
Thanked by:
  #24 (permalink)
 
Outlander's Avatar
 Outlander 
Vänersborg Sweden
 
Experience: Beginner
Platform: Sierra
Broker: Transact
Trading: YM,EMD,DAX,CL,CG
Posts: 396 since Jan 2013
Thanks Given: 559
Thanks Received: 141


tomgilb View Post
I don't know of a way to lock a value in a cell, only T/F.

The only way I know to do something like it is to use formulas in the K-Z-AX array that update on each bar, but this only works with values that are updated at each bar, which is why I have asked for more Trading: ........ studies.

Incredibly, SC once eliminated all of those studies, but brought most of them back when I made a case for them, then added some others.
Trading: Studies have been removed? - Sierra Chart

Zigzag hi and lows for a worksheet - Sierra Chart

I have manage to use the formula for catching H/L from the ZigZag. So I can get the High values as intended. But the problem is that I want to use the value at the bar in progress. Now it catches the value on bar close. Regards Outlander

Reply With Quote
  #25 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

Hi Tom,
Thanks for answering a question previously on the SC forum.
Posting here this time, as looking to fire off a few more, and most recent one was ignored there
I'm assuming this is a different forum, but also realize futures.io does integrate the SC forum,
So here goes

1.
I was thinking of creating small calculations in scattered cells and referencing them, instead of managing a long string in the entry/exit cells
Which subject was the last question sent to SC, maybe it fell under "we don’t debug formulas” category.
I had asked where best to put those, and they were suggesting at the bottom of I/J columns
Asked if using the H column was as good, as it seems to be working ok, and is more conveniently located.
2.
A general question.... are formulas a decent substitute for ASCIL?
One obstacle encountered was when signal is set to the end of the candle, and I don’t think an ss formula is able to unset that.
Just looking for a "my experience is" sort of answer, as you may not have tried ASCIL.
3.
How manageable are stops in formulas, for an example, can a stop be tightened if a moving average shifts direction.
4.
Along the same lines, could a target be changed, if criteria is met, from a value in formula, to instead use one of the (trend following) studies
5.
Two more questions unanswered but guessing the answer is no.
Functions used with StudyChart Alerts And Scanning cannot be used, correct?
such as
Referencing Data Other than Last Bar
Base Graph Identifiers
(tried links but was prohibited)
can these be used in spreadsheet system for trading?

Reply With Quote
  #26 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603


luckcity View Post
Hi Tom,
Thanks for answering a question previously on the SC forum.
Posting here this time, as looking to fire off a few more, and most recent one was ignored there
I'm assuming this is a different forum, but also realize futures.io does integrate the SC forum,
So here goes

1.
I was thinking of creating small calculations in scattered cells and referencing them, instead of managing a long string in the entry/exit cells
Which subject was the last question sent to SC, maybe it fell under "we don’t debug formulas” category.
I had asked where best to put those, and they were suggesting at the bottom of I/J columns
Asked if using the H column was as good, as it seems to be working ok, and is more conveniently located.
2.
A general question.... are formulas a decent substitute for ASCIL?
One obstacle encountered was when signal is set to the end of the candle, and I don’t think an ss formula is able to unset that.
Just looking for a "my experience is" sort of answer, as you may not have tried ASCIL.
3.
How manageable are stops in formulas, for an example, can a stop be tightened if a moving average shifts direction.
4.
Along the same lines, could a target be changed, if criteria is met, from a value in formula, to instead use one of the (trend following) studies
5.
Two more questions unanswered but guessing the answer is no.
Functions used with StudyChart Alerts And Scanning cannot be used, correct?
such as
Referencing Data Other than Last Bar
Base Graph Identifiers
(tried links but was prohibited)
can these be used in spreadsheet system for trading?

1) Use Formula Columns to separate portions of your entry formulas, and then reference them in K3/M3 with AND or OR. This makes formula management and debugging much easier. Use non-repeating cells in column H for user parameters, and intermediate calculations that are not associated with chart bars.
Note: Formulas in non-repeating cells must reference row 3 for intrabar triggers and row 4 for close-of-bar triggers. The 'Signal Only On Bar Close' setting only affects Formula Columns.

2) I don't understand what you mean by 'unset', but spreadsheet formulas are capable of doing most things ACSIL can do.

3,4) Stops and targets can definitely be managed with spreadsheet formulas. If you are not using Attached Orders, they are not pending in the market. If you are using Attached Orders, they can be managed with spreadsheet formulas using the Trade Management by Study study. If you are scaling in or scaling out, the Trade Management by Study study will only move the stop/target closest to the current price, but there is a complicated solution to this.
The Trade Management by Study study can be used with any study's subgraph value, including a spreadsheet study.

5) Simple Alert syntax and spreadsheet formula syntax are not the same, but the format is the same. A few spreadsheet functions can be used in Simple Alert formulas, but Base Graph Identifiers cannot be used in spreadsheet formulas. Spreadsheet row 3 is the current bar, and rows below are previous bars. Simple Alerts use bracketed references to previous bars, e.g. [-1] for the previous bar. So it is possible with both to reference data in previous bars.

The best way to learn is to use trial and error. Don't be afraid to try anything. When you can't figure something out, go to the documentation, which is very good. When neither of these answers your questions, then post on this forum or Sierra's forum.

Started this thread Reply With Quote
Thanked by:
  #27 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

Thanks for the encouragement and guidance, Tom.
Interesting that Attached orders can be managed using the Trade Management by Study study, will look at that soon.

For #2, a setting such as 'Signal Only On Bar Close' looks to be read only.
Was working on an exit formula with 2 conditions where one was best end of bar, and the other would have been best intrabar.
I'm not sure that can be switched on the fly in an ss formula, but it may not be able to be switched in ASCIL either

Reply With Quote
  #28 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603


Quoting 
For #2, a setting such as 'Signal Only On Bar Close' looks to be read only.

J58 to J70 are read only outputs from the spreadsheet study settings.

Quoting 
Was working on an exit formula with 2 conditions where one was best end of bar, and the other would have been best intrabar.
I'm not sure that can be switched on the fly in an ss formula, but it may not be able to be switched in ASCIL either

They can be switched with formulas if Signal Only On Bar Close is set to No,
then for intrabar, reference row 3, for close of bar, reference row 4.

Started this thread Reply With Quote
Thanked by:
  #29 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

Hi Tom,
I am looking different Moving Average slope angles using the simple formula
=IF(AG3-AG4>.0001,1,0)
and seeing differing results depending on the range bar value being used, which isn't unexpected.

Range bar values (or day/minute/second values) aren't obviously seen to be accessed from/on the spreadsheet (in order to make this more universal across time frames and ranges).

Do you know of any studies in Sierra Chart that do this, or can frames/ranges be accessed in a spreadsheet formula?
Jeff

Reply With Quote
  #30 (permalink)
 Sawtooth 
Prescott AZ USA
 
Experience: Advanced
Platform: SierraChart
Broker: Stage5, FCM:Dorman, Data:Denali, Routing:Teton
Trading: YM ES NQ
Posts: 474 since Nov 2009
Thanks Given: 219
Thanks Received: 603



luckcity View Post
Hi Tom,
I am looking different Moving Average slope angles using the simple formula
=IF(AG3-AG4>.0001,1,0)
and seeing differing results depending on the range bar value being used, which isn't unexpected.

Range bar values (or day/minute/second values) aren't obviously seen to be accessed from/on the spreadsheet (in order to make this more universal across time frames and ranges).

Do you know of any studies in Sierra Chart that do this, or can frames/ranges be accessed in a spreadsheet formula?
Jeff

The OHLCVT data is found in columns B-G on the spreadsheet.

An easy way to get the slope angle of a MA is to use the Study Angle study.

You can use array ranges in formulas, e.g.:
=AVERAGE(E3:E10)

Started this thread Reply With Quote
Thanked by:




Last Updated on January 3, 2022


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts