Multi-Currency RSI

 

Hi guys.

I am trying to calculate and draw RSI for each currency using RSI value if seven pairs of that currency. But It keeps drawing straight (Horizontal) RSI lines instead of wavy lines.


Can anyone tell me where I am wrong with this code? 

Files:
 
APourfarzaneh:

Hi guys.

I am trying to calculate and draw RSI for each currency using RSI value if seven pairs of that currency. But It keeps drawing straight (Horizontal) RSI lines instead of wavy lines.


Can anyone tell me where I am wrong with this code? 

You have to set buffers of "Pair01-Pair28" in the "OnInit" function.

 
Naguisa Unada:

You have to set buffers of "Pair01-Pair28" in the "OnInit" function.

Thank you so much Naguisa!

Worked perfectly! 

 
Could anybody be so kind and please post the revised/working code..? Have looked at its and have no idea how to do what Naguisa Unada suggested.
Many thanks!
 
TheBeast:
Could anybody be so kind and please post the revised/working code..? Have looked at its and have no idea how to do what Naguisa Unada suggested.
Many thanks!

Add the following in the "OnInit" function.

   IndicatorBuffers(36);
   SetIndexBuffer(8,  Pair01);
   SetIndexBuffer(9,  Pair02);
   SetIndexBuffer(10, Pair03);
   SetIndexBuffer(11, Pair04);
   SetIndexBuffer(12, Pair05);
   SetIndexBuffer(13, Pair06);
   SetIndexBuffer(14, Pair07);
   SetIndexBuffer(15, Pair08);
   SetIndexBuffer(16, Pair09);
   SetIndexBuffer(17, Pair10);
   SetIndexBuffer(18, Pair11);
   SetIndexBuffer(19, Pair12);
   SetIndexBuffer(20, Pair13);
   SetIndexBuffer(21, Pair14);
   SetIndexBuffer(22, Pair15);
   SetIndexBuffer(23, Pair16);
   SetIndexBuffer(24, Pair17);
   SetIndexBuffer(25, Pair18);
   SetIndexBuffer(26, Pair19);
   SetIndexBuffer(27, Pair20);
   SetIndexBuffer(28, Pair21);
   SetIndexBuffer(29, Pair22);
   SetIndexBuffer(30, Pair23);
   SetIndexBuffer(31, Pair24);
   SetIndexBuffer(32, Pair25);
   SetIndexBuffer(33, Pair26);
   SetIndexBuffer(34, Pair27);
   SetIndexBuffer(35, Pair28);
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
 
Nice one! Many thanks. Your help is greatly appreciated.
Reason: