Aşağıdaki iki yöntemide denedim. 30 dk USD hata alıyorum INdex was out of range
var CloseCountDown1 = GetSelectedValueFromBarData(barData,OHLCType.Close,1);
var CloseCountDown2 = GetSelectedValueFromBarData(barData,OHLCType.Close,2);
var CloseCountDown3 = GetSelectedValueFromBarData(barData,OHLCType.Close,3);
var CloseCountDown4 = GetSelectedValueFromBarData(barData,OHLCType.Close,4);
// var CloseCountDown1 = Instrument.SymbolBarData.Close[currentBar -1];
// var CloseCountDown2 = Instrument.SymbolBarData.Close[currentBar -2];
// var CloseCountDown3 = Instrument.SymbolBarData.Close[currentBar -3];
// var CloseCountDown4 = Instrument.SymbolBarData.Close[currentBar -4];