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 > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 07-28-2012, 08:32 AM   #1
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
Default Rising / Falling

Hi all;

Has anybody any ideas over the time frame that NT use to calculate 'rising' and 'falling'?

Can I change it? If so - How?

If not - is the only way round it to write my own code defining my rising and falling conditions?

Thanks;

Ben.
stocktraderbmp is offline  
Reply With Quote
Old 07-28-2012, 08:39 AM   #2
sledge
Senior Member
 
Join Date: Aug 2010
Location: Washington, D.C.
Posts: 1,184
Thanks: 178
Thanked 301 times in 259 posts
Default

This is defined in the help file.

Quote:
Originally Posted by stocktraderbmp View Post
Hi all;

Has anybody any ideas over the time frame that NT use to calculate 'rising' and 'falling'?

Can I change it? If so - How?

If not - is the only way round it to write my own code defining my rising and falling conditions?

Thanks;

Ben.
sledge is offline  
Reply With Quote
Old 07-28-2012, 08:42 AM   #3
koganam
Senior Member
 
Join Date: Feb 2008
Location: Durham, North Carolina, USA
Posts: 3,201
Thanks: 24
Thanked 1,226 times in 997 posts
Send a message via Skype™ to koganam
Default

Quote:
Originally Posted by stocktraderbmp View Post
Hi all;

Has anybody any ideas over the time frame that NT use to calculate 'rising' and 'falling'?

Can I change it? If so - How?

If not - is the only way round it to write my own code defining my rising and falling conditions?

Thanks;

Ben.
The NT Help specifically says: "Checks for a rising condition which is true when the current value is greater than the value of 1 bar ago." which is kind of very specific.

The function does not seem to be indexed, though it should be easy to use if statements to work around that.

Better yet is to simply code your own rising() function, including input parameters for the period over which you want to test your rising conditions and how you want them to occur.
koganam is offline  
Reply With Quote
Old 07-28-2012, 11:53 AM   #4
stocktraderbmp
Senior Member
 
Join Date: Jun 2011
Location: Ireland
Posts: 184
Thanks: 32
Thanked 20 times in 19 posts
Default

Quote:
Originally Posted by koganam View Post
The NT Help specifically says: "Checks for a rising condition which is true when the current value is greater than the value of 1 bar ago." which is kind of very specific.

The function does not seem to be indexed, though it should be easy to use if statements to work around that.

Better yet is to simply code your own rising() function, including input parameters for the period over which you want to test your rising conditions and how you want them to occur.
oops my bad; even more embarrassing is that I had the help file open on that entry.

'Tut - blooming half - wits asking stupid questions !'

Anyway -thanks for pointing out the obvious guys -

Ben.
(Going to read the whole page next time).
stocktraderbmp 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
EMA rising and falling zachj Indicator Development 1 12-26-2011 01:16 PM
Rising/Falling Strategy Syrinxgroup Strategy Development 1 03-14-2011 05:20 AM
Hma rising and falling arrows djkiwi General Programming 41 01-10-2011 03:04 AM
Rising and falling eventrader Strategy Development 1 06-13-2010 07:13 PM
Falling(), Rising() on bars before symphys Strategy Development 4 05-15-2010 09:32 AM


All times are GMT -6. The time now is 12:53 PM.