NinjaTrader Support Forum  

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 11-19-2008, 05:16 AM   #1
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default How to plot a double from a strategy

I have two double variables which I'd like to plot from my strategy. I know how to plot DataSeries (Add new Plot) but it doesn't work with the doubles. How can I do that?

Thank you
stefy is offline  
Reply With Quote
Old 11-19-2008, 07:56 AM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,


You cannot plot from within a strategy. Please plot from within an indicator or follow these instructions for limited functionaly plotting from within a strategy:
http://www.ninjatrader-support2.com/...ead.php?t=6651
NinjaTrader_Ben is offline  
Reply With Quote
Old 11-24-2008, 09:20 AM   #3
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default

Same problem with the indicator: I have two double variables (MIN and MAX) that I want to plot around the price.
If they were DataSeries, I know I could plot them using Add() and the Set function, but how can I plot the doubles?
If it's not possible, how can I convert the doubles into two DataSeries to be able to plot them?
Thank you
stefy is offline  
Reply With Quote
Old 11-24-2008, 09:41 AM   #4
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Are you doing this within a strategy? If so, you will need to use my last post to learn more about how to do this.

If you are doing this within an indicator please go through our help guide tutorial using the following link. The tutorial describes this.
http://www.ninjatrader-support.com/H...verview18.html


Please post some code so we can assist you better.
NinjaTrader_Ben 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
ParabolicSAR called from strategy does not plot ATI user Strategy Development 15 11-03-2008 02:42 PM
Plot My DataSeries from a Strategy GuyFB Strategy Analyzer 4 01-16-2008 01:03 AM
indicator output double available to a strategy gluebunny Strategy Development 1 12-09-2007 02:49 AM
Easiest way to plot a value from within a strategy? FireFly General Programming 7 06-11-2007 08:33 AM
Double moving average ,double time frame Mauro60 Indicator Development 3 01-23-2007 02:11 AM


All times are GMT -6. The time now is 07:23 AM.