Profile Picture

YahooDataService RetrieveData method

Posted By vanSant Last Year
Message
Posted Wednesday March 02 2016
Hi,
for me this part of code makes no sense:

List<BarData> bars = new List<BarData>();
if ((bars.Count >= 2) && (bars[0].BarStartTime == bars[1].BarStartTime)) // when last day bar is duplicated
    {
        bars.RemoveAt(1); // removing bar at index 1 (bars are reversed), bar at index 0 better reflect price changes during the day
    }

since bars.Count is always zero.
Pawel

Posted Sunday March 13 2016
You're right, that code does nothing.  I've removed it.

Thanks,
Daniel


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems