Click here to Login

                                                   Money management - C#


2011-02-01 06:22:39


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 ?

2011-02-01 07:10:14


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();

public class AA
public string a = "test";

2011-02-01 07:27:27


Thanks again

No more messages


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"


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 add a metric in the trading system simulation report
How to dynamically change the number of positions in a portfolio?
How to generate buy/sell signals from a trading system

Related Forum Threads
Advanced Money Management
Place a profit stop through Money management strategy
Hedging Money Management
Ability to edit multiple money management scripts at once
Can a Money Management script access a custom function?

Blog Posts
Several money management strategies in a trading system
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 ...
Money Management: Scale-in Trading Strategy

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.