![]() |
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
|
Your code seems to omit the first bar of the session
The following amendment seems to capture it Code:
// double highestHigh = MAX(High, startBarsAgo - endBarsAgo)[endBarsAgo+1]; double lowestLow = MIN(Low, startBarsAgo - endBarsAgo)[endBarsAgo+1]; |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
Hello,
Thank you for your post. We will look into this.
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
Hello,
Are you referring to the last bar of the session or the first bar? Can you post a screen shot of what you are talking about? I added "+1" as indicated below and I did not notice any difference. Can you provide steps I can take to reproduce what you are seeing?
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
|
Yes - here is a screen shot of today.
I am unable to put "0" ie zero into the input - it automatically converts it to "1". Hence, I think, the problem. Chart is a 5 min chart of the dax Dec contract.
Last edited by Mindset; 10-27-2008 at 02:50 PM.
|
|
|
|
|
|
#5 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Does this version work for you?
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Mar 2008
Location: UK West Sussex
Posts: 667
Thanks: 10
Thanked 11 times in 8 posts
|
That works fine Josh - should have thought of that solution myself.
|
|
|
|
|
|
#7 |
|
Member
Join Date: Feb 2008
Location: Michigan-USA
Posts: 42
Thanks: 1
Thanked 0 times in 0 posts
|
NinjaTrader_Josh / Mindset,
I have been looking all over the forum and trying to create an indicator like this. Can you please let me know how this is created? I have no programing experience. I did upload the script from Ninjatrader_Josh, however, I would like to have a horizontal line go further across the chart and cound not do so. Ive tried to "write" my own but as i said, I have no programming experience and I'm finding that I'm spending too much time to automatically draw two lines!! Please Help! Thanks! |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
|
Hello,
This will take programming, as you suspect. We will help with specific implementation questions but we cannot program it for you. I suggest contacting our 3rd party NinjaScript Consultants here: http://www.ninjatrader.com/webnew/pa...injaScript.htm Or attempt it yourself and post your specific questions.
Ben
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Junior Member
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
|
|
|
|
|
|
#10 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
See attachment.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Oct 2007
Posts: 3
Thanks: 0
Thanked 0 times in 0 posts
|
Thanks Josh...that was quick
|
|
|
|
|
|
#12 |
|
Senior Member
Join Date: Apr 2008
Posts: 132
Thanks: 0
Thanked 0 times in 0 posts
|
I am wondering how the fib numbers are drawn automatically. I couldn't find any values when I opened it in the editor. I thought I would find set values in the script, but it seems as though it is using some predetermined value from somewhere.
I would like to change the values that it is using. Is there a way of doing this? |
|
|
|
|
|
#13 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,567
Thanks: 261
Thanked 1,016 times in 997 posts
|
vast524, this script is not fib extension / retracement related, it determines and displays the high / low for a given timerange - http://www.ninjatrader-support2.com/...ead.php?t=8600
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#14 |
|
Member
Join Date: Jan 2008
Posts: 97
Thanks: 0
Thanked 1 time in 1 post
|
How would I change this so I can start the range the day before and use that in my calculations? Thanks!
GT |
|
|
|
|
|
#15 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
GreenTrade,
You need to first decide when you want to retrieve the information. Then you can loop through previous bars information and then get the information you need.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|