N/A Values - NinjaTrader Programming | futures io social day trading
futures io futures trading


N/A Values
Updated: Views / Replies:594 / 3
Created: by mastermind007 Attachments:0

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors – all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you don’t need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

N/A Values

  #1 (permalink)
Trading Apprentice
Mozambique
 
Futures Experience: Intermediate
Platform: Ford Mustang
Favorite Futures: GOLD MORE GOLD
 
Posts: 3 since Jan 2014
Thanks: 5 given, 3 received

N/A Values

I have experienced something weird and don't know how to get around it.

Within Ninja, I am experimenting with a trial version of a third party indicator that plots dots above or below candle at certain important turning points. (trade signals)

The indicator is provided as secured DLL so I cannot really access the internals but intellisense reveal that the name of Data Series responsible for dots is named High.

Using a Cross-cursor when I hover at the candle with dots on it, values of High shown in data box is a valid number (usually Close of candle) and everywhere where no dot is plotted it is shown as N/A.

So, I confidently wrote (expecting it to work first time)

 
Code
if ( Double.IsNan(ind.High[1]) && !Double.IsNan(ind.High[0]))
unfortunately this did not work. So, I tried

 
Code
if (!Double.IsNan(ind.High[0]))
This did not work either. Tried few more ideas. CrossAbove, CrossBelow etc etc and nothing worked

After few trials and errors, I tried

 
Code
if (ind.High[0] > 0)
last returns true for each and every candle.

IsNan is officially documented function in C# to detect numeric fields that do not have data


Last edited by mastermind007; January 10th, 2014 at 03:21 PM.
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
 Vendor: www.cannontrading.com 
Los Angeles, CA /USA
 
Futures Experience: Master
Platform: Sierra, CQG, TransactAT
Favorite Futures: Crude Oil
 
Ilanlm's Avatar
 
Posts: 76 since Mar 2013
Thanks: 18 given, 47 received


I have written a few codes for both CQG and sierra charts but not for ninja. My best advice is to contact the vendor of the signals and ask them directly.

Reply With Quote
 
  #4 (permalink)
Market Wizard
Sarasota FL
 
Futures Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Favorite Futures: ES
 
Posts: 3,632 since Jan 2013
Thanks: 26,740 given, 11,106 received
Forum Reputation: Legendary


mastermind007 View Post
I have experienced something weird and don't know how to get around it.

Within Ninja, I am experimenting with a trial version of a third party indicator that plots dots above or below candle at certain important turning points. (trade signals)

The indicator is provided as secured DLL so I cannot really access the internals but intellisense reveal that the name of Data Series responsible for dots is named High.
....

IsNan is officially documented function in C# to detect numeric fields that do not have data

The field probably is not actually empty; NT puts dummy values in whenever no actual value is used, and you have to check for that. Try the ContainsValue property of the dataseries. I think this may be your answer.

From the entry on DataSeries Class in the Ninja help file:


Quoting 
Checking for Valid Values
It is possible that you may use a DataSeries object but decide not to set a value for a specific bar. However, you should not try to access a DataSeries value that has not been set. Internally, a dummy value does exists, but you want to check to see if it was a valid value that you set before trying to access it for use in your calculations.



DataSeries.ContainsValue(int barsAgo)
Returns a true or false value.

Bob.

Reply With Quote
The following user says Thank You to bobwest for this post:

Reply



futures io > > > > > N/A Values

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get values from one chart into another rookyjohn NinjaTrader 4 February 3rd, 2016 11:25 PM
Chart Values/Tool Values Window is missing Big Mike Sierra Chart 17 August 24th, 2012 08:05 PM
I'm trying to print the values from an ArrayList kaywai NinjaTrader Programming 13 May 13th, 2011 10:33 AM
Wavelets values max-td The Elite Circle 39 September 25th, 2010 07:53 AM
Translating EMA-values to ZN-values or visaversa max-td NinjaTrader Programming 17 June 22nd, 2009 04:42 PM


All times are GMT -4. The time now is 10:50 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-11 in 0.09 seconds with 19 queries on phoenix via your IP 54.145.16.43