This money management script adds a logic to prevent a position from being closed if it isn't active for at least a specific number of bars.
As an example, if you specify the minimum trade bars to 10 then any position that is about to be closed but was not bought...
No notes
|
Money Manag.
Medium
|
| |
This script is simulating a trailing stop limit buy/sell order with exact levels.
With the first parameter you can adjust the distance of the limit entry in percent based on the last high (long order) or low (short order) and with an second parameter you can setup the valid time of...
No notes
|
Money Manag.
Medium
|
| |
This money management item allows you to specify an interest rate so that the backtest tool can use it to calculate interest earnings on your cash.
Note that when your balance/cash is negative (Example using margin), the backtester will withdraw cash daily based on that fixed interest rate.
You can see the...
No notes
|
Money Manag.
Advanced
|
| |
This script is simulating a trailing stop limit buy/sell order with exact levels.
With the first parameter you can adjust the distance of the limit entry in percent based on the last high (long order) or low (short order) and with an second parameter you can setup the valid time of...
No notes
|
Money Manag.
Medium
|
| |
Unlike the 1406 script, the current one exports the date in addition to the equity value.
It will automatically open an excel document with the date and equity value for each data point.
Please note that in order for this item to work you need to add a reference to the excel...
No notes
|
Money Manag.
Medium
|
| |
By adding this money management to your trading system, you can prevent the backtester from purchasing any security that was previously bought in the past N days if its most recent return is lower than the specified threshold.
As an example, let us say that your trading system bought GOOG and...
No notes
|
Money Manag.
Medium
|
| |
This money management script allows you to use an asset as a signal in your trading system then trade a different asset.
It works by creating a trading system with one single asset, defines your buy and short rules (no sell or cover) then specify in the money management script inputs...
No notes
|
Money Manag.
Medium
|
| |
This money management script calculates the 1-bar return for the strategy's equity curve and the benchmark you provide in the money management inputs. It then compares the values and adds the percentage of bars the equity curve is performing better than the benchmark in the trading system report table.
The percentage...
No notes
|
Money Manag.
Basic
|
| |
In QuantShare, you can simulate a strategy that buys on Margin by editing the trading system, selecting the "Settings" tab, clicking on "Capital" then updating the "Margin Factor" field.
When trading U.S. stocks, you can for example set this value to 2 or you can set it to a higher number...
No notes
|
Money Manag.
Advanced
|
| |
The 2 percent rule is a simple risk management strategy that controls the maximum amount you can lose for each invested asset.
The rule here is very simple: Never risk more than two percent of your total capital on any single stock. If you end up having 10 consecutive losses, that...
No notes
|
Money Manag.
Basic
|
| |
If you have a stop rule and you want to disable it under certain circumstances then this script may help you achieve this.
By adding this money management script to your trading system, you are going to change the stop default behavior.
In order for your original stop rule to be...
No notes
|
Money Manag.
Advanced
|
| |
This item calculates the number of days since the inception of the security (first available bar date) and then accepts or rejects a new order depending on whether that value is higher or lower than a specified threshold.
If for example your want to ignore stocks that are less than 365...
No notes
|
Money Manag.
Basic
|
| |
The following money management script calculates the weight of the industry given the current open positions and orders and rejects any new order if the new weight would be higher than a specific threshold.
If you specify an industry weight of 50% then your portfolio will always have an industry concentration...
No notes
|
Money Manag.
Advanced
|
| |
The Laggard money management script is designed to sell a stock or a security that lags behind a specified index.
The script has two parameters which are "Benchmark Symbol" and "Bars". Any of your stock in the simulation will be sold if after the specified number of bars (Bars), the stock's...
No notes
|
Money Manag.
Medium
|
| |
This money management script allows you to set a number of days to wait before purchasing a security that you have sold previously.
Imagine you purchased GOOG then sold it after few days on 5 July 2015. After 5 days your system generates a new buy signal to purchase GOOG again.
By...
No notes
|
Money Manag.
Medium
|
| |
This money management script allows you to specify a minimum number of positions in your trading system.
The script uses the "OnClosePosition" event to reject any exit order if the current number of positions (both longs and shorts) in the portfolio is equal or below the specified threshold.
Formula rules as well...
No notes
|
Money Manag.
Basic
|
| |
After backtesting a trading system, you can create a ticker symbol from the strategy's equity by right clicking on the equity chart (in the simulation report) then selecting "Equity to Symbol" option.
This money management script allows you to automate this process by creating a ticker symbol for your strategy's equity...
No notes
|
Money Manag.
Medium
|
| |
This money management script calculates monthly and yearly standard deviation based on monthly and yearly returns.
It calculates monthly/yearly returns, calculates the standard deviation from these returns then adds two metrics in the simulation report table at the top.
If you are looking for a trading system that has consistent performance over...
No notes
|
Money Manag.
Advanced
|
| |
From Van K. Tharps book "Trade your way to financial freedom"(chapter 14) with an addition of "number of positions". Total equity volatility is divided by this number to allow simultaneous positions. The script assumes it's dealing with stocks and is long only. Feel free to alter to suit your needs...
No notes
|
Money Manag.
Medium
|
| |
Say you have a strategy that invests in 5 ETFs and you would like to set manually the weight of each security. By default QuantShare allocates an equal amount of money to each position so if you have 5 allowed positions in your trading system, each ETF will get 20%...
No notes
|
Money Manag.
Medium
|
| |
Tax implications of your trading should always be taken into account. And in order to do so, I have just created a new money management script that will allow you to measure your trading strategy performance by accounting Taxes.
Depending on your country, you would pay a different tax on each...
No notes
|
Money Manag.
Medium
|
| |
If you have a trading system that is not fully invested 100% of the time and you want to invest that cash into a security like a bond fund or a money market fund then you can use this money management script to do that for you.
Steps:
- Download this money...
No notes
|
Money Manag.
Medium
|
| |
This money management script loads dividend data and reinvests these dividends in your trading system using the "AddCash" function available in the "Functions" class of the "OnEndPeriod" event.
Dividend data can be collected using the following downloader:
93
...
No notes
|
Money Manag.
Medium
|
| |
Money Management script, that reduces invested capital depending of value of selected symbol:
- if close price is above long SMA and above short SMA - script invests 100% capital
- if close price is below long SMA and below short SMA - script invests 0% capital
- if close price is between...
No notes
|
Money Manag.
Basic
Private
|
| |
This is a quick script to pull some data from portfolios and write them into a common csv file for later analysis. This should be a workaround until portfolio stats are accesible from Scripts. Then we rather pull them there and do analysis within QS, Azouz will include this in...
No notes
|
Money Manag.
Medium
Private
|
| |
This is an expansion and on the original which diplayed prices rather than returns. I did this 2 years ago and forgot to share.. :(
Added: Equity Cumulative, Benchmark Cumulative, and Equity OverUnder(Equity Cumulative - BM Cumulative)
----------Original--------- ...
No notes
|
Money Manag.
Basic
|
| |
Megan ratio is a performance metric that can be used to assess and compare different trading system results. Megan ratio was introduced in an article in the Stock and Commodities magazine by Oscar G. Cagigas and it stands for maximum exponential growth annualized.
This money management script calculates the Megan ratio...
No notes
|
Money Manag.
Advanced
|
| |
This money management script defines a "Ratio Cash" variable that is used to set the percentage of capital to invest in equities. The rest of the capital remains in cash.
If "Ratio Cash" is equal to 20 then 80% (100-20) will be invested into equities (at least available for buying/shorting securities).
The...
No notes
|
Money Manag.
Advanced
|
| |
This is the Maximum Intraday System Drawdown money management script.
...
No notes
|
Money Manag.
Medium
|
| |
Maximum Adverse Excursion (MAE) and Maximum Favorable Excursion (MFE) for individual trades are available under the "Trades" and "MAE/MFE" tabs of the trading system report.
The current money management script calculates the MAE and MFE for the whole trading system.
The calculation is based on the highest/lowest portfolio equity compared to...
No notes
|
Money Manag.
Medium
|
| |
When added to a trading system, the following money management automatically opens an excel document and exports the equity data when the simulation/backtesting ends.
Before using it, open the money management script using "Tools -> Advanced Money Management Script -> Load".
Select "Global" event, click on "Menu" at the bottom then select...
No notes
|
Money Manag.
Medium
|
| |
This staggered entry money management strategy lets you enter a certain number of shares when the buy rule is met and the rest of the shares when the position increases by a specific percentage.
For example, we can define the following strategy:
Enter long 60% of shares when the stock crosses its...
No notes
|
Money Manag.
Advanced
|
| |
This money management script allows you to add a trailing stop to your trading strategy AFTER a condition is met. For example, the script will allow you to set a 2% trailing stop after RSI(2) > 70.
The script accepts two inputs from the user: the condition to evaluate, and...
No notes
|
Money Manag.
Medium
|
| |
Here is a very simple money management script that shows you how to buy a fixed number of shares instead of a number of shares determined by the available cash (default money management sizing method).
In order to use this script, simply add it to your trading system. Later, when selecting...
No notes
|
Money Manag.
Medium
|
| |
The Exit Postition Based on Profitability money management script is used to exit an open position if X% profit has not been achieved after Y number of bars.
The values for the profit threshold (X) and the number of bars (Y) are configurable using the money management variable inputs screen....
No notes
|
Money Manag.
Medium
|
| |
I had the QuantShare development team build this advanced money management (AMM) script to allow testing of several advanced rebalancing options triggered when a new buy signal is received but insufficient margin is available to take the new position.
When a new buy signal is received and insufficient margin is...
No notes
|
Money Manag.
Advanced
|
| |
This is an enhancement from the "1327" MM script. This version has many calculation bug fixes and adds the following:
Four inputs:
1) # Tr Rolling R - the number of trades to use in rolling R/SQN calculation
2) Include Dividends - flag to indicate whether to include dividends in calculations (requires...
No notes
|
Money Manag.
Advanced
|
| |
Implements traditional fixed fraction position sizing (fixed percentage risk per trade). In this case, risk = (entry price - stop) * nbshares. If you have an account of $100,000, @ 1.5% risk, the first trade risk will be $1500. $1500 is not the same as margin used...
No notes
|
Money Manag.
Medium
|
| |
This MM scrip adds many system statistics and per trade metrics to help compare trading systems. Most of the calculations are done in terms of R (defiend as initial risk).
Trade Statistics:
Total R - P/L in terms of R
Expectancy (R)
...
No notes
|
Money Manag.
Advanced
|
| |
This script adds two columns, entry price and exit price, in the "Trade -> Realized trades" table of the simulation report. Entry price refers to the execution price of the buy or short order and the exit price refers to the execution price of the sell or cover order. For...
No notes
|
Money Manag.
Advanced
|
| |