![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Sep 2008
Posts: 128
Thanks: 0
Thanked 2 times in 1 post
|
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? |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
Hi ssg10 - you can take a look at this script from our sharing - http://www.ninjatrader-support2.com/...id=131&catid=1
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Sep 2008
Posts: 285
Thanks: 1
Thanked 6 times in 3 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Sep 2008
Posts: 285
Thanks: 1
Thanked 6 times in 3 posts
|
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" |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |