0
Follow
0
Followers
position[-1].Lợi nhuận Lợi nhuận và lỗ đầu ra không nhất quán với lợi nhuận và lỗ đã tính toán
Created 2018-09-03 14:42:14
3
1824
Log('盈亏:', (price - last_price) * lots) # lots为下单的数量,price为开仓的价格,last_price为平仓的价格
# stocks为平仓操作后的余币,last_stocks为上一次的余币
Log('盈亏(币):', _N(stocks - last_stocks), '盈亏百分比:', _N((stocks - last_stocks) / last_stocks * 100), '%')
Loại tính toán là OKEX tương lai ((BTC)). Hai loại lỗ này một là tính tiền, một là tiền điện tử, giá trị khác nhau có thể hiểu được, và có mối quan hệ chuyển đổi, nhưng gần như mỗi lần biểu tượng là ngược lại, tiền luôn âm (( cao mua thấp bán hoặc thấp bán cao mua), tiền luôn tăng lên.
Tại sao?

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
