I have been able to reset my private integer count every session but I am looking to reset my count weekly at the end of each Friday close or at the beginning of each Sunday open. How would one go about doing so?
I currently have:
if (Bars.IsFirstBarOfSession && IsFirstTickOfBar)
{
upCount = 0;
downCount = 0;
}
And this works but I have my indicator resetting around 10pm candle each night (MST) (indicator parameters considered).
Any help would be greatly appreciated.
Thank you.

Comment