Type/to search
0
Follow
0
Followers
バックテストでは 2 つの移動平均が使用されましたが、市場データ チャートには 1 つの移動平均のみが表示されました。
Help
Created 2023-02-19 02:04:25  Updated 2023-03-14 10:33:14
 2
 1098
records = exchange.GetRecords(PERIOD_M15); if (records && records.length > 7) { var ma7 = TA.MA(records, 7); } if (records && records.length > 30) { var ma30 = TA.MA(records, 30); }

なぜ,上記の平均線しか示されず,ma30の平均線は示されないのか?

Related Recommendations
Comment
All comments (2)

    可以使用KineChart自行打印所需内容:https://www.fmz.com/api#klinechart...

    3 years ago

    您好,回测图表上的指标是可以设置显示的,图表右上角有一个指标按钮。策略代码中的计算只能显示一条均线。

    4 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)