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 > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-21-2011, 11:22 AM   #1
cgeorgan
Senior Member
 
Join Date: Dec 2008
Location: Ann Arbor, MI
Posts: 323
Thanks: 4
Thanked 0 times in 0 posts
Default Adding a plot based on a calculated value within a strategy

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.
cgeorgan is offline  
Reply With Quote
Old 04-21-2011, 12:01 PM   #2
NinjaTrader_Dexter
NinjaTrader Customer Service
 
NinjaTrader_Dexter's Avatar
 
Join Date: Mar 2011
Location: Denver, CO
Posts: 103
Thanks: 0
Thanked 0 times in 0 posts
Default

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.
NinjaTrader_Dexter is offline  
Reply With Quote
Old 04-21-2011, 01:02 PM   #3
cgeorgan
Senior Member
 
Join Date: Dec 2008
Location: Ann Arbor, MI
Posts: 323
Thanks: 4
Thanked 0 times in 0 posts
Default Great!

Thank you, this works.
cgeorgan is offline  
Reply With Quote
Old 09-11-2011, 03:47 AM   #4
johmoh
Junior Member
 
Join Date: Jan 2011
Posts: 1
Thanks: 0
Thanked 0 times in 0 posts
Default Any workaround for Strategy Analyzer?

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!
johmoh is offline  
Reply With Quote
Old 09-11-2011, 07:31 PM   #5
NinjaTrader_Brett
NinjaTrader Customer Service
 
NinjaTrader_Brett's Avatar
 
Join Date: Dec 2009
Location: Denver, CO, USA
Posts: 6,498
Thanks: 109
Thanked 291 times in 280 posts
Default

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
NinjaTrader_Brett 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
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


All times are GMT -6. The time now is 04:42 AM.