Login Page - Create Account

Support Board


Date/Time: Mon, 25 Nov 2024 02:28:40 +0000



Post From: ASCII study coding question

[2024-04-12 19:57:17]
User395175 - Posts: 87
so im still a little bit confused, to achieve my goal, is my below condition right when using autoloop?

if (sc.IsFullRecalculation!=1 && sc.GetBarHasClosedStatus()==BHCS_BAR_HAS_CLOSED {
...
}

Will it only run the code when recent bar close and before new bar added? I want the study only run one time each time a bar closed during bar updating. Should i add some condition to check sc.Index? like sc.Index == sc.ArraySize - 1)