Hi guys, someone could tell me why the following code doesn’t work? once cbidx=-1 once orsi=-1 once crsi=-1 once lrsi=-1 once hrsi=-1 curr = rsi[period](close) if BarIndex = cbidx then crsi = curr if curr>hrsi then hrsi = curr elsif curr<lrsi then lrsi = curr endif else cbidx = BarIndex orsi = curr crsi = curr hrsi = curr lrsi = curr endif if crsi>orsi then drawcandle(orsi,hrsi,lrsi,crsi) coloured(0,200,0) else drawcandle(orsi,hrsi,lrsi,crsi) coloured(200,0,0) endif RETURN 20 as "20", 80 as "80" It was supposed to graph rsi as candlestick, instead it only graphs a single dash of current value. I didn’t expect it to work in already completed bars (because I imagine for that bars only ohlc are available), but I don’t understand why it doesn’t work in real-time bars. Thanks, Alberto