@halcyonguy : I mean like, RTH Start and End of any ticker. I haven't checked from a different timezone, but are you saying that $AMD, for example, would have different RTH Start/End in UK vs US and so the RegularTradingStart/End fx wouldn't work? Btw, thanks for the link to the other study (appreciate you taking time to comment the blocks of code too).
@SleepyZ : that's PERFECT! just one other thing, say I want to end the cloud 60 mins past RTH Start (instead of specifying the end time), how would I go about doing that? the following line doesn't work and it's probably because of the reason you mentioned.
def toPaint = GetTime() => RegularTradingStart(GetYYYYMMDD()) and GetTime() <= RegularTradingStart(GetYYYYMMDD()) + (60*60*1000) ;
Edit: one more question. is there a way to prevent clouds from drawing in future/extended area on the right?