Login Page - Create Account

Support Board


Date/Time: Wed, 15 Jan 2025 15:20:18 +0000



Post From: Standard Deviation of Return on Bar

[2015-09-03 06:22:00]
Acro - Posts: 441
Hi,

I'm trying to customize the Standard Deviation indicator code so it shows me each bar’s return as a standard deviation of the last 20 bars’ returns.

By return of this bar I simply mean Close of this Bar minus the Close of the Previous Bar

I just want to understand how I express Close - [Close - 1] as an array for ACSIL purposes/syntax.

Forgive my ignorance on ACSIL as I have only done very minor customisation of code within Sierra so far.

Thank you for any pointers you have