I am having an issue about a simple technical indicator call.
I simply need to load the value of the RSI in a predefined variable. However it seems I am always getting a constant "10" value, as the Comment() function shows me.
Here is the
void OnTick()
{
double rsi = iRSI(_Symbol,PERIOD_CURRENT,14,PRICE_CLOSE);
Comment(rsi);
if(iRSI(_Symbol,PERIOD_CURRENT,14,PRICE_CLOSE) > 70){
Print("up");
}
}

Comment