Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 04:35:05 +0000



Copy values from one chart to another / sticky alerts

View Count: 328

[2023-12-26 01:23:52]
masedi - Posts: 40
Hi All,

- I have a 1 sec candlestick chart with numbers bar on which I do some calculations and then color the bar where the condition is met
- I have another 10T range bar chart in the same book on which I also want to color the bar based on the same condition

- I came across the following study where this example is mentioned:
Study Overlay - OHLC (Open, High, Low, Close)

The Study Overlay - OHLC study has another useful purpose and that is to copy the results of the Color Bar Based on Alert Condition study when used on chart bars of a shorter time frame to chart bars of a higher timeframe.

- After hours of trying I am not able to figure it out

Can someone explain the high level steps on how to achieve that?

In other words, the only thing I want to do is to use the FALSE/TRUE value from the alert condition in the first chart, and vopy it in some way or another to the second chart where i would use the Color bar study again.

Regards
[2023-12-27 16:31:18]
John - SC Support - Posts: 36286
Since your Range chart may contain multiple bars from the 1 second chart, you can not get an exact match for this. The Study/Price Overlay is going to use the Input value for "Data Copy Mode" to determine which bar will be matched up between the charts. Refer to the following:
Study/Price Overlay Study: Data Copy Mode

You can try to recreate the alert on the range chart, but depending on what you are wanting, it may not be exactly what you want.

The only way to do this fully would be to create a custom study to do what you want. Refer to the following:
Advanced Custom Study Interface and Language (ACSIL)

https://www.sierrachart.com/index.php?page=doc/SierraChartStudyAndSystemProgrammers.php
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-12-27 17:12:15]
masedi - Posts: 40
Hi John,

I was able to copy the alert value from the 1s chart to the range chart using OHLC Overlay and display the color bar (arrow) on the range chart correctly.... But only temporary:)

The issue I am having now is that as soon as the 1s chart moves to the next bar the alert condition turns back to 0 and the arrow disappears in the range bar which is still on the same bar like it was when the alert was triggered the first time.

So the challenge now is how to configure a "sticky" alert on that range bar until it closes:
-when alert = True is triggered display the arrow
- when alert goes back to false, but if I am still within the same bar, then ignore the false value and keep the arrow there
- when the bar closes the alert condition is reset anyway and no alert is displayed by default on the new bar

I tried all different combinations of : alert only once per bar and reset alert at new bar and behavior remained the same.

Any suggestions how to achieve this alert stickiness?


Or is there another study that can just print a value on the chart at a certain level once an event is triggered and then it just leaves it there without re-evaluation?
Date Time Of Last Edit: 2023-12-27 17:16:27
[2023-12-27 17:39:33]
John - SC Support - Posts: 36286
As we said before, from what we understand, the only way to do this would be to create a custom study.
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2023-12-28 01:52:06]
masedi - Posts: 40
Hi John,

I was able to find a study in which can "lock" a alert value as it happens and keep it stored even if the alert value changes back to 0.

So now I can keep the arrow on the range bar while the 1s bar changes to a new bar and resets the alert to 0.

The last step now would be: how to release the "locked" variable when the new range bar starts.

Which study / SG can I use to indicate that a range bar has closed and/or a new range bar has started?

I want to use that event to release the "locked" value displaying the arrow on the range chart at the end of the current range bar / beginning of the new range bar.

Thanks
Date Time Of Last Edit: 2023-12-28 02:15:52
[2023-12-28 15:32:55]
John - SC Support - Posts: 36286
The only thing we can point you to is the following:
Spreadsheet Studies Special Tasks: Locking the State of a One Time Condition
For the most reliable, advanced, and zero cost futures order routing, use the Teton service:
Sierra Chart Teton Futures Order Routing
[2024-01-03 15:33:59]
masedi - Posts: 40
Hi all,

I found a very useful variable-locking custom study available in SST free bundle in case someone needs it:
https://www.simplesystemtrading.com/

study names:
- Set and unset Study SG.
- Set Study SG
Date Time Of Last Edit: 2024-01-03 15:34:53

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

Login

Login Page - Create Account