![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,559
Thanks: 261
Thanked 1,015 times in 996 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2009
Posts: 55
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,559
Thanks: 261
Thanked 1,015 times in 996 posts
|
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.
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |