if (Time[0].TimeOfDay == MyDateTime.TimeOfDay) {
// Do something
}
This doesn't work. I guess because if the chart is OnBarClose, a particular bar might not close at exactly MyDateTime.
So is the best way to do it like this?
if ((Time[0].TimeOfDay >= MyDateTime.TimeOfDay) && (MyVar = false)) {
// Do something
myVar = true;
// Then later reset the myVar back to false.
}
Or something similar ?

Comment