Code Library / Indicators

MTF RSI Confluence

Multi-timeframe RSI confluence checker.

Language: MQL5 · Category: Indicators · Tags: RSI, multi-timeframe, MQL5

Source code

double GetRSI(ENUM_TIMEFRAMES tf){
   int h=iRSI(_Symbol,tf,14,PRICE_CLOSE);double b[];
   ArraySetAsSeries(b,true);CopyBuffer(h,0,0,1,b);
   IndicatorRelease(h);return b[0];
}

How to use this snippet

This is a building block, not a finished trading system. Paste it into your own MQL5 project, compile it, and test it on a demo account with your broker's real spreads before relying on it. If MetaEditor reports errors, the compilation error fixer can help.

Related snippets