MACD is not consisten with TradeView
See original GitHub issuethe problem
when using the same params, macd gold cross is not consistent with what is TradeView
the first column on the screenshot of the console output is the time I buy the stock (it should be the K line which generating macd gold cross ), but it is sometimes later or earlier than what is generated by the Stock.Indicator
the code:
List<MacdResult> macd = quotesList5m.GetMacd(5, 34, 5, CandlePart.OHLC4).ToList();
........
bool buy = macd[i - 1].Histogram < 0 && macd[i].Histogram > 0
when the boll buy == true, I will buy stocks.
I use ES in this case, but you can use any stock to reproduce the issue.
Issue Analytics
- State:
- Created a year ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
MACD (Moving Average Convergence/Divergence)
MACD is an extremely popular indicator used in technical analysis. ... Simply put, divergence is when the MACD and actual price are not...
Read more >Moving Average Convergence / Divergence (MACD)
MACD – What it is The Moving Average Convergence Divergence (MACD) is the momentum indicator that shows the relationship between two different moving...
Read more >Moving Average Convergence / Divergence (MACD)
The Adaptive MACD indicator is an adaptive version of the popular Moving Average Convergence Divergence (MACD) oscillator, returning longer-term variations ...
Read more >I can't find an indicator (Volume, MACD, Ichimoku or other)
Click the Indicators button in the top toolbar, start typing the name of the indicator and then click on the indicator on the...
Read more >Better Than MACD! This POWERFUL TradingView Indicator ...
... financial, accounting, tax, legal, regulatory or similar advice, and it is not an endorsement of any provider, product or service.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a few data sources: https://github.com/DaveSkender/Stock.Indicators/discussions/579
Let me know if you still have unresolved issues that I can help resolve.