Support Board
Date/Time: Sun, 22 Dec 2024 05:35:06 +0000
[User Discussion] - Acsil Question how to place data points scattered throughout an array into a new static array T
View Count: 829
[2015-07-19 19:34:57] |
enemyspy - Posts: 306 |
Hi, Presently working on something that pulls data points from an array and lists them sequentially like what is below. I am trying to actually make it viewable on a spreadsheet using a sub graph. Currently using auto-looping. Is there a way to do this with auto looping and or Manual looping? Array 1 X X 1 X x x 2 X int counter=sc.ArraySize;
if(sc.Index==sc.ArraySize-1) for(int i = sc.Index; i>0;i--) { if(Array1[i] >0) { counter = counter-1; Array2[counter] = Array1[i] } } This leaves me with the following correct result on a fresh recalculate: Array2 1 2 The problem is because the Subgraphs update on every new bar during replay or realtime I end up getting this: Array2 1 1 1 2 So is there a way to modify the above code to force the Subgraph Array2 to update independent from the basedata? If not would it work statically with an SCFloatArray? Date Time Of Last Edit: 2015-07-19 19:43:11
|
To post a message in this thread, you need to log in with your Sierra Chart account: