如何在 pine script 中回测 Strategy 超过一年?
How to backtest Strategy in pine script more than a year?
如何在 pine 脚本中回测 Strategy 一年多?
我有 5 分钟图表的漂亮策略。当我 运行 它时,它只显示最近 100 天的结果。图表中看不到以前的数据。
但是,如果我将图表时间框架保持在 5 分钟以上,数据(蜡烛图)会比这更多,更多的时间框架显示更多的日期。但我的策略在 5 分钟内有效。我想在过去两年/五年内对其进行测试。.如何做?
历史的深度是以柱来衡量的——而不是时间。图表上柱的数量因您的账户类型而异。有关详细信息,请参阅 this PineCoders FAQ entry。
Disclosure: the link in this answer points to a PineCoders FAQ entry.
I am a member of the PineCoders community and I most probably wrote that FAQ entry. PineCoders is a TradingView-supported group of volunteer Pine coders and PineCoders' website is strictly educational. Neither TradingView nor PineCoders benefits financially from sending traffic to pinecoders.com, and the site contains no affiliate/referral links.
如何在 pine 脚本中回测 Strategy 一年多?
我有 5 分钟图表的漂亮策略。当我 运行 它时,它只显示最近 100 天的结果。图表中看不到以前的数据。
但是,如果我将图表时间框架保持在 5 分钟以上,数据(蜡烛图)会比这更多,更多的时间框架显示更多的日期。但我的策略在 5 分钟内有效。我想在过去两年/五年内对其进行测试。.如何做?
历史的深度是以柱来衡量的——而不是时间。图表上柱的数量因您的账户类型而异。有关详细信息,请参阅 this PineCoders FAQ entry。
Disclosure: the link in this answer points to a PineCoders FAQ entry.
I am a member of the PineCoders community and I most probably wrote that FAQ entry. PineCoders is a TradingView-supported group of volunteer Pine coders and PineCoders' website is strictly educational. Neither TradingView nor PineCoders benefits financially from sending traffic to pinecoders.com, and the site contains no affiliate/referral links.