0
Follow
0
Followers
저는 Inventor Quant를 반달 동안 사용했습니다. 로봇이 수동 개입 전략 후 수동 작업 정보를 캡처할 수 있는 코드를 공유하고 싶습니다.
Created 2016-04-25 11:28:36 Updated 2019-08-01 10:33:10
1
2081
수동 평준화 후, 로봇은 평준화 동작을 캡처하고 수익 전환 전략 상태를 계산할 수 있습니다.
if (GetPosition(PD_SHORT)[0]===0 && GetPosition(PD_LONG)[0]===0){
if (State!=STATE_IDLE){
var account = exchange.GetAccount();
if (account.Stocks > LastAccount.Stocks) {
Counter.w++;
} else {
Counter.l++;
}
LogProfit(_N(account.Stocks - InitAccount.Stocks), "收益率:", _N((account.Stocks - InitAccount.Stocks) * 100 / InitAccount.Stocks) + '%');
LastAccount = account;
}
State=STATE_IDLE;
}
<unk>은 <unk>은 <unk>은
Related Recommendations
Comment
All comments (1)
- 1
