![]() |
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
|
|||||||
| General Programming General NinjaScript programming questions. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Dec 2008
Location: Ann Arbor, MI
Posts: 323
Thanks: 4
Thanked 0 times in 0 posts
|
Hi-
Title says it all. I know how to add plots through the Initialize() function in a strategy, but how can I display a plot that displays a value calculated over time within a strategy, as its running? For example, say I have all sorts of buy signals, and I'm constantly polling my buy signals to give me an overall value. I would like to plot the aggregate value of my buy signals over time, either as an overlay or as a separate window in the chart. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
|
Hello cgeorgan,
Thank you for your post. You can see how this is done in the following sample: http://www.ninjatrader.com/support/f...ead.php?t=6651 Please take a look at this and let me know if I can assist any further.
Dexter
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2008
Location: Ann Arbor, MI
Posts: 323
Thanks: 4
Thanked 0 times in 0 posts
|
Thank you, this works.
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
|
Hello NinjaTrader_Dexter,
as you wrote: It doesn't work in Strategy Analyzer. Is there any way to plot calculated values of a strategy in Strategy Analyzer? Many thanks in advance! |
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
|
Hello,
Only way to do this is with a strategy plot. Please see this value for plotting in a strategy. http://www.ninjatrader.com/support/f...ead.php?t=6651
Brett
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding an Index plot on a stock price plot | murthymsr | Charting | 3 | 01-14-2011 11:51 AM |
| Adding to a position based on a fixed number of ticks | fury661 | Strategy Development | 1 | 09-09-2010 12:13 PM |
| Problem adding Plot to Strategy | brooksrimes | Strategy Development | 3 | 07-02-2010 09:45 AM |
| Adding a plot on the chart in the strategy initialize() | adamus | Version 7 Beta General Questions & Bug Reports | 2 | 04-19-2010 10:33 AM |
| Alternative to tick based/bar based strategy calculation? (i.e every minute/X ticks) | Elliott Wave | Strategy Development | 9 | 07-11-2008 03:11 AM |