private method_4 ( Instrument instrument_1 ) : double | ||
instrument_1 | Instrument | |
Результат | double |
private double method_4(Instrument instrument_1)
{
Trade trade_ = instrument_1.Trade;
if (trade_ != null)
{
return trade_.Price;
}
Bar bar_ = instrument_1.Bar;
if (bar_ != null)
{
return bar_.Close;
}
return 0.0;
}