Support Board
Date/Time: Sat, 12 Jul 2025 09:01:15 +0000
Post From: Reversal Order in ACSIL not getting created with Attached Orders
[2025-07-09 16:42:49] |
User431178 - Posts: 739 |
I was just writing a reply telling you where to find them, but good, you saw it now. Understand that I don't need to do that for every bar in the chart, but likely I need to do it for the last n bars whose average I want correct. Just your change will not be sufficient unless barSize is a persistent variable, correct? Or I store it as another subgraph array.
When you use sc.AutoLoop = true, as you are here, the study is called for every bar on the chart during recalculation, so by using the suggested code (along with your where you compute the average) you will already have the correct values for bar range and average bar range without any need to loop or use persist vars. |