Hello, Folks
I just wrote the EA code which for show the rsi(M30) onto the eur/usd chart screen, in order to save more space on the chart. The code as below:
double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_MEDIAN,0);
Comment("RSI: ",DoubleToStr(rsi,0));
However, if I drag the normal rsi indicator onto the chart, the rsi value is real time to update the latest value when the pip up or down. But my above code on the chart, it is only refresh the rsi value when new M30 bar is starting to run. Do I miss something to cause it cannot update like as the normal rsi indicator? Or my method cannot achieve it?
Could you kindly advise me how to get most update rsi value onto the chart? Much thanks!
I just wrote the EA code which for show the rsi(M30) onto the eur/usd chart screen, in order to save more space on the chart. The code as below:
double rsi=iRSI(NULL,PERIOD_M30,14,PRICE_MEDIAN,0);
Comment("RSI: ",DoubleToStr(rsi,0));
However, if I drag the normal rsi indicator onto the chart, the rsi value is real time to update the latest value when the pip up or down. But my above code on the chart, it is only refresh the rsi value when new M30 bar is starting to run. Do I miss something to cause it cannot update like as the normal rsi indicator? Or my method cannot achieve it?
Could you kindly advise me how to get most update rsi value onto the chart? Much thanks!