Sumber dimuat naik... memuat...

Pertukaran

pertukaran

pertukaran adalah objek pertukaran, yang merupakan objek pertukaran pertama yang ditambahkan ke strategi tetapan perdagangan langsung, tetapan backtest, dan semua interaksi dengan pertukaran diwujudkan melalui fungsi anggota 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 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}

Struktur ORDER_STATE