NexusFi: Find Your Edge


Home Menu

 





N / A comparison in a strategy


Discussion in NinjaTrader

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




 
Search this Thread

N / A comparison in a strategy

  #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:	94
Size:	107.6 KB
ID:	64304   Click image for larger version

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

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
How to apply profiles
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Just another trading journal: PA, Wyckoff & Trends
25 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
23 thanks
GFIs1 1 DAX trade per day journal
18 thanks
  #3 (permalink)
 
NJAMC's Avatar
 NJAMC 
Atkinson, NH USA
Market Wizard
 
Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker: NinjaTrader Brokerage
Trading: Futures, CL, ES, ZB
Posts: 1,970 since Dec 2010
Thanks Given: 3,037
Thanks Received: 2,395



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: NT-Local-Order-Manager-LOM-Guide
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


© 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