NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 08-01-2008, 10:48 PM   #1
stljeffbb
Junior Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Default Data from previous bars

Hello everyone....I'm tinkering around with custom indicators, and I've been working in forex on 1 second charts....using the Level 1 tutorial concerning "Using Price Variables" the formula is shown:

Plot0.Set(Open[0] == Close[0] ? 1 : 0);

I want to set up something like this:

Plot0.Set(Open[120] >= Close[55] ? 1 : 0)
Plot1.Set(Open[120] < Close[55] ? 1 : 0)

Works well, but when I change "Open[0]" to anything more than "Open[1]" it just doesn't work...The little popup mentions that the number in the brackets represents "bars ago", so why won't it work

Thanks,

Jeff
stljeffbb is offline  
Reply With Quote
Old 08-01-2008, 11:20 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

You are running into the issue outlined in this tip: http://www.ninjatrader-support.com/v...ead.php?t=3170
NinjaTrader_Josh is offline  
Reply With Quote
Old 08-01-2008, 11:32 PM   #3
stljeffbb
Junior Member
 
Join Date: Aug 2008
Posts: 2
Thanks: 0
Thanked 0 times in 0 posts
Thumbs up

Quote:
Originally Posted by Josh View Post
You are running into the issue outlined in this tip: http://www.ninjatrader-support.com/v...ead.php?t=3170
Thank you VERY much for your prompt reply...the math.min option worked very well!

Thanks...NT is great!

Jeff
stljeffbb 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
One Minute Bars / Ten Minutes of Data Per Bar RJay Indicator Development 3 06-09-2008 03:27 PM
Incomplete data/price bars Wi!s0n Miscellaneous Support 8 04-07-2008 08:00 AM
Best way to get priorclose from days previous to the previous scriabinop23 General Programming 3 02-02-2008 12:41 AM
Range Bars from Hist data... pgabriel General Programming 2 11-28-2007 05:27 PM
Getting Bars/Time Data to Line Up? crazyhorse2393 Charting 10 09-07-2007 08:22 AM


All times are GMT -6. The time now is 12:30 AM.