Support Board
Date/Time: Tue, 26 Nov 2024 13:32:41 +0000
How to Add a Swing High/Low to another condition for
View Count: 422
[2023-12-04 01:32:57] |
User68474 - Posts: 201 |
I already have the SC default study "Swing High and Low" on my chart. I have one other simple condition that I'd like to combine it with ("=and", I guess) in order to Color Bars if/when both conditions are met. I don't know how to reference "Swing High or Low" from Study ID1(the previously stated SC Study I already have on my chart). I imagine it has something to do with the Swing High/Low condition from ID1 being "True", but don't have the slightest idea how to reference it. Any advice out there. It should be simple, I think, but I've forgotten a lot of the Formula/Conditions, etc. basics. Thank you.
|
[2023-12-04 16:33:53] |
John - SC Support - Posts: 36286 |
The "Swing High and Low" study has 2 main subgraphs - "Swing High" and "Swing Low". Each of these will be a non-zero (true) value when/where the arrow is printed on the chart (Arrow Down for Swing High, Arrow Up for Swing Low). Therefore, in order to test if a bar has a Swing High, you would use a formula like the following: =ID1.SG1 Where ID1 is the ID of the Swing High and Low study and SG1 is the Swing High subgraph. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2023-12-04 19:52:49] |
User68474 - Posts: 201 |
Thanks, John. Yes, I've already been messing around with ID#(Swing High and Swing Low).SG1 or 2, to no avail. I don't think I articulated what I'm trying to do very well. Let me try to explain it better, all the while trying to keep it simple: I'd like to color a bar if it satisfies 2 conditions: #1.) If it is a Swing High or Swing Low based upon the default SC Study, and 2.)some other condition. For example, that second condition could be as basic as (H-L<=x), or other simple conditions that I might choose. Basically, how do I add the first condition to another condition in a =and(condition #1,condition #2) format ?? I've been able to color the bar based on single conditions alone, but don't know how to add the condition #1. |
[2023-12-04 20:10:56] |
User68474 - Posts: 201 |
Just got it, John. Sorry for my "dense", brain-fog slow comprehension. I didn't realize I could just simply add "ID#(Swing High/Low Study).SG1 or 2"(all alone, no "=" preceding, unless it was just a stand-alone single condition) and then "," and then condition #2 all within the "=(,)" format.
|
[2023-12-05 15:39:28] |
John - SC Support - Posts: 36286 |
Hopefully you have this working now, but be aware of how the AND() and OR() functions work for an Alert. Refer to the following: Study/Chart Alerts And Scanning: OR and AND Functions 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: