public bool BreakOvHigh()
{
if(_OpeningRange.PreSessionHigh[0] < _RegularSessionRange.OpeningRangeHigh[0])
{
return true;
}
return false;
}
if(ToTime(Time[0]) == 161500) {BreakOvHigh();}
Я должен был запустить if statment (код выше) внутри функции File.AppendAllText. Как я могу это сделать?
File.AppendAllText(path, Time[0] + ";"
+ High[0] + ";"
+ Low[0] + ";"
+ Open[0] + ";"
+ Close[0] + ";"
+ Volume[0] + ";"
/*+ _CurrentDay.CurrentHigh[0] + ";" + _CurrentDay.CurrentLow[0] + ";" + _CurrentDay.CurrentOpen[0] + ";" + PriorDayOHLC().PriorHigh[0].ToString() + ";" + PriorDayOHLC().PriorLow[0].ToString() + ";" + PriorDayOHLC().PriorOpen[0].ToString() + ";" + PriorDayOHLC().PriorClose[0].ToString() + ";" */
+ _ASIARegularSessionRange.PreSessionHigh[0].ToString()
+ ";" + _ASIARegularSessionRange.PreSessionMid[0].ToString() + ";"
+ _ASIARegularSessionRange.PreSessionLow[0].ToString() + ";"
+ _OpeningRange.PreSessionHigh[0].ToString() + ";" + _OpeningRange.PreSessionMid[0].ToString() + ";"
+ _OpeningRange.PreSessionLow[0].ToString() + ";" + _OpeningRange.OpeningRangeHigh[0].ToString() + ";"
+ _OpeningRange.OpeningRangeMid[0].ToString() + ";"
+ _OpeningRange.OpeningRangeLow[0].ToString() + ";"
+ _RegularSessionRange.OpeningRangeHigh[0].ToString() + ";"
+ _RegularSessionRange.OpeningRangeMid[0].ToString() + ";"
+ _RegularSessionRange.OpeningRangeLow[0].ToString() + ";"
+ _VWAPValue.VWAP[0].ToString() + ";"
+ if(ToTime(Time[0]) == 161500) {BreakOvHigh();} /*+ ";"
+ PlotsIndi1_Values + ";"
+ PlotsIndi2_Values */ + Environment.NewLine);