Login Page - Create Account

Support Board


Date/Time: Wed, 22 Jan 2025 18:11:27 +0000



Post From: keyword/sierra condition for autotrading/alert

[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)