![]() |
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
I'm embedding my indicator in my strategy.
In the indicator I have Print(....) statement. My intention was to use Print to trace the indicator behaviour to inderstna internal computation sequence. However Print doesn't place anything in output window. Of course, the same Print works for this indicator used standalone. Could you suggest any way to trace, except of printing messages to file/stream ? |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
My intention was to use Print to trace the indicator behaviour to UNDERSTAND internal computation sequence.
Sorry |
|
|
|
|
|
#3 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
xTrader1, not sure I follow - did you put a Print statement in each method you use in the indicator so you can track the processing sequence? http://www.ninjatrader-support2.com/...ead.php?t=3418
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#4 | |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
Quote:
|
|
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
I see, then you would need to apply the indicator and open the output window to see the generated statements...if you want to trace the strategy calls to this indicator you have embedded, place a Print statement in your strategy as you call this to trace.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
Quote:
MyStrategy: CurrentBar=1 ,y=1 MyEmbeddedIndicator1: CurrentBar=1 , x1=27 MyEmbeddedIndicator2: CurrentBar=1 , x1=46 MyStrategy: CurrentBar=2 ,y=1 MyEmbeddedIndicator1: CurrentBar=2 , x1=33 MyEmbeddedIndicator2: CurrentBar=1 , x1=46 ....etc Would both Print statements (in the strategy and in the embedded indicator work, I would receive the sequence above. I you can assure me the Print statemnt works in the embedded indicator, I should check another possibility - that for certain reason the indicator is not invoked at all by the strategy. |
|
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Yes, just did a little test xTrader1, you should see the called sequence this way.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
My strategy is based on multiframe RenkoType indicators, provided by Roonius a few months ago.
I'm using it succesfully in several proprietary indicators, but is it possible that the multiframe strategy cannot work with this Renko type and this is the reason I cannot see the indicator printouts ? |
|
|
|
|
|
#9 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
|
Might be xTrader1, I vaguely remember issues around this custom chart type as far as the OnBarUpdate() calls go, we'll provide a fully supported RenkoBars type per default with NinjaTrader 7 - http://www.ninjatrader.com/webnew/NT7/NinjaTrader7.html
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#10 |
|
Senior Member
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
|
I don't dare to ask when it will be released.
![]() ![]()
|
|
|
|
|
|
#11 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
NT7 is already in a closed beta which will be an open beta shortly. I don't have an ETA at this point in time though.
Josh
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strategy Wizard indicator on indicator | pgabriel | NinjaScript File Sharing Discussion | 1 | 08-29-2009 01:19 PM |
| Indicator in strategy? | igorvlassov | Strategy Development | 5 | 12-20-2008 03:19 PM |
| Strategy into an indicator | paco99 | Indicator Development | 2 | 08-16-2008 11:06 AM |
| Esignal: Enable Tracing | pkinoc | Connecting | 5 | 06-19-2008 04:29 PM |
| Using Strategy Wizard to develope Indicator on Indicator | mrlucky1x | Indicator Development | 3 | 08-25-2007 04:09 PM |