Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 06:12:19 +0000



Candle closing more than 50% of it's size

View Count: 484

[2022-09-27 14:05:10]
User282978 - Posts: 11
Hi
which study I can use to see if old, current candle close is more than 50%/midpoint ? And can I set variable % value instead of 50?
Date Time Of Last Edit: 2022-09-27 14:13:52
[2022-09-27 14:33:04]
John - SC Support - Posts: 36808
We are not sure exactly what the equation is that you want to create, but the Color Bar Based on Alert Condition would be the easiest way to do it. Take a look at the information for how to write Alerts at the following link:
Study/Chart Alerts And Scanning

To give you an example, if you wanted to color the bar when the bar total height (High - Low) is more than twice the size of the Open to Close, then you would write the Alert Formula like the following:
=(H - L) > ABS(2 * (O - C))

Refer to the information for the Color Bar Based on Alert Condition here:
Color Bar Based on Alert Condition
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2022-09-27 16:48:11]
User282978 - Posts: 11
Thanks, I need to create C>=L+(H-L)/2 for green bar, I think this will give me if the bar has closed equal or more than 50% of it's size.
I think i need multiple conditions.
Date Time Of Last Edit: 2022-09-27 17:05:00
[2022-09-27 17:20:17]
User282978 - Posts: 11
just one more thing, can i use and operator i.e c>o and c>(L+h)/2 ?
[2022-09-27 17:32:56]
ForgivingComputers.com - Posts: 971
Thanks, I need to create C>=L+(H-L)/2 for green bar

Think of Alert formulas like Excel formulas that can begin with "=".

So your Alert formula would be:

=C>=L+(H-L)/2

or more simply:

=C>=(L+H)/2

Date Time Of Last Edit: 2022-09-27 17:40:15
[2022-09-27 17:33:04]
John - SC Support - Posts: 36808
You need to use the AND() function. So it would look like the following:
AND(C > O, C > (L+H)/2)
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