Login Page - Create Account

Support Board


Date/Time: Sun, 09 Mar 2025 01:31:46 +0000



Spreadsheet Formula

View Count: 676

[2022-02-20 03:59:40]
User483852 - Posts: 16
Hello, is there a way to reference the entry bar in the Spreadsheet formula study?
Currently, this is available in the Spreadsheet Study, but I am unable to achieve it in the Spreadsheet Formula Study.
[2022-02-21 14:55:21]
John - SC Support - Posts: 38516
Sorry, but we are not understanding what you mean exactly by "Entry Bar". Do you mean the Open of a bar, or a specific bar in the chart?
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-02-22 15:36:49]
User483852 - Posts: 16
By entry bar - I meant the bar in which the order was filled as shown in the attached screenshot.
imageFor Sierra Chart Support.JPG / V - Attached On 2022-02-22 15:36:01 UTC - Size: 42.25 KB - 150 views
[2022-02-23 16:08:42]
John - SC Support - Posts: 38516
There is not a way to get at that information directly. You would have to use the Spreadsheet System for Trading to get the information and then get what you need out of that Spreadsheet. Refer to the following:
Spreadsheet Systems, Alerts and Automated Trading
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-02-23 20:12:32]
Sawtooth - Posts: 4181
is there a way to reference the entry bar in the Spreadsheet formula study?
You could add the Trading: Position Quantity study and find the bar with a change in quantity with the Spreadsheet Formula study, then have it return a value at that bar. Like this:
=IF(ID1.SG1<>ID1.SG1[-1],C,ID5.SG1[-1])
This returns the persistent Close price of the bar where the entry was made, until flat where it goes to zero.
where ID1 is the Trading: Position Quantity study
and ID5 is the Spreadsheet Formula study

Or you could add the Trading: Position Average Price study use it's price output as the persistent entry price, until flat where it goes to zero.
[2022-02-23 23:37:40]
User483852 - Posts: 16
This is brilliant tombilb. As always you are wonderful !

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account