Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 17:30:37 +0000



Post From: How can I reference Moving Average in the ALERT

[2020-01-04 04:15:46]
Ackin - Posts: 1865
do I need to create two different studies?
No... the inputs can be the same they are two different storages

Descriptions for this study:
Study Subgraphs Subtract/Difference


The values from input 1 are stored in array1
The values from input 2 are stored in array2



result = array1[current bar] - array2[current bar - offset]




btw.
How would I plot, say, "close x bar(s) ago"
look on attached file, I did this as universal solution for: Referencing prior bars in Studies


more info:
Ackin's indicators (SCH users requests for studies) - Update list | Post: 175860
Date Time Of Last Edit: 2020-01-04 04:29:59
imageimage_3726.png / V - Attached On 2020-01-04 04:26:07 UTC - Size: 15.27 KB - 236 views