I'm trying to get the open price for the year. I have the below code that I thought would work but its not. What am I doing wrong? Suggestion? Thanks
moment = Times[1][0]; moment2 = Times[2][0]; int day = moment.Day; int month = moment.Month; if(day == 1 && month == 1) { d = CurrentDayOHL(BarsArray[1]).CurrentOpen[0]; } int day2 = moment2.Day; int month2 = moment2.Month; if(day2 == 1 && month2 == 1) { e = CurrentDayOHL(BarsArray[2]).CurrentOpen[0]; }
Comment