Login Page - Create Account

Support Board


Date/Time: Sat, 18 May 2024 20:20:48 +0000



Post From: Persisitent variables and DateTime Variables

[2019-02-21 06:30:50]
lightbeckons - Posts: 11
Thank you for the reply. I am in fact working with dynamic memory, but then how do i clear the dynamic array at the close of the daily candle. I am not able to achieve this even with the persistent variables i mentioned in (1). I want to clear whatever data im storing in the persistent variables and dynamic memory at the close of a daily candle (the chart is ofcourse daily).
I would greatly appreciate an help regarding this. There seems to be no specific trigger that is, firstly triggered only once at the close of the day during all the update calls, and secondly, should reinitialize the structures at the updated start index to begin fresh recording of day's data. I am trying this with manual looping, auto-looping and have tried out many functions as trigger but unsuccessfully.

I may add that this has been requested before:ACSIL - UDP request for resetting Persistent Variables re sc.SetDefaults but no viable solution seems to exist. I think i have gone through almost every one of your functions and variables to somehow trigger this clearing of persistent variables.

thanks in advance
Date Time Of Last Edit: 2019-02-22 07:06:08