Support Board
Date/Time: Sat, 01 Feb 2025 22:49:35 +0000
Help converting Trading Views Pine Script loop into Sierra Chart's ACSIL
View Count: 1682
[2019-08-04 16:19:07] |
jakesans - Posts: 50 |
Teaching myself ACSIL, but having a bit of trouble with loops. My question is in regards to the below loop example from TradingView's Pine Script. I would like to know how to code to Sierra Chart's ACSIL. Is this possible to do using automatic looping or would it need to be set to manual looping? --------------------------------------- float SumC = 0 float Voss = 0 for i = 0 to (Order - 1) SumC := SumC + ((i+1)/Order) * Voss[Order-i] // * Voss[Order-i-1] if bar_index <= Order Voss := 0 else Voss := X2*Filt-SumC ---------------------------------------- |
[2019-08-04 21:30:18] |
Sierra Chart Engineering - Posts: 104368 |
You can do this with an automatic looping ACSIL function. And you just use a standard C 'for' loop to do this: for i = 0 to (Order - 1)
SumC := SumC + ((i+1)/Order) * Voss[Order-i] // * Voss[Order-i-1] 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: 2019-08-04 21:31:12
|
To post a message in this thread, you need to log in with your Sierra Chart account: