CalculateOnBarClose = true;
Still, in real-time it is slow so I have to close it.
It makes sense why because on each OnBarUpdate() whether its 5 min or 15 min, it is called until the end of the session. Seems inefficient since it never changes.
I want it to draw once at 10 AM.
I was reading up OnStartUp() but it is not exactly clear.
protected override void OnStartUp()
{
// Set any variables or logic you wish to do only once at start of your indicator/strategy
}
When exactly does it run?
Would it work at 10 AM if my session starts at 8 or 9 AM?
Comment