Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 10:28:09 +0000



Horizontal line that is a percent up/down from yesterday's close

View Count: 1160

[2015-08-06 03:36:12]
Rob_2560 - Posts: 20
Sierra chart

I'm looking for a way to plot a simple line on my chart that would be a horizontal line showing a 1% move up/down from yesterday's close. The market often reacts at these levels and I am trying to figure out how to plot them and just can't...

So if the ES closed yesterday at 2,100 a line would show up for today 1% up at 2,021 and a 1% down line would plot at 2,079.

Thanks
Date Time Of Last Edit: 2015-08-06 03:37:58
[2015-08-06 14:33:49]
Sawtooth - Posts: 4141
Try this:

1) To get the previous day's close, add the Daily OHLC study. You can set the Draw Styles to Ignore of the subgraphs/lines you don't want to see.

2) Add the Study Subgraph Multiply study,
set the Chart Region to 1
set the 'Based On' to the Daily OHLC study,
set the 'Input Data' to Close,
set the 'Multiplier' to 1.01
set the Draw Style to Dash

3) Add the Study Subgraph Divide study,
set the Chart Region to 1
set the 'Based On' to the Daily OHLC study,
set the 'Input Data' to Close,
set the 'Divider' to 1.01
set the Draw Style to Dash
[2015-08-06 17:45:32]
Sierra Chart Engineering - Posts: 104368
The Daily OHLC study needs to have Reference Days Back set to 1.

Using a division is not going to be a precise result.


You can use a combination of Study Subgraph Multiply and Study Subgraphs Difference instead.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2015-08-07 04:06:17
[2015-08-07 02:06:39]
Rob_2560 - Posts: 20
Thanks so much for this answer!

It worked. I like that Sierra Chart has solutions that don't need to be coded into a custom indicator.

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

Login

Login Page - Create Account