8
Follow
0
Followers
इन्वेंटर के क्वांटिटेटिव टीए इंडिकेटर लाइब्रेरी की एटीआर गणना की सटीकता के संबंध में?
Created 2023-02-28 16:22:30 Updated 2023-02-28 16:28:27
2
1271
python
def ma_case(self):
exchange.SetContractType("swap")
r = exchange.GetRecords(PERIOD_M1)
ma = TA.MA(r, 20)
Log(f'ma => {ma[-1]}, {ma[-2]}')
def atr_case(self):
exchange.SetContractType("swap")
r = exchange.GetRecords(PERIOD_M1)
atr = TA.ATR(r, 14)
Log(f'atr => {atr[-1]}, {atr[-2]}')
2023-02-28 16:20:39 जानकारी atr => 12.161116665558945,
2023-02-28 16:20:39 जानकारी ma => 23246.1, 23244.699999999997
एक ही समय में binance के आंकड़े:
ATR 14 => 17.78
MA 20 => 23247
तो आप देख सकते हैं कि ma का आंकड़ा सही है, लेकिन ATR का आंकड़ा अधिक खराब क्यों है?
Related Recommendations
Inventor Quant Workflow FAQ (Continuously Updated)Financial Magic Zone Global KOL RecruitmentFAQ Summary (Updating...)PINE Language Introductory Tutorial of FMZ QuantPrimary Tutorial of Strategy Writing with FMZ Quant Trading Platform (Must Read)Getting Started with FMZ Quant Trading Platform (Must Read)MyLanguage DocFMZ PINE Script DocNotes & Explanation of Futures Reverse Doubling Algorithm StrategySolutions to Obtaining Docker Http Request Message

