Hi FF Guru's...
I'm a newbie at MQL4 coding and came across this issue where the chart details Data Window doesn't match the Journal output data for the RSI indicator.
I've been going around in circles for couple of days trying to find the answer to no avail.
This is my code below to try and capture the RSI value
Please see the attached picture with the sections highlighted in yellow.
Hoping someone will know the answer
I'm a newbie at MQL4 coding and came across this issue where the chart details Data Window doesn't match the Journal output data for the RSI indicator.
I've been going around in circles for couple of days trying to find the answer to no avail.
This is my code below to try and capture the RSI value
Inserted Code
bool NewBar() { static datetime lastbar; datetime curbar=Time[0]; if(lastbar!=curbar) { lastbar=curbar; return (true); } else { return(false); } } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { if( NewBar() && Period()==5) { Alert(NormalizeDouble(iRSI(Symbol(),0,14,2,0),2);); } }
Please see the attached picture with the sections highlighted in yellow.
Hoping someone will know the answer