Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   Calling a Function from another Function

  0

0
swalk10
2010-08-29 17:59:03



How do you call one C# function from another C# function without using the Formula system?

If the vector-based-compiler must be used, is it possible to pass a VectorD to a formula?

For example: How would I create a moving average (using the function) of a VectorD in a function?

Thanks very much
Scott



QuantShare
2010-08-29 20:23:38

  0

Best Answer
Hi,

yes it is possible to pass a VectorD to a formula.

Here is an example:

QSFormula formula = cFunctions.CreateFormula("a = myfunction(c);");
formula.SetParameter("c", myVectorD);
formula.Compile();
VectorD myNewVectorD = formula.GetVectorDouble("a");



swalk10
2010-08-29 20:51:04

  0

Thanks, great!


No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Choose function
Day of week and Week number function
News parser function
NORMDIST - Normal Probability Density Function
Swing Point Function (SP)

How-to Lessons
How to add trades from one portfolio to another one
How to hide a trading indicator from a particular time frame
How to import trading items from other accounts
How to copy the data/settings of an account to another account
How to generate buy/sell signals from a trading system

Related Forum Threads
Interpretation of " DRAWDOWNEQ" function
Count() with STDdev function anomoly
Percent Rank Function Needed
TimeframeApply function
Comp Function

Blog Posts
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
The 'inside period' function
How to create market indicators using the composite function - Pa...
Diversify your portfolio by investing in stocks from various indu...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items