NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > NinjaScript Development Support > General Programming

General Programming General NinjaScript programming questions.

Reply
 
Thread Tools Display Modes
Old 04-19-2008, 07:16 PM   #1
kegrande
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Default Can I define custom functions?

To clean up my coding I'd like to define a callable function, something like the internal Slope() function. Can this be done?
kegrande is offline  
Reply With Quote
Old 04-19-2008, 09:16 PM   #2
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

Indeed. You can do it how you would normally do it in C#.
NinjaTrader_Josh is offline  
Reply With Quote
Old 04-20-2008, 01:57 AM   #3
kegrande
Junior Member
 
Join Date: Mar 2008
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
Smile

Thanks Josh.
kegrande 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
renaming functions z32000 General Programming 3 12-03-2007 10:47 AM
Order functions gert74 Strategy Development 1 06-27-2007 01:20 AM
Accessing Custom Indicator Functions in Strategies ThePatientOne Strategy Development 1 05-29-2007 01:29 PM
Is it possible to define sub category or user define category for parameters theperm Strategy Development 7 05-16-2007 08:48 AM
How do we define the trading day on charts? Lupus Charting 7 05-22-2006 03:18 AM


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