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 01-24-2009, 08:39 PM   #1
molecool
Senior Member
 
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
Default Always getting close data instead of high or low

I am trying to plot the lows and highs of a data series in my strategy. This plot is set to 1sec of the ES futures while my chart is set to 60min.
Code:
            StrategyPlot(1).Value.Set(Lows[1][0]);
            StrategyPlot(2).Value.Set(Highs[1][0]);
This seems to fail because the plot now shows the highs and lows on a second basis.

BTW, if I do this...

Code:
            StrategyPlot(1).Value.Set(Low[0]);
            StrategyPlot(2).Value.Set(High[0]);
... it works. I think the reason for that is that the chart data is primed for 60min of ES data while the strategy plot is set to one second. The reason I'm doing this is because otherwise I am unable to align both plots due to the previous issue I reported.

How would I plot the highs and lows of the ES on an hourly basis but have it update on a tick or second basis? This is something I was able to do in thinkscript very easily and I'm surprised this is turning into such a time sink on such a more advanced platform. I think it might be possible to use a MIN(3600) and and MAX(3600) and maybe do something more creative for the current candle. But this seems like it would be a bit of a hack....

At this point I'm getting very discouraged about using NT. These are simple things I was able to make happen in thinkscript in a matter of minutes. The input I have been getting thus far has been rather minimal and I am not sure if I can recommend NT to my group.

Thanks!

Michael
Last edited by molecool; 01-25-2009 at 01:05 PM.
molecool is offline  
Reply With Quote
Old 01-26-2009, 07:30 AM   #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

Michael,

If you want plots to update on every tick you should consider just using CalculateOnBarClose = false.

As discussed in your prior thread, StrategyPlot comes with its limitations. NT7 will provide multi-series charting.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-26-2009, 11:30 AM   #3
molecool
Senior Member
 
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
Default

Yes, that's what I did already and I got it to work by using the MIN and MAX approach. However, there are data discrepancies between what I see on the top chart and on the bottom plot. The lows/highs are incorrect about 30% of the time - very strange.
molecool is offline  
Reply With Quote
Old 01-26-2009, 11:32 AM   #4
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

Michael,

Unfortunately I have nothing else I can assist you with for this matter. NT7 will provide multi-series charting. Please try again then. Thank you.
NinjaTrader_Josh is offline  
Reply With Quote
Old 01-26-2009, 11:36 AM   #5
molecool
Senior Member
 
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
Default

Alright, I let it go...
molecool 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
high-low-CLOSE pricebars JimMM Suggestions And Feedback 1 10-11-2008 08:00 AM
Charting high/low/close and open/close widths gluebunny Charting 11 09-29-2008 10:47 AM
Plotting Open, High, Low, and Close. strategy1 General Programming 1 07-22-2008 03:20 PM
Previous Day's Close, High, Low Billy Valentine General Programming 2 04-13-2008 04:36 PM
Trouble with Open, High, Low, Close SuzyG Indicator Development 4 03-05-2007 04:03 AM


All times are GMT -6. The time now is 09:13 AM.