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 Sawtooth with 1.7 thanks per post
    2. looks_two aBuzz54 with 1 thanks per post
    3. looks_3 tradermark2009 with 0.5 thanks per post
    4. looks_4 MWG86 with 0.3 thanks per post
    1. trending_up 65,520 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

  #131 (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
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.

Thanks again Tom, got it working.

Visit my NexusFi Trade Journal Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #132 (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
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.

Hi Tom, sorry to bother you again on this. I thought I had everything working but when testing further I think I'm still mis-understanding how the Spreadsheet System works and I haven't been able to find anything in the documentation that clarifies.

In my Sheet2 (re-named to EntryCriteria) tab I want to eventually have a list of 1000 separate date/time combinations for the backtest to run on. The formula I currently have in K3 for my Buy Entry references this list. When I run my backtest it's only executing on the first two date/times in my EntryCriteria list.

Does the Study not iterate through the lines? For example, looks at K3, executes, moves to K4, executes, moves to K5, executes... to K1002? Or would doing what I'm trying to do require me to have an OR formula in K3 that references each of the 1000 lines within my EntryCriteria tab (ie. =OR($J$41=EntryCriteria!$A$1,$J$41=EntryCriteria!$A$2,$J$41=EntryCriteria!$A$3,...$J$41=EntryCriteria!$A$1000)?

Visit my NexusFi Trade Journal Reply With Quote
  #133 (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 
I think I'm still mis-understanding how the Spreadsheet System works

Signals are only generated in row 3 for intrabar entries, or row 4 for close of bar entries. This choice is with the setting 'Signal Only On Bar Close (K,M)'.
https://www.sierrachart.com/index.php?page=doc/SpreadsheetSystemsAlertsAndAutomatedTrading.php


Quoting 
Does the Study not iterate through the lines?

To make the study iterate thru each row on the EntryCriteria sheet, try this:

Use column H on Sheet1:
- In cell H1: =AND(J41>=EntryCriteria!A1,J41<EntryCriteria!A1+5/86400)
- In cell H2: =AND(J41>=EntryCriteria!A2,J41<EntryCriteria!A2+5/86400)
-repeat for each row in column A on the EntryCriteria sheet.
On Sheet1 cell K3:
=OR($H$1,$H$2,$H$3,$H$4,...[repeat for each row in column H] )
Note: I did not test this so I'm not sure how efficient this will be, or if it will cause some lag, especially with 1000 rows.

If you are using Attached Orders and are expecting each target and stop to be associated with its entry, you'll be disappointed. See this thread:
https://www.sierrachart.com/SupportBoard.php?ThreadID=55800

Started this thread Reply With Quote
Thanked by:
  #134 (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
Signals are only generated in row 3 for intrabar entries, or row 4 for close of bar entries. This choice is with the setting 'Signal Only On Bar Close (K,M)'.
https://www.sierrachart.com/index.php?page=doc/SpreadsheetSystemsAlertsAndAutomatedTrading.php


To make the study iterate thru each row on the EntryCriteria sheet, try this:

Use column H on Sheet1:
- In cell H1: =AND(J41>=EntryCriteria!A1,J41<EntryCriteria!A1+5/86400)
- In cell H2: =AND(J41>=EntryCriteria!A2,J41<EntryCriteria!A2+5/86400)
-repeat for each row in column A on the EntryCriteria sheet.
On Sheet1 cell K3:
=OR($H$1,$H$2,$H$3,$H$4,...[repeat for each row in column H] )
Note: I did not test this so I'm not sure how efficient this will be, or if it will cause some lag, especially with 1000 rows.

If you are using Attached Orders and are expecting each target and stop to be associated with its entry, you'll be disappointed. See this thread:
https://www.sierrachart.com/SupportBoard.php?ThreadID=55800

Makes sense now why it wasn't working for me, thank you for the clarification.

I was hoping to expand this to have unique stops/targets attached to the individual buy/sell orders based on volatility conditions that I've calculated so I don't think this is going to work for me.

Thanks again for all your help with this Tom, I really appreciate it and your insight has saved me hours of bungling around. I'll have to see if there's another software solution out there for what I'm trying to do.

Visit my NexusFi Trade Journal Reply With Quote
  #135 (permalink)
luckcity
sydney australia
 
Posts: 44 since Jul 2012
Thanks Given: 26
Thanks Received: 2

Another time related question, Tom
I was using the actual FRACTIME second value, after division, for formulas, like the previous post, and it was working until recently (and still on version 2150)
...you know .000012

Here what was working;
=FRACTIME($J$41)<(FRACTIME(AW3)+(($J$36/2)*.000012))


It would be true until half-way through bar.
And, just confirming, L,N-Z Signal on bar close is No in the speadsheet study.

Is there better way to do this?

Reply With Quote
  #136 (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 better way to do this?

Sorry, I'm not understanding what you want to do.
What is in AW3?
What is 0.000012 ?

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

Those were terms used unsuccessfully for a formula that was true until half-way through bar.
Using $J$36/2 would probably be the only thing kept in a solution you may suggest.
sorry for the confusion, Tom

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

It was the AW3, it works if corrected to A3.
Hadn't noticed it became transposed when moved from another spreadsheet.
Thanks for the added perspective, Tom, you are welcome to simplify if there is another solution.

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

Hi again Tom,

I think the following makes sense

Using sum e.g
= SUM( AB3:AB10 )
an entry candidate is being "kept alive" for 7 bars.

Is there something you have to suggest to substitute for the 10 in that formula (like a variable),
so then a value in the H column can increase or decrease that number of bars

Reply With Quote
  #140 (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 something you have to suggest to substitute for the 10 in that formula (like a variable),
so then a value in the H column can increase or decrease that number of bars

Use something like this:
=SUM(AB3:OFFSET(AB3,$H$1,0))
- where H1 is 7.

This will give the same result as =SUM(AB3:AB10)

Note: The OFFSET function does not include its starting cell in the offset count.

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