//+------------------------------------------------------------------+ //| ea_symr_newBar.mq4 | //| Version: 1.1 | //+------------------------------------------------------------------+ #property copyright "Copyright © 2011, Symr" #property link "" #define MAX 9 //+------------------------------------------------------------------+ int curIndex; datetime times[MAX]; //+------------------------------------------------------------------+ int start; int init () { curIndex = utils.periodToPeriodIndex(Period()); times[curIndex] = Time[0]; for(int i=curIndex+1; i