Click here to Login





                                                   Money management - C#

  0

0
User
2011-02-01 06:22:39


Hello,

QuantShare supports functions in money management C# scripting.
But what about Class ?
In fact what version of C# is used and what is the scope of C# really covered ?
Thanks




QuantShare
2011-02-01 07:10:14

  0

Best Answer
C# of the Framework version 2.0 is used. You can call any C# functions.

The C# code you type in money management scripts, composites, global scripts... is internally inserted into a function. This function is then called by QuantShare.

You can create external functions and classes by defining them after "#functions#" keyword.

Example of a Global Script (Tools -> Script Editor)

AA aa = new AA();
MessageBox.Show(aa.a);

#functions#
public class AA
{
public string a = "test";
}



User
2011-02-01 07:27:27

  0

Thanks again


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
Withdraw a Fixed Amount Every Month - Money Management
Correlation Filter Money Management Strategy
Investing in stocks using the Kelly criterion money management st...
Return per Bar Stop - Money Management Strategy
Averaging Down Money Management Strategy

How-to Lessons
How to calculate the average of a time series using the money man...
How to debug a trading system using the money management tool
How to dynamically change the number of positions in a portfolio?
How to generate buy/sell signals from a trading system
How to add custom position-based metrics to your trading system

Related Forum Threads
Example of Money Management
Advanced Money Management
Place a profit stop through Money management strategy
Hedging Money Management
Ability to edit multiple money management scripts at once

Blog Posts
Basic trading system implemented using the money management tool
Create a trading strategy using the money management tool - Part ...
Create a trading strategy using the money management tool - Part ...
Several money management strategies in a trading system
Money Management: Scale-in Trading Strategy









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 © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.