Support Board
Date/Time: Wed, 22 Jan 2025 18:00:55 +0000
Assigning value to syntax statements that are true
View Count: 720
[2018-10-19 16:24:13] |
BLAKE R - Posts: 23 |
Is there a way to assign a value of 1 to a syntax statement that is true? For instance, if I wanted 6 out 10 statements to be true and the total of true statements was >=6 then the condition would be true. EX if SMA with a length of 5 is greater than an SMA with a length of 8 this would equal 1 Thanks |
[2018-10-19 22:36:52] |
Sierra Chart Engineering - Posts: 104368 |
You could use the IF function for this and return a 1: https://www.sierrachart.com/index.php?page=doc/SpreadsheetFunctions.html#IF_Function 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: