Login Page - Create Account

Support Board


Date/Time: Sat, 28 Dec 2024 07:29:31 +0000



code help

View Count: 977

[2016-01-12 14:51:16]
User28914 - Posts: 87
We try to transfer all Trade station strategy to Sierra . We have couple of question.

My guys work some small strategy on sierra as below , how to filter
the last (ID5.SG1>=ID8.SG1 with a DISTANCE on croos for ES
=AND(CROSSFROMBELOW(ID1.SG1,ID4.SG1),(ID5.SG1>=ID8.SG1),C>C[-1])
[2016-01-12 17:47:01]
Sierra Chart Engineering - Posts: 104368
What is meant by "distance on cross"?
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
[2016-01-14 14:53:05]
User28914 - Posts: 87
Example.....when an RSI crosses through 20 or 80.
[2016-01-14 18:14:35]
Sierra Chart Engineering - Posts: 104368
Here is the formula provided and a new part in bold which has what you requested:

=AND(CROSSFROMBELOW(ID1.SG1,ID4.SG1),(ID5.SG1>=ID8.SG1),C>C[-1], OR(CROSSOVER(ID10.SG1,20), CROSSOVER(ID10.SG1,80)) )

Change ID10 to the ID number of the RSI study. Here is the relevant documentation for that:
https://www.sierrachart.com/index.php?page=doc/doc_StudyChartAlertsAndScanning.php#ReferencingOtherStudies
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
Date Time Of Last Edit: 2016-01-14 18:17:50

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

Login

Login Page - Create Account