MACD is not consisten with TradeViewSee original GitHub issue
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
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.
- Created a year ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
Let me know if you still have unresolved issues that I can help resolve.