You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we create an Of indicator extension and then Update it, it updates the RHS indicator with the input and then updates the LHS indicator with the output of the RHS indicator.
Actual Behavior
If we create an Of indicator extension and then Update it, it updates the LHS indicator with the input.
Potential Solution
Change the Update behavior of the Of indicator extension so that it follows the correct order of operations.
public override void Initialize()
{
var roc = new RateOfChange(1);
var max = new Maximum(10);
var indicator = (max).Of(roc);
for(var i = 0; i < 10; i++)
{
indicator.Update(new DateTime(), 1m);
}
Quit($"Samples: ROC={roc.Samples}; MAX={max.Samples}; indicator={indicator.Samples}");
}
Expected Behavior
If we create an
Of
indicator extension and thenUpdate
it, it updates the RHS indicator with theinput
and then updates the LHS indicator with the output of the RHS indicator.Actual Behavior
If we create an
Of
indicator extension and thenUpdate
it, it updates the LHS indicator with theinput
.Potential Solution
Change the
Update
behavior of theOf
indicator extension so that it follows the correct order of operations.Reproducing the Problem
Run this backtest. We get
This backtest also highlights the issue.
System Information
QC Cloud
Checklist
master
branchThe text was updated successfully, but these errors were encountered: