NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


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

General Programming General NinjaScript programming questions.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-21-2010, 06:26 AM   #1
Wessel
Member
 
Join Date: Jul 2007
Location: Maarn, Netherlands
Posts: 94
Thanks: 0
Thanked 3 times in 2 posts
Send a message via MSN to Wessel
Default How to influence the Function Signature?

Hi,

I'm building an indicator and I also like to use this indicator inside a strategy.
Now I get all the values exported. However the order of the variables in the construtor changes every time I add a new variable??

Example:
1st version

double myValue = JWR_Ind(int b1, int b2, int b3).PubValue[0]

Now if I ad another variable say bool a. This variable is automatically added to the front in the function signature like this:

double myValue = JWR_Ind(bool a,int b1, int b2, int b3).PubValue[0]
I would like it to be added at the end. How do I do that?

So that the method would look like:
double myValue = JWR_Ind(int b1, int b2, int b3, bool a).PubValue[0]

These functions are automaticcally created by Ninja in the Section:
#region NinjaScript generated code. Neither change nor remove.

What is the best practice to fix my function signature?

Wessel
Wessel is offline  
Reply With Quote
 

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
Please Add a 2nd "Draw Triangle" signature David Lean Suggestions And Feedback 4 08-31-2011 10:41 PM
Can't use signature cassb Suggestions And Feedback 3 04-14-2010 02:22 PM
Forum signature tamas Suggestions And Feedback 7 01-14-2010 09:18 AM
Please Add a 3rd "Signature" to DrawRegion David Lean Suggestions And Feedback 1 01-09-2010 10:17 AM
How to define the signature of indicator constructor? ooppie General Programming 5 04-24-2008 02:26 AM


All times are GMT -6. The time now is 06:29 PM.