Bursa adalah pelbagai objek pertukaran, yang mengandungi semua objek pertukaran yang ditambahkan dalam tetapan perdagangan langsung strategi, tetapan backtest, bursa[0], iaitu {@var/EXCHANGE exchange}. Objek pertukaran yang ditambahkan dalam tetapan perdagangan langsung strategi atau tetapan backtest sepadan dengan pertukaran[0], pertukaran[1], pertukaran[2], pertukaran[n]... mengikut urutan yang ditambahkan.
Array
function main() {
for(var i = 0; i < exchanges.length; i++) {
Log("Index of the added exchange object (the first one is 0 and so on):", i, "Name:", exchanges[i].GetName(), "Label:", exchanges[i].GetLabel())
}
}
def main():
for i in range(len(exchanges)):
Log("Index of the added exchange object (the first one is 0 and so on):", i, "Name:", exchanges[i].GetName(), "Label:", exchanges[i].GetLabel())
void main() {
for(int i = 0; i < exchanges.size(); i++) {
Log("Index of the added exchange object (the first one is 0 and so on):", i, "Name:", exchanges[i].GetName(), "Label:", exchanges[i].GetLabel());
}
}
{@var/EXCHANGE exchange}, {@fun/Account/exchange.GetName exchange.GetName}, {@fun/Account/exchange.GetLabel exchange.GetLabel}
pertukaran ORDER_STATE