Buy = Sell = 0;

barDates = DateTime();

for (i = 0; i < BarCount; i++) {
   barDate = barDates[i];
   _TRACE("Date of bar " + i + " is " + NumToStr(barDate, formatDateTime)
+ ", Close is " + Close[i]);
}

Mike


--- In [email protected], "haiguise" <haigu...@...> wrote:
>
> I am trying to create a loop, that loops thru all the prices, Gets The
Date of Each Bar and the closing price. How would I do that. Thanks
>
> for(i=0;i<BarCount;i++)
> {
> //How do i get the Date?
> }
>


Reply via email to