Inventors quantify that after half a month of sharing a manual intervention strategy, the robot can capture the code of the manual operation information.

Author: The Turn, Created: 2016-04-25 11:28:36, Updated: 2019-08-01 10:33:10

After the manual clearing, the robot can capture the clearing operation and then calculate the status of the earnings switching strategy etc.

 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;
}

It's the same thing.


More

Zero 感放分享,替你排版了下.