I'm hoping someone here can help. I'm attempting to compose an indior that will tell me just how much time is remaining in a candle.
But I can not figure out if I'm getting the right data. I get some amount that I can not translate into moments.
I'm attempting this on a 4hr chart (backtesting. Which, for something that needs to be so straightforward, ought to be simple to do).
Inserted Code #property indior_chart_window int init() return(0); int deinit() return(0); int begin() int counted_bars=IndiorCounted(); int limit; if(counted_barslt;0) return(-1); datetime varLeft; limitation=Bars-counted_bars-1; for(int shift=0; shiftlt;limit; shift ) varLeft=TimeCurrent()-Time#91;shift#93;; Comment(varLeft, minutes left till end of bar); return(0);