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

  #121 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

OK did this
column W "tiimeframe counter"
=IF(OR(INT(A3)>INT(A4),AND(FRACTIME(A4)<$H$10,FRACTIME(A3)>=$H$10)),1,W4+1)

X, "totaler", totals whats in column CJ
=IF(W3=1,CJ3,X4+CJ3)

Y, "Averager"
=ROUND(X3/W3,0)

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Quantum physics & Trading dynamics
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
About a successful futures trader who didnt know anythin …
Psychology and Money Management
 
  #122 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

Tom,
Having an issue with a circular reference, for known reasons, as I am trying to disable a potential entry, after an entry has been made (K,M).

Is there a study that will add a column that reports entries, besides KM?

The J columns are "temporal" and its useless trying to store values from it using the double IFs.

Reply With Quote
  #123 (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
Tom,
Having an issue with a circular reference, for known reasons, as I am trying to disable a potential entry, after an entry has been made (K,M).

Is there a study that will add a column that reports entries, besides KM?

The J columns are "temporal" and its useless trying to store values from it using the double IFs.

K and M are the only columns that can trigger an entry.

As you know, it's not possible to create a persistent variable of column J values. Persistent variables can only be created in Formula Columns.

To avoid circular references, instead of referencing a column, use the entire formula from that column.

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

Hope this makes sense, Tom

I realize many of the J column cells are transitionary, so not stored easily, but..
would there be a way show true when a time has moved past a fixed amount of minutes?
something like (not working obviously)
=fractime($J$46)<fractime(A3)-3*60*.0000116

meaning:
the time of last exit is more than 3 minutes ago
(that decimal is a fractime second)

Reply With Quote
  #125 (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 
the time of last exit is more than 3 minutes ago

Try this:
=$J$41-$J$43>3/1440

This compares the last chart update time to the last exit time.
3/1440 is 3 minutes in Serial Date Time format because there are 1440 minutes in 24 hours.

FRACTIME removes the date, but you don't need to do that, especially if the last exit was yesterday.

Started this thread Reply With Quote
Thanked by:
  #126 (permalink)
 
MWG86's Avatar
 MWG86 
Winnipeg, MB Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Ironbeam with CQG via Optimus
Trading: MES
Posts: 688 since Jul 2015
Thanks Given: 2,013
Thanks Received: 1,522

Random entry testing using Sierra's Spreadsheet System for Trading


Hoping someone can point me in the right direction. I want to see the results of random entry on a few different R multiples as well as scaling-out scenarios on ES. I've used Sierra's Spreadsheet Study before for some simple charting but don't have experience with the Spreadsheet System for Trading study.

I'm able to generate a random list of dates/times/directions within Excel but I'm not sure if these can then be run through Sierra's Spreadsheet System for Trading study, or if the random list needs to be created directly within Sierra. I would like to use the same dates/times/directions if possible for each of the exit criteria below.

Specifically, I want to see results based on random entry over 1,000 trades using the following exit parameters:
  • 5 point stop, 2.5 point target
  • 5 point stop, 5 point target
  • 5 point stop, 7.5 point target
  • 5 point stop, 10 point target
  • 5 point stop, scale half at 4.5 points, remainder at 7.5 points
  • 5 point stop, scale half at 4.5 points, remainder at 10 points

I've done a similar study in the past on a few forex pairs using macros in Excel but it was extremely inefficient and I don't want to go through that process again.

Is anyone who's familiar with Sierra's backtesting able to let me know if a) it is possible to enter based on time/date criteria, and b) am I on the right track generating my list within Excel, or should I be working entirely within Sierra?

Grateful for any help and tips you can provide.

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #127 (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

The short answer is: You probably can't do what you want with the Spreadsheet System for Trading study. At best, it would be cumbersome.

Sierra Chart spreadsheet studies are simplistic compared to Excel, and are only Excel-similar.
- There are fewer functions, some of the functions operate differently, and some functions are specific to Sierra Chart.
https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html
- There is no interface with Excel.
- There are no graphs, no conditional formatting, no macros, no referencing of other spreadsheet files, and others.
There is no optimization functionality.

You can add a blank sheet not associated with a chart where you could perform calculations within the limitations of the study. If it couldn't replicate a random list of dates/times/directions as in Excel, you could manually copy/paste from Excel to this sheet and then reference that sheet for entry criteria.

Entries can be based on date and time, however, it's not possible to enter at a specific time unless there was a chart update at that specific time. The best you can do is create a window spanning a specific time.

Backtesting in Sierra Chart is basically replaying the chart's data. Speed and accuracy are dependent on computer hardware and spreadsheet complexity. There are several backtesting options, but the fastest one only works well on some configurations. Accurate backtesting will likely end up being much slower that you would like. Each exit iteration would need to be backtested separately and, worst case, could take hours to accurately test 1000 trades. Six iterations could take days.

Started this thread Reply With Quote
Thanked by:
  #128 (permalink)
 
MWG86's Avatar
 MWG86 
Winnipeg, MB Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Ironbeam with CQG via Optimus
Trading: MES
Posts: 688 since Jul 2015
Thanks Given: 2,013
Thanks Received: 1,522

Thanks Tom, I appreciate the response.

Visit my NexusFi Trade Journal Reply With Quote
  #129 (permalink)
 
MWG86's Avatar
 MWG86 
Winnipeg, MB Canada
Legendary Market Wizard
 
Experience: Intermediate
Platform: Sierra Chart
Broker: Ironbeam with CQG via Optimus
Trading: MES
Posts: 688 since Jul 2015
Thanks Given: 2,013
Thanks Received: 1,522


tomgilb View Post
The short answer is: You probably can't do what you want with the Spreadsheet System for Trading study. At best, it would be cumbersome.

...

You can add a blank sheet not associated with a chart where you could perform calculations within the limitations of the study. If it couldn't replicate a random list of dates/times/directions as in Excel, you could manually copy/paste from Excel to this sheet and then reference that sheet for entry criteria.


I guess I'm a glutton for punishment

After trial and error (and a lot of reference to your responses on Sierra's forum), I've got something almost working. I've created a separate spreadsheet for the date and time criteria as you suggested and have populated it with sample data as follows:



The formula that I'm using in cell K3 within Sheet1 for the Buy Entry trigger is:

=AND(DATEVALUE($J$41)=DATEVALUE(Sheet2!A1),FRACTIME($J$41)>=FRACTIME(Sheet2!A1),FRACTIME($J$41)<FRACTIME(Sheet2!A1)+5/86400,ROW()=3)

When I copy this formula down, it references cells A2, A3,... within Sheet2 as I'd expect. Using Excel logic, I would anticipate the entries to trigger only when the date and time match those in Sheet2 but for some reason it's triggering a buy entry every day at 08:35 and is ignoring the DATEVALUE condition altogether. If I remove the 'ROW()=3' reference at the end of my formula it then triggers buy entries every day at 08:35, 08:45, and 09:00 and once again ignores the date.

Is there some logic that I'm missing here?

Visit my NexusFi Trade Journal Reply With Quote
  #130 (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 
Is there some logic that I'm missing here?

Use INTDATE instead of DATEVALUE.
And use an absolute reference to the Sheet2 cell. (You won't need ROW()=3.)

=AND(DATEVALUE($J$41)=DATEVALUE(Sheet2!$A$1),FRACTIME($J$41)>=FRACTIME(Sheet2!$A$1),FRACTIME($J$41)<FRACTIME(Sheet2!$A$1)+5/86400)

You could use this shorter version instead:
=AND($J$41=Sheet2!$A$1,$J$41>=Sheet2!$A$1+5/86400)
You don't need to remove the Time with INTDATE, and you don't need to remove the DATE with FRACTIME.

Also, I'd rename the blank sheet to something other than the default Sheet2, because that is the default name associated with Chart2, should this spreadsheet study ever be added to Chart2. Just to be safe, because it would be overwritten.

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