策略源码
void main() {
Sleep(10000);
Log(exchange.GetAccount());
while (1) {
if (exchange.IO("status") == 1) {
exchange.SetContractType(Symbol);
auto ticker = exchange.GetTicker();
auto position = exchange.GetPosition();
auto orders = exchange.GetOrders();
if ((position.size() > 0) && !(orders.size() > 0)) {
if (!position[0].Type) {策略参数
评论
全部评论 (0)
暂无数据
- 1