Here is my Cumtick code for TOS.
Use symbol $tick and uncheck "Show Price Subgraph"
See attachment for settings and for screen capture of an example.
Code:declare lower; rec ct = ct[1]+close; plot cum = ct; plot cum600 = average(cum,600); plot cum390 = average(cum,390); plot cum195 = average(cum,195); cum600.setDefaultColor(color.red);; cum390.setDefaultColor(color.orange); cum195.setdefaultColor(color.green);