0
Follow
0
Followers
def main():
r = exchange.GetRecords(PERIOD_M1)
r1 = exchange.GetRecords(PERIOD_M15)
r2 = exchange.GetRecords(PERIOD_M30)
ma = TA.MA(r,1)
ma1 = TA.MA(r1,1)
ma2 = TA.MA(r2,999)
Log("测试MA打印出来的数值:",ma)
Log("测试MA2印出来的数值:",ma1)
Log("测试MA3印出来的数值:",ma2)
Log("测试R打印出来的数值:",r)
Log("测试R1打印出来的数值:",r1)
Log("测试R2印出来的数值:",r2)
我就想要 7天内的均价 还有 15天内的均价, 以及30天内的均价, 这个打印出来一大堆的数据, 不知道那个是.
菜鸟新手求教.
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)
- 1
