NexusFi: Find Your Edge


Home Menu

 





N / A comparison in a strategy


Discussion in NinjaTrader

Updated
    1. trending_up 3,021 views
    2. thumb_up 1 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 2 attachments




 
Search this Thread
  #1 (permalink)
 solondon 
London, UK
 
Experience: Intermediate
Platform: ninja,TS,Meta,Tradeguider
Trading: FX,Metals
Posts: 38 since Sep 2011
Thanks Given: 9
Thanks Received: 6

Hi,
I want to have a condition in my strategy and i want MARising to be N/A (as in panel 2). I want to know how I add that in as its not equivalent to 0 is there a null value available in the condition builder? (null2 screenshoot)

thanks
JLo


Attached Thumbnails
Click image for larger version

Name:	null.png
Views:	156
Size:	107.6 KB
ID:	64304   Click image for larger version

Name:	null2.png
Views:	183
Size:	123.1 KB
ID:	64305  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Daytrading to swingtrading
Traders Hideout
Thanks Mike. Godspeed.
The Elite Circle
Ninjatrader users - good CONNECTIONs post and article fr …
NinjaTrader
Without Pulisic, USA 61.5% Live vs. Australia -- France …
Prediction Markets & Event Contracts
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
Franks Trading Journey
1 thanks
  #3 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Legendary Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,959 since Dec 2010
Thanks Given: 3,053
Thanks Received: 2,412



solondon View Post
Hi,
I want to have a condition in my strategy and i want MARising to be N/A (as in panel 2). I want to know how I add that in as its not equivalent to 0 is there a null value available in the condition builder? (null2 screenshoot)

thanks
JLo

Hi @solondon,
Here is a section of the NinjaTrader manual that may help. You are looking to see if the dataseries "ContainsValue", false means N/A (not valid data for the bar, value should always be ignored), true means the data is valid. Not sure how to do it with the Wizard as I hand code but hopefully this helps:

DataSeries Class

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(intbarsAgo)
Returns a true or false value.


Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: [wiki=NT-Local-Order-Manager-LOM-Guide][/wiki]
Artificial Bee Colony Optimization
Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #4 (permalink)
 solondon 
London, UK
 
Experience: Intermediate
Platform: ninja,TS,Meta,Tradeguider
Trading: FX,Metals
Posts: 38 since Sep 2011
Thanks Given: 9
Thanks Received: 6

thanks for the help appreciated


Started this thread Reply With Quote




Last Updated on March 1, 2012


© 2026 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 - Downloads - Top
no new posts