Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 13:03:39 +0000



[Programming Help] - Advances Declines

View Count: 591

[2018-07-01 05:49:32]
User28682 - Posts: 233
Im trying to take the difference between SP 500 advances - SP500 declines, then sum up the last 5 days of this difference. Do you have an idea how this can be done a shorter way other than this?

(ADV-SP) - (DECL-SP) =day1
(ADV-SP[1]) - (DECL-SP[​1​]) =day2
(ADV-SP​[2]​) - (DECL-SP​[2]​) =day​3​
(ADV-SP​[3]​) - (DECL-SP​[3]​) =day​4​
(ADV-SP​[4]​) - (DECL-SP​[4]​) =​​day​5​

(day​​1 + ​day​2 + ​day​3​ + ​day​4 + ​day​5​) = "X"

Then plot "X"


Thank you!!
Date Time Of Last Edit: 2018-07-02 21:18:15

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

Login

Login Page - Create Account