Type/to search
0
Follow
0
Followers
Ich bin seit einem halben Monat bei Inventor Quant. Ich möchte eine manuelle Eingriffsstrategie vorstellen, bei der der Roboter den Code der manuellen Betriebsinformationen erfassen kann.
FAQ
Created 2016-04-25 11:28:36  Updated 2019-08-01 10:33:10
 1
 2081

Nach dem manuellen Ausgleich kann der Roboter die Ausgleichsoperation erfassen und dann den Ertrag berechnen, um die Strategie zu wechseln.

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

Das ist eine gute Idee.

Related Recommendations
Comment
All comments (1)

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

    10 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)