Login Page - Create Account

Support Board


Date/Time: Mon, 24 Feb 2025 15:55:28 +0000



Display line to estimate latent gain

View Count: 535

[2021-03-14 18:19:00]
NicoCola - Posts: 7
Hi,

I have searched the forum and the Sierra Chart menu but I can't find an answer.

I would like to display automatically two lines when i'm on the market. I would like one line to be displayed at +6 and another at +11 regarding my entry price. How can I do this?

I use these lines as guide. Without taking my eyes off the chart, I know what my gain is. For scalping, this is very useful.

Thanks in advance for your help.

Nicolas
[2021-03-15 16:23:39]
John - SC Support - Posts: 38120
There are a number of ways to do this, but the following method will only display the line in the chart where you had the position active.

Add a Trading: Position Average Price study. You can hide this if you want.

Add a Spreadsheet Formula study and add the following for the Formula: =IF(ID1.SG1 > 0, ID1.SG1 + 6 * TICKSIZE, 0). Where ID1.SG1 is the ID and Subgraph of the Trading: Position Average Price study.

Also make sure the option for Draw Zero Values is set to No.

You may want to set the Draw Style for the Spreadsheet Formula to be Line at Last Bar to Left.

The only downside to the above is that for the bars where there was an active trade, you will continue to see the line. You could then hide the study when you are not in a trade, but you then have to remember to show it when you are.

Refer to the following for the Trading: Position Average Price study:
Trading Information Windows: Trade Data Studies

And refer to the following for the Spreadsheet Formula study:
Spreadsheet Formula
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing

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

Login

Login Page - Create Account