View Single Post
  #2 (permalink)  
Old 09-14-2006, 12:23 AM
Maji Maji is offline
Senior Member
 
Join Date: Mar 2006
Posts: 787
Maji is on a distinguished road
Use the following style:

datetime timeprev=0;


int start()
{

// your code on every tick like trailingstops etc can go here

if(timeprev==Time[0])
return(0);
timeprev=Time[0];

/// your code on new bar goes here

}
Reply With Quote