1
Follow
1
Followers
麦语言 , 如何获取 最近2次成交的信息,
并且 将 其中的成交价 和 成交仓位 定义为变量,
比如 我 买入 0.1 btc, 成交可能分为3次 到4次,
但是我又想 在反弹 1%后 卖出0.1btc,
怎么用麦语言实现这个功能,
比如 我最近成交 0.2 btc 分别在 50000 0.1 和51000, 0.1
反弹到 分别成交价的 1% 高度, 50000的 0.1 和 51000 的 0.1
我分别卖出 0.1 btc 和 0.1 btc,
付费 咨询
Related Recommendations
How to Specify Different Versions of Data for the Rented Strategy by Its Rental Code MetadataAdvanced Tutorial for FMZ Quant platform Strategy WritingElementary Tutorial for FMZ Quant platform Strategy WritingGet Started with FMZ Quant PlatformSECURITY BUGI keep getting error: Exchange_GetAccount: Invalid ContractTypeWe have an incredibly profitable market making algorithm for sideways markets on Bitmex - but need expert to help eliminate wait times during downward volatility in the marketError with deribitLimitations of the backtesting engineHow to install ta-lib on linux docker?
Comment
All comments (1)
https://www.fmz.com/doc/2569#bkprice
https://www.fmz.com/doc/2569#refsig_vol
你看看是不是你要的,一是成交价,二是头寸
5 years ago
- 1