NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 02-22-2009, 12:15 AM   #1
ssg10
Senior Member
 
Join Date: Sep 2008
Posts: 128
Thanks: 0
Thanked 2 times in 1 post
Default 3-day rolling pivot

Hi. I need to create an indicator for 3-day rolling pivot (highest of last 3 days minus lowest of last 3 days, divided by close of last day)

There is highestbar() formula, but I don't see the "timeframe" parameter. If I want to use this indicator for intraday (e.g. 5min chart), what API can I use to get the highest and lowest price the last 3 days?
ssg10 is offline  
Reply With Quote
Old 02-22-2009, 02:51 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Hi ssg10 - you can take a look at this script from our sharing - http://www.ninjatrader-support2.com/...id=131&catid=1
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-16-2009, 08:17 PM   #3
tshirtdeal
Senior Member
 
Join Date: Sep 2008
Posts: 285
Thanks: 1
Thanked 6 times in 3 posts
Default I Need It To

I need the three day rolling pivot as well, anyone have it by chance?

The formula you posted is incorrect for it though, it is

3 day high + 3 day low + third day close = *
3 day high + 3 day low = *

subtract the two above figures to get the pivot diff which = *

then add the pivot diff to the 3 day high + 3 day Low + 3rd day cloe for the upper pivot

Subtract the pivot diff from the same = the pivot low

any one have it or can make it? I really need this indicator right now...

TIA
tshirtdeal is offline  
Reply With Quote
Old 03-17-2009, 02:39 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

Unfortunately I'm not aware of a script for this, as a last resort you can contact those NinjaScript consultants - http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 03-17-2009, 12:44 PM   #5
tshirtdeal
Senior Member
 
Join Date: Sep 2008
Posts: 285
Thanks: 1
Thanked 6 times in 3 posts
Default My Code Is Incorrect

Thanks for the reply,

My code is incorect also,

this


3 day high + 3 day low + third day close = *
3 day high + 3 day low = *

Needs to be:


3 day high + 3 day low + third day close divided by 3 = *
3 day high + 3 day low divided by 2 = *

forgot to add the "divided by"
tshirtdeal 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
Rolling over to next quarter T2020 Miscellaneous Support 27 12-12-2008 10:42 AM
Rolling contracts stefy Charting 1 12-10-2008 02:50 PM
Rolling over futures with Strategy mgbloomfield Automated Trading 3 04-19-2008 11:52 PM
Trouble Merging/Rolling futures zoltran Miscellaneous Support 15 08-31-2007 07:09 AM
Rolling over to Sept contract dbj Miscellaneous Support 6 06-08-2006 04:30 PM


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