Support Board
Date/Time: Sat, 15 Mar 2025 15:38:07 +0000
Post From: Update previous drawing in study when doing AutoLooping
[2022-07-10 22:08:39] |
Thang N - Posts: 11 |
Hi, I'm working on a study to automate drawing some support / resistance zone base on certain criteria. My zone are drawn by using DRAWING_RECTANGLE_EXT_HIGHLIGHT. I have AutoLooping = 1 and it runs fine when the chart is not updating live. The problem I run into is I don't know how to access / modify previous drawn zone once the chart is updating live. As far as I understand, AutoLooping would run the study on all the bars from index 0 to ArraySize-1, so say if there are 100 bars, then we run the study from bar 0 to bar 99. Then when the new bar is added when we running live, the study is run for the bar 100 and keep going forth, not re-run from bar 0 to 99, right? Please let me know how I can access previous drawings of bar 0 to 99 when we're updating live. Thank you. |