Type/to search
0
Follow
0
Followers
回测中,用了两根均线,但是行情数据图表里只显示一根均线
Help
Created 2023-02-19 02:04:25  Updated 2023-03-14 10:33:14
 2
 1097
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)