Click here to Login








Updating Margin Factor During Drawdown

by QuantShare, 4232 days ago
Share |






Margin could be defined as the percentage of initial capital that you can invest. A default margin factor of 1 indicates that you can invest 100% of your capital. A margin factor of 1.5 indicates that you can invest 150% of your initial capital. In this case, 50% of the initial capital is borrowed.

What happens if you decrease or increase your portfolio's margin factor when the portfolio's drawdown decreases below -10 or -20?
This money management script will answer this question for you.

Add it to your trading system then update the different MM fields:
DefaultMarginValue: Sets the default margin factor of the portfolio (1 for example)
DrawdownBelow-10: Sets the new margin factor when the portfolio's drawdown decreases below -10
DrawdownBelow-20: Sets the new margin factor when the portfolio's drawdown decreases below -20

You can even optimize each one of these fields to see which combination works best for your trading system.

The implementation of this script is very easy. Here is how to load the code source behind this money management script:
- Update your trading system
- Select "Money Management" tab
- Click on "Update Script"
- Select "OnEndPeriod" event

You can update or add additional drawdown thresholds by simply adding more conditions (else if).



Share This ->
Share |


You have to log in to bookmark this object
What is this?




Type: Advanced Money Management

Object ID: 1296


Country:
All

Market: All

Style:
All

Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects

Empty

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis



Random Blog Posts

Learn How to Create Your Own Technical Analysis Indicators

How to Pick the Best Trend Indicators

Update Chart Layout based on Active Ticker Symbol - Part 2

Update Chart Layout based on Active Ticker Symbol

Using Average True Range to Measure Intraday Volatility

How to Backtest Your Trading System for Each Industry

Create Profitable Trading Strategies with Exchange Traded Funds (ETFs)

3 Market Indicators based on Fundamental Data

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






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.