After having worked through the translation in code, I believe the indicators are identical in code, however I am still getting misaligned entries/exists when I compare the indicators side by side in both platforms. Note that the connection data feed used to compare in NT was the NinjaTrader Continuum connection feed.
Doing a little digging, it seems like this may be due to the data that each platform uses, i.e., ToS uses the data of formed bars, which is why the HMA value on the current bar shows static (doesn't change) but NT indicator uses the current bar in its calculations, and because of this, the NT entries/exists lag behind ToS by one bar. I don't have concrete support that this is indeed causing the misalignment.
Does anyone have any thoughts on how to resolve this misalignment? I'd like to ultimately have the NT indicator mirror the ToS as without it, it pretty significantly throws off my results.
I've also read that maybe different broker / data feeds can provide more aligned data for NJ to use?
Any ideas that anyone has would be very helpful and appreciated. I can certainly provide any code or specific examples if that would help get to a better understanding/answer. Thank you!

Comment