Support Board
Date/Time: Tue, 26 Nov 2024 07:22:53 +0000
Add Additional Symbol
View Count: 328
[2023-12-31 14:12:07] |
User585104 - Posts: 142 |
Hi, I am using the Add Additional Symbol study, is there a way to limit the number of bars this draws? So I only want to see the most recent 10 bars. Additionally, is there a way to create an alert if the most recent closed bar on the main chart is the same colour as the most recent closed bar on the additional symbol and/or the opposite colour? Thank you Date Time Of Last Edit: 2023-12-31 19:56:52
|
[2024-01-02 14:21:11] |
John - SC Support - Posts: 36286 |
If you are using the "Add Additional Symbol" study on an historical chart (daily and higher timeframe) then you can use the Input for "First Date to Load". Refer to the following: Add Additional Symbol: First Date to Load Otherwise, there is not a way to control the number of days loaded. An alert can be created for what you are asking about. Refer to the following for alerts to create what you want: Study/Chart Alerts And Scanning: Available Main Price Graph Identifiers/Variables Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart Study/Chart Alerts And Scanning: Writing Formulas Based On Color Settings For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-01-02 14:25:11] |
User585104 - Posts: 142 |
Thanks
|
[2024-01-04 09:08:08] |
User585104 - Posts: 142 |
Hello John, So I have read the links regarding the alerts numerous times but I am completely lost. Is there a possibility you could point me further in the right direction? What I am trying to set up is an alert if the most recent bar on the main chart is the opposite colour of the most recent closed bar on the additional symbol. From what I can gather it would not be based on the colour but on whether the bars closed higher or lower than the previous bar but further than that I have no clue where to start. I understand you're busy on more pressing matters but if you have the time I am sure I can figure it out if you could possible start me off? Thank you |
[2024-01-04 16:11:58] |
John - SC Support - Posts: 36286 |
By default, the bar Up/Down coloring is done by whether the current price is above the Open (Up) or below the Open (Down). But this can be changed by the setting for "Global Settings >> Graphics Settings >> Other >> Up/Down Coloring for OHLC Bars Based on Previous and Current Close". If you have not changed the default, then part of the alert condition for when the Main Price Graph is an Up bar and the Add Additional Symbol is a Down Bar, would look like the following: =AND(ID0.SG4 > ID0.SG1, ID1.SG4 < ID1.SG1) Where ID1 is the ID of the Add Additional Symbol Study, so you would need to change this for your particular setup. ID0 refers to the Main Price Graph, so this does not change. You would have to expand this out for the other condition using an OR statement, or if you are using a study like the "Color Bar Based on Alert Condition" then you may want to have another copy to give a different color when the opposite condition is true. For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing |
[2024-01-04 16:38:05] |
User585104 - Posts: 142 |
I got it, cool thanks!
|
To post a message in this thread, you need to log in with your Sierra Chart account: