Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm not a ZN trader, so I may be confused, but... the EMA is computed on the Close[x]... so however ninja presents Close[x] to you is the same units your resulting ema is in. They should be directly comparable in code, even if ninja does some formatting to plot price as xxx'yyy on your Y axis. If Close[x] is pre-formatted in the xxx'yyy sense, then your EMA would be bogus because it doesn't take that into account. But I doubt ninja would do that, for that reason.
Again, as I don't trade ZN there may be some detail that escapes me, but on general principle that should be how things are.
hi Richard,
thanks for input!
dont know - havnt tried it yet.
i am a bit confused with these ZN-values - also not familliar ZN
- so i wanted to convert it first + then do my codings with the values - maybe one step too much .... hm .. i will test it.
Hi to Richard again,
i tested some things on the WE and you are absoutly right !
it s not important in which value-format the EMA is shown in the chart - ninja realizes the corect comparable of EMA + ZN value at Close[x] !
Great - so the whole translation-idea is senseless - except of if you want to plot the values in text-format.
But in strategys it is not necessary at all.
An ENTRY after the Bar closes Above / Below EMA 50 works fine.
well - learned some things in coding with that.
learned more on basicly understanding ninjatrader + processing - also not bad The journey is the reward.
If you want to Print() anything it will be important. There is also a particular closed-source script I have that requires it due to the way it calculates some math... so, 99% agree with you but 1% is important.
Yeah, for printing I imagine the code samples earlier in the thread will suffice. If there are libraries that expect a translated double, then for efficiency's sake I'd suggest using a method that doesn't go double -> string -> double. Lots of memory allocation in that path, that can surely be avoided by staying in number space.