Thread: quick question
View Single Post
  #8 (permalink)  
Old 03-30-2006, 02:02 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Arrow

Quote:
Originally Posted by intelligent_14
I prefer to use this solution for finding new Bars

HTML Code:
bool NewBar()
  {
  static datetime LastTime;
  if (LastTime != Time[0])
    {
    LastTime = Time[0];
    return(true);
    }
  return(false);
  }
it's seems to be shorter
Yes this is good one!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Reply With Quote