I try to check MA inside Custom back test proc, and get 0 always. It seems like 
only those stats are accessible and any others are not.

Thanks very much for any help in advance.

Charles

// iterate through all closed trades.
for (trade = bo.getFirstTrade(); trade; trade = bo.GetNextTrade()) {
  numTrades++;

  gapsup = MA(Close, MAlen) > Ref(MA(Close, MALen), -1);

  _TRACE( "MA: " + MA(Close, 6)); 

  if (gapsup = True) {
     upCount++; 
  }
}

Reply via email to