quantstrat::ruleSignal 的参数“timestamp”的值从何而来?

Where does values of argument `timestamp` of quantstrat::ruleSignal's come from?

在阅读ruleSignal的源代码时,第66行的参数timestamp是一个非常重要的输入,但我无法弄清楚timestamp数据来自哪里。

似乎功能 add.indicatoradd.signaladd.ruleapplyIndicatorsapplySignals,运行 在 [=18= 之前] 不要使用或生成 timestamps 值。

我想知道哪个函数生成 timestamp 的值供 ruleSignal 使用,或者 timestamp 的数据来自哪里。

非常感谢!

感谢 Brian Peterson 的回复回答了我的问题:

indicators and signals are always presumed to be vectorized, per the documentation, so no timestamp is required.

rules, by default, are path dependent, and thus need a timestamp to operate from.

The path-dependent loop is outside of the individual rule function. see line 555 of rules.R