NexusFi: Find Your Edge


Home Menu

 





Translating EMA-values to ZN-values or visaversa


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one max-td with 8 posts (1 thanks)
    2. looks_two wh with 5 posts (0 thanks)
    3. looks_3 Big Mike with 3 posts (0 thanks)
    4. looks_4 Richard with 2 posts (1 thanks)
    1. trending_up 8,481 views
    2. thumb_up 2 thanks given
    3. group 1 followers
    1. forum 17 posts
    2. attach_file 3 attachments




 
Search this Thread

Translating EMA-values to ZN-values or visaversa

  #11 (permalink)
Richard
Dallas TX/USA
 
Posts: 153 since Jun 2009
Thanks Given: 33
Thanks Received: 284


max-td View Post
ie. if you wanna code an ENTRY after the Bar closes Above / Below EMA 50 - thats not possible at the moment.

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.

Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
Cheap historycal L1 data for stocks
Stocks and ETFs
How to apply profiles
Traders Hideout
Trade idea based off three indicators.
Traders Hideout
 
  #12 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

lol - or changing the string format to a {0}.{1:000} - line

max-td
Started this thread Reply With Quote
  #13 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


ok test this is not tested have no datas

Attached Files
Elite Membership required to download: not tested.cs
Reply With Quote
  #14 (permalink)
 
wh's Avatar
 wh 
Neubrandenburg, Germany
 
Experience: Advanced
Platform: R
Trading: Stocks
Posts: 538 since Jun 2009
Thanks Given: 298
Thanks Received: 512


max-td View Post
lol - or changing the string format to a {0}.{1:000} - line

jajajajajajajajaja

Reply With Quote
  #15 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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.

max-td
Started this thread Reply With Quote
  #16 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

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.

max-td
Started this thread Reply With Quote
  #17 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,239
Thanks Received: 101,662


max-td View Post
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.

Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
  #18 (permalink)
Richard
Dallas TX/USA
 
Posts: 153 since Jun 2009
Thanks Given: 33
Thanks Received: 284

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.

Reply With Quote




Last Updated on June 22, 2009


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts