Support Board
Date/Time: Sat, 01 Nov 2025 17:42:18 +0000
Post From: turning a subgraph into a system error
| [2021-02-21 16:18:13] |
| ForgivingComputers.com - Posts: 1150 |
|
You don't need to redeclare Subgraph_Close, etc. You need to use an array index. You are set for manual looping, so you cannot use [sc.Index]. Subgraph_Close[BarIndex] > 300
Also, you should not use sc.Arraysize as an index: Subgraph_Close[sc.ArraySize] = 0;
Arrays are zero-based, so you are pointing to an index that is greater than the last index. You should use Subgraph_Close[sc.ArraySize - 1] to address the last bar on the chart. Fortunately, Sierra Chart protects you from using out-of-bounds indices, so this is technically ok.
|
