We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regarding the MovingAverageConvergenceDivergence indicator: (1) The WarmUpPeriod is set to max(fastPeriod, slowPeriod) + signalPeriod
WarmUpPeriod
max(fastPeriod, slowPeriod) + signalPeriod
(2) The Signal is only updated when Fast and Slow are ready.
Signal
Fast
Slow
(3) The Histogram is only updated when Signal.IsReady
Histogram
Signal.IsReady
The three conditions above are not true. See this related thread.
(1) Change line 83 to Math.Max(fastPeriod, slowPeriod) + signalPeriod
Math.Max(fastPeriod, slowPeriod) + signalPeriod
(2 & 3) Add IsReady guards before updating Signal and Histogram.
IsReady
Run this backtest in the cloud. The logs show the MACD indicator IsReady when the internal Fast and Slow indicators are not ready.
Windows 10. Run in QC Cloud.
master
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Expected Behavior
Regarding the MovingAverageConvergenceDivergence indicator:
(1) The
WarmUpPeriod
is set tomax(fastPeriod, slowPeriod) + signalPeriod
(2) The
Signal
is only updated whenFast
andSlow
are ready.(3) The
Histogram
is only updated whenSignal.IsReady
Actual Behavior
The three conditions above are not true. See this related thread.
Potential Solution
(1) Change line 83 to
Math.Max(fastPeriod, slowPeriod) + signalPeriod
(2 & 3) Add
IsReady
guards before updatingSignal
andHistogram
.Reproducing the Problem
Run this backtest in the cloud. The logs show the MACD indicator
IsReady
when the internalFast
andSlow
indicators are not ready.System Information
Windows 10. Run in QC Cloud.
Checklist
master
branchThe text was updated successfully, but these errors were encountered: