Click here to Login





                                                   Change exit type in Advanced Money Management

  0

0
Ludwig Avonts
2015-11-20 04:11:29


Is it possible to change the exit type in AMM when exiting a position ?
All exits are now reported as "Updated Order - MM" in the simulationreport (tab Exit Rules). Since I have modeled different exit rules in AMM,
I would like to update the exit type in the OnClosePosition event, to get an view in the Exit Rules report how many times each rule was used exiting the position during the simulation.



QuantShare
2015-11-20 04:21:31

  0

Update the "CloseReason" field of the Position.

//MMPosition pos
pos.CloseReason = "Exit Rule 2"; // Example



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
Long strategy created with the money management tool
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

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 set order type of a trading system programmatically
How to change volume bar colors when the price closes down

Related Forum Threads
Money Management script and exit options in the wizard
example of advanced money management tool Stop Order
Advanced Money Management
Backtesting: Using lookback money management feature
Add Money Management Settings to Reports

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.