NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 05-12-2009, 04:16 AM   #1
TAJTrades
Senior Member
 
Join Date: Dec 2007
Location: Atlanta
Posts: 281
Thanks: 0
Thanked 4 times in 3 posts
Default Plots and Null Value

How would I set the Indicator Plot to "null".

This snippet throws an error:
if (ToTime(Time[0]) < 93000) OpeningHigh.Set(null);
else
OpeningHigh.Set(Close[0]);
TAJTrades is offline  
Reply With Quote
Old 05-12-2009, 05:17 AM   #2
mrlogik
Certified NinjaScript Consultant
 
mrlogik's Avatar
 
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
Default

Are you trying to have no plot when you set it to null?

If so, just don't call the .Set function and it won't plot on that bar.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"

PureLogikTrading
mrlogik is offline  
Reply With Quote
Old 05-12-2009, 05:28 AM   #3
TAJTrades
Senior Member
 
Join Date: Dec 2007
Location: Atlanta
Posts: 281
Thanks: 0
Thanked 4 times in 3 posts
Default

Why be logical when you can make it difficult. Thanks mrlogik.
TAJTrades is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hiding plots from Plots section eDanny Indicator Development 4 04-15-2009 12:14 PM
.Reset() plots close values, not null values ninja.man General Programming 3 02-23-2009 03:41 PM
Bars == NULL oferr Strategy Analyzer 4 01-31-2008 07:57 AM
Testing for null zoltran General Programming 7 11-25-2007 05:09 PM
Plots[?].Min & Plots[?].Max Don't work AlohaBob Indicator Development 6 01-06-2007 08:31 PM


All times are GMT -6. The time now is 05:03 PM.