Login Page - Create Account

Support Board


Date/Time: Fri, 31 Jan 2025 11:52:55 +0000



Line on alert condition, then eliminate after x bars

View Count: 914

[2019-05-02 20:57:19]
JDMontero - Posts: 34
Hi.

-Is there a way in alert based trading systems, spreadsheets or ACSIL to draw a fixed line in the chart based on a condition and then refer it?? I need to refer to that line to make it a stop. But!, if a trade entry (by other set of conditions) is not signaled after x bars, I need to eliminate that line.

Please advise
JDM
[2019-05-02 21:04:40]
Ackin - Posts: 1865
it's by ACSIL easy ...

Steps to do:
1) condition
2) result condition as value of price to memory (possible as graphics line too)
3) when cross the price then call Flatten

- in other loop is counter of bars and on the end the loop eliminates line
Date Time Of Last Edit: 2019-05-02 21:07:32
[2019-05-03 20:01:05]
Sierra Chart Engineering - Posts: 104368
Refer to:
Using Drawing Tools From an Advanced Custom Study
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to 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