NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 08-23-2008, 11:54 AM   #1
tradefaz
Senior Member
 
Join Date: Aug 2008
Posts: 109
Thanks: 0
Thanked 0 times in 0 posts
Default What does CrossAbove/Below do?

If I have a chart with 30 minute intervals, if I call CrossAbove(...) at close of a bar and compare two data series, will it be testing whether they crossed each other at any time in the past n bars, or if their closing values crossed each other at any time in the past n bars?
tradefaz is offline  
Reply With Quote
Old 08-23-2008, 12:56 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

It will look at closing values. You will need to use CalculateOnBarClose = false if you want to see if they crossed ever.
NinjaTrader_Josh 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
No CrossAbove/CrossBelow condition for alerts? Elliott Wave Market Analyzer 1 04-11-2008 01:39 PM
CrossAbove/Below donīt work all the time! Agamenon Strategy Development 2 11-19-2007 06:28 AM
DI+ and DI- CrossAbove SamIam Strategy Development 2 09-01-2007 03:09 AM
General Question about CrossAbove moflaherty Indicator Development 4 08-22-2007 02:54 PM
CrossAbove for current bar. SuzyG Strategy Development 1 12-28-2006 03:18 AM


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