Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 00:16:26 +0000



[User Discussion] - Shading the area between two lines.

View Count: 2373

[2019-12-13 12:16:21]
mbilyanov - Posts: 62
Hi,

I know this is very simple and I have followed the instructions here:
background color between two study lines


based on this question here:
background color between two study lines

But for some reason, I can't get it working.

As you can see in the image(s), I have one green and one red line. They are just horizontal lines with constant values -20 and -80. I would like to fill the area in between with a transparent shade. I have the subgraph that is supposed to fill Bottom and Top based on those two lines, but I couldn't get it to work.

Thanks in advance.
Date Time Of Last Edit: 2019-12-13 12:21:53
imageq1.jpg / V - Attached On 2019-12-13 12:13:48 UTC - Size: 237.47 KB - 455 views
imageq2.jpg / V - Attached On 2019-12-13 12:13:52 UTC - Size: 338.87 KB - 375 views
[2019-12-13 13:40:17]
Ackin - Posts: 1863
Just transparent settings
imagecrrr.png / V - Attached On 2019-12-13 13:39:38 UTC - Size: 81.75 KB - 307 views
[2019-12-13 13:44:27]
Ackin - Posts: 1863
You can also use any Draw Style Top/Bottom pair.
Chart Studies: Filling the Area Between Two Study Subgraphs within Different Studies

Note
If you did the studies yourself, put them in one
[2019-12-13 14:38:06]
mbilyanov - Posts: 62
This is just my own study, it is in chart region 5
I have the following:

1) Willim %R
2) William %R (MA)
3) The blue line for the top limit (at -20) => A Horizontal Line Study (Line 1) <ID:13>
4) The red line for the bottom limit (at -80) => A Horizontal Line Study (Line 1) <ID:14>

I'm just trying to shade the area between the two lines. No matter what I tried, it is not working. I cannot find the way to do `-20 < X < -80`

so the area that is only between the two lines is shaded?!

I got the inverse working. But not the area that I need.
Date Time Of Last Edit: 2019-12-13 14:39:20
imageIMG_0504.jpg / V - Attached On 2019-12-13 14:37:58 UTC - Size: 409.92 KB - 317 views
[2019-12-13 15:04:01]
mbilyanov - Posts: 62
I have achieved (hacky way and not very elegant) the look I'm after but using:

1) Top Mask (Makes everything above -20 black.
2) Bottom Mask (Makes everythin below -80 black.
3) Then two fills to overlap and highlight the are between -20 and -80.

A bit of an overkill and not elegant :(
imageq3.jpg / V - Attached On 2019-12-13 15:03:40 UTC - Size: 1.15 MB - 325 views
imageq4.jpg / V - Attached On 2019-12-13 15:03:45 UTC - Size: 422.15 KB - 344 views
[2019-12-13 15:25:47]
Ackin - Posts: 1863
again ... It can't be two studies, I wrote it above
[2019-12-13 15:30:02]
Ackin - Posts: 1863
Try this:
imagecrrr 2.png / V - Attached On 2019-12-13 15:29:41 UTC - Size: 93.35 KB - 435 views
[2019-12-13 15:44:44]
mbilyanov - Posts: 62
This worked! Beautiful! Thank you very much!
imagew1.png / V - Attached On 2019-12-13 15:44:28 UTC - Size: 11.42 KB - 337 views
imagew2.png / V - Attached On 2019-12-13 15:44:32 UTC - Size: 7.23 KB - 257 views

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

Login

Login Page - Create Account