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 10-23-2009, 05:56 AM   #1
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default Tracing an indicator embedded in a strategy..

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 ?
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 06:01 AM   #2
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default

My intention was to use Print to trace the indicator behaviour to UNDERSTAND internal computation sequence.

Sorry
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 06:12 AM   #3
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-23-2009, 06:18 AM   #4
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
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
I placed "Print" in OnBarUpdate in the embedded indicator.
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 06:21 AM   #5
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-23-2009, 06:32 AM   #6
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default

Quote:
Originally Posted by NinjaTrader_Bertrand View Post
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.
I know about all above. What I need is to see in output window a sequence like:
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.
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 06:46 AM   #7
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

Yes, just did a little test xTrader1, you should see the called sequence this way.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-23-2009, 06:54 AM   #8
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default It is RenkoType.

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 ?
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 06:56 AM   #9
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,569
Thanks: 262
Thanked 1,018 times in 999 posts
Default

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
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 10-23-2009, 07:22 AM   #10
xTrader1
Senior Member
 
Join Date: Apr 2009
Posts: 215
Thanks: 0
Thanked 6 times in 4 posts
Default

I don't dare to ask when it will be released.
xTrader1 is offline  
Reply With Quote
Old 10-23-2009, 07:26 AM   #11
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

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.
NinjaTrader_Josh 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
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


All times are GMT -6. The time now is 12:24 AM.