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 06-05-2009, 05:59 AM   #1
jthom
Member
 
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
Default Indicator / Panel.

In my strategy, I am unable to see whether my conditions are being calculated correctly.
Is there any possible way that once the strategy begins, a new chart forms with the corresponding inidicators?

Also is it possible for an indicator to calculate on Panel 1 (with price) in a strategy?


Many Thanks
jthom is offline  
Reply With Quote
Old 06-05-2009, 06:22 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,559
Thanks: 261
Thanked 1,015 times in 996 posts
Default

jthom, you can 'Add' your indicators to be displayed by the strategy, this makes it simpler to check if the trading logic works as you would expect - http://www.ninjatrader-support2.com/...ead.php?t=3228

You can also assign which planel to plot to...this is also contained in the link above.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 06-05-2009, 06:47 AM   #3
jthom
Member
 
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
Default

Ended up trying that. Still did not work.

protectedoverridevoid Initialize()
{
Sample(
0.63, 1.3, true).Panel = 1;
Add(Sample(0.63, 1.3, true));
CalculateOnBarClose = true;
}


Nothing shows at all.
jthom is offline  
Reply With Quote
Old 06-05-2009, 07:06 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,559
Thanks: 261
Thanked 1,015 times in 996 posts
Default

Does the 'Sample' indicator work successfully when loaded as a standalone study? You can't add specific plots of indicators, just the full indicator as custom programmed. You can take a look at the SampleMACrossOver to see how the calls are done for the two SMA's for example.
NinjaTrader_Bertrand 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
Indicator Panel Default wcmaria Indicator Development 3 01-08-2009 04:14 PM
Indicator writing to own panel and price panel cherriman Indicator Development 6 10-13-2008 03:14 PM
DrawText on Indicator Panel thepcmd General Programming 7 09-03-2008 10:24 PM
DrawRectangle in indicator panel zlpele Indicator Development 1 06-30-2008 04:34 AM
Indicator Panel Size BradB Indicator Development 3 09-14-2007 07:37 AM


All times are GMT -6. The time now is 03:26 AM.