ta indicators value

 

hi everybody I have been trying to get the value of technical indicators commented on 2 differant pairs at the time but I seem to have missed something on my way maybe someone could help me out with it.

here is the code

//+------------------------------------------------------------------+
//|                                             Hedge Of Nowhere.mq4 |
//|                                         Copyright © 2010, JuPer. |
//|                                        http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2010, JuPer."
#property link      "http://www.metaquotes.net"
double a_101;
double a_102;
double m_101;
double m_102;
string p_101 = "GBPJPY";
string p_102 = "USDJPY";
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
      CalculateInd();
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

void CalculateInd()
   {
      a_101 = iATR(p_101,4,25,0);
      a_102 = iATR(p_102,4,25,0);
      m_101 = iMA(p_101,4,25,0,MODE_SMA,PRICE_OPEN,0);
      m_102 = iMA(p_101,4,25,0,MODE_SMA,PRICE_OPEN,0);
      Commenting();
   }
   
void Commenting()
   {   
      Comment("\n"," Pair 1 atr: " ,a_101,
      "\n", " Pair 1 MA: " ,m_101,
      "\n", " Pair 2 atr: " ,a_102,
      "\n", " Pair 2 MA: " ,m_102);
   }
 

Timeframe 4 does not exist :)

a_101 = iATR(p_101,4,25,0);
a_102 = iATR(p_102,4,25,0);
m_101 = iMA(p_101,4,25,0,MODE_SMA,PRICE_OPEN,0);
m_102 = iMA(p_101,4,25,0,MODE_SMA,PRICE_OPEN,0);

Reason: