0
Follow
0
Followers
Log('盈亏:', (price - last_price) * lots) # lots为下单的数量,price为开仓的价格,last_price为平仓的价格
# stocks为平仓操作后的余币,last_stocks为上一次的余币
Log('盈亏(币):', _N(stocks - last_stocks), '盈亏百分比:', _N((stocks - last_stocks) / last_stocks * 100), '%')
계산된 품종은 OKEX 선물 ((BTC) 였다. 이 두 가지의 손실은 하나는 계산된 돈이고, 하나는 계산된 화폐이며, 가치가 다르다는 것은 이해할 수 있고, 교환된 관계도 있다. 그러나 거의 매번의 기호는 반대의 것이며, 돈은 항상 마이너스이다 ((높은 가격으로 팔거나 낮은 가격으로 팔거나 높은 가격으로 샀다), 화폐는 늘어나고 있다.
왜 이런 일이 일어나는 걸까요?

Related Recommendations
Great news! Check out our platforms’ NEW features, the “Demands & Offers” page on our website.Our platform’s New design PC/MacOS local software client is released now!Flash collapse robot (teaching)Index equilibrium strategy (teaching)can anyone please explain how to start with this platformC++ API call exampleHow to break through the Tick receiving limit of commodity futuresMulti-platform Hedging Stabilization Arbitrage V2.1 (Annotation Edition)Pure english vesion of e-books about some basic systematic trading skillsThe grid trading strategy
Comment
All comments (3)
- 1
