![]() |
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
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
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]);
BTW, if I do this... Code:
StrategyPlot(1).Value.Set(Low[0]);
StrategyPlot(2).Value.Set(High[0]);
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.
|
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
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.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Jan 2009
Posts: 426
Thanks: 26
Thanked 11 times in 10 posts
|
Alright, I let it go...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |