NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 11-13-2008, 07:18 AM   #1
stefy
Senior Member
 
Join Date: Apr 2008
Posts: 310
Thanks: 0
Thanked 0 times in 0 posts
Default Counting an event

If I wanted to count how many times an event (say, ExitLong, or the kickoff of stoplosses) took place during my back test, which function/syntax should I use?

Thank you
stefy is offline  
Reply With Quote
Old 11-13-2008, 07:24 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

You would need to run your own counter variables and increment them with whatever logic you deem necessary.
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
counting particular executions 8DTK8 Strategy Development 5 10-16-2008 04:13 PM
OnConnectionStatus() Event mrlogik General Programming 4 09-12-2008 09:49 PM
Counting Bars dwalls Charting 1 09-11-2008 03:26 PM
Counting stop losses on the Longs and Shorts stefy Strategy Development 1 06-27-2008 06:15 AM
Is there any indi counting candle time ? blazer Miscellaneous Support 2 05-08-2008 11:56 AM


All times are GMT -6. The time now is 03:28 PM.