0
Follow
0
Followers
def get_records(value):
Log("get records day:",value)
records = exchange.GetRecords(PERIOD_D1)
res = 0
for i in range(-(value + 1),-1):
res = res + records[i]["Close"]
Log("time:", records[i]["Time"], "value:",records[i]["Close"])
return res/value
اس فنکشن کے ذریعے اوسط لائن کا حساب لگائیں
ریٹرننگ میں ، فکسڈ ڈسک کی ک لائن کا دورانیہ پورے دن کے لئے ترتیب نہیں دیا جاسکتا ہے ، لہذا ریکارڈز کی لمبائی عام طور پر صرف 5 یا 6 دن ہوتی ہے ، اور 30 دن کی اوسط لائن حاصل نہیں کی جاسکتی ہے۔
Related Recommendations
Advanced 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?5.5 Trading strategy optimization
