I have put together a simple indicator for me that colors a 1min candle when the LinReg4 of a higher time frame is rising or falling. It works but unfortunately too late. With that I mean the 1min candle seems to read the 5min LinReg4 condition only when the 5minutes are up and not when it is in progress. Hope this makes sense. To illustrate this point I have attached a chart image and circled the candles where I would expect a colored candle. Also included in the image is the code I use.
Perhaps someone could review this simple code and advise what I need to change to produce the result I want.
sandman
Comment