Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jan 2025 15:01:51 +0000



keyword/sierra condition for autotrading/alert

View Count: 606

[2018-10-05 12:08:17]
User525733 - Posts: 126
Hi,

Is there a keyword/builtin SC function similar to "crossfrombelow" that checks whether two curves get close to each other without actually crossing and returns "true" ?

where can i find a list of all SC keywords similar to "crossfrombelow" ?

thanks
[2018-10-05 18:23:00]
Sierra Chart Engineering - Posts: 104368
In regards to the functions which can be used with Simple Alert formulas and Spreadsheets, refer to:
Spreadsheet Functions
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
[2018-10-08 23:24:13]
User748203 - Posts: 1
Is there a keyword/builtin SC function similar to "crossfrombelow" that checks whether two curves get close to each other without actually crossing and returns "true" ?

You can subtract the two and check to see if the absolute value of the difference is within your margin that defines "close to each other".

Suppose the two curves are ID1 and ID2, and you want to see if they are within 1.5 points of each other:

=if(abs(id1.sg1@3-id2.sg1@3)<1.5,1,0)

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

Login

Login Page - Create Account