Sumber daya yang dimuat... Pemuatan...

Pertukaran

pertukaran

pertukaran adalah objek pertukaran, yang merupakan objek pertukaran pertama yang ditambahkan ke strategi pengaturan perdagangan langsung, pengaturan backtest, dan semua interaksi dengan pertukaran direalisasikan melalui fungsi anggota dari objek ini.

objek

function main() {
    Log("On the live trading page or backtest page, the first exchange object name added: ", exchange.GetName(), ", label:", exchange.GetLabel())
}
def main():
    Log("On the live trading page or backtest page, the first exchange object name added: ", exchange.GetName(), ", label:", exchange.GetLabel())
void main() {
    Log("On the live trading page or backtest page, the first exchange object name added: ", exchange.GetName(), ", label:", exchange.GetLabel());
}

{@var/EXCHANGE/exchanges exchanges}, {@fun/Account/exchange.GetName exchange.GetName}, {@fun/Account/exchange.GetLabel exchange.GetLabel}

pertukaran

Bursa adalah array objek pertukaran, yang berisi semua objek pertukaran yang ditambahkan ke dalam pengaturan strategi perdagangan langsung, pengaturan backtest, bursa[0], yaitu {@var/EXCHANGE exchange}. Objek pertukaran yang ditambahkan dalam pengaturan perdagangan langsung strategi atau pengaturan backtest sesuai dengan pertukaran[0], pertukaran[1], pertukaran[2], pertukaran[n]... dalam urutan mereka 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}

Struktur ORDER_STATE