2
Follow
1
Followers
プログラムがうまく動いているか,よくわからないのか,そのため,プログラムがどう動いているのかよくわからないのか,大<unk>さんにお答えください!
このコードを例に
function onTick() {
Log(exchange.GetTicker());
Log(exchange.GetTicker());
}
function main() {
exchange.SetContractType("this_week");
while (true) {
onTick();
Sleep(1000);
}
}
動作する場合は,
main () 関数は死循環であり, Sleep () 1000) に対して2つのtickerデータを取得し,それをプリントします.
動作中の検出
この時点で,Sleep (1000) は明らかに本当の眠りではないし,exchange.GetTicker (1000) が呼び出すたびに,シミュレートされたtickerは次のステップに進む.
onTick () 関数を書かないと,プログラムが本当に死循環に陥り,終わりにはなりません.
返信の実行時に, ドライバがtickerをステップアップする際に, 何が起こっているのか?
Related Recommendations
Get Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?5.5 Trading strategy optimization5.4 Why do we need an off-sample test5.3 How to read the strategy backtest performance report
