If you are a momentum trader then volatility is your friend.The current script analyzes and calculates the volatility of the security you are about to buy/short and update the number of shares according to this volatility. The 60 day standard deviation is used to calculate the volatility.
Example:
You have three instuments...
No notes
|
Money Manag.
Medium
|
| |
Every trading system you develop must be thoroughly tested to ensure that it is robust enough to continue outperforming the market in the future. One of these tests consists of changing the simulation or backtest start date and verifying that this doesn't affect the strategy performance. By changing the start...
No notes
|
Money Manag.
Medium
|
| |
The strategy consists of buying additional shares of a stock at a lower price than the first entry price.
It is similar to the "Averaging Down" MM Script but it is specifically built to work with the Connors_Alvarez MDD/MDU strategy.
The script goes through your open positions and if any current price...
No notes
|
Money Manag.
Medium
|
| |
If your portfolio or trading system performance decreases below a specific threshold then this money management script will automatically stop (pause) your strategy (by not taking more positions) for a specified number of trading bars. The stop threshold and the number of trading bars are two money management variables than...
No notes
|
Money Manag.
Advanced
|
| |
For a reliable trading system this score must be > 1.68. You can use it with any of your trading system during back testing to see how good your strategy is.
This script is based on an Advanced Momey Management and to use it, after downloading, follow the steps given below:
Simulation/backtesting...
No notes
|
Money Manag.
Medium
|
| |
The scale-in trading strategy was described in the following blog post: Money Management: Scale-in Trading Strategy
It is an example that shows you how to use money management events to create an advanced strategy that splits an initial order into two parts, executes the first one then checks for a...
No notes
|
Money Manag.
Medium
|
| |
With this simple script you can control your trading via instrument position outside lower Bollinger Band.If is instrument above its lower Boillinger Band trading is enabled , if is instrument below its Bolilinger Band, trading is disabled.
Fields:
BB Lower Period: Boillinger Band period
...
No notes
|
Money Manag.
Medium
|
| |
With this simple script you can control your trading via Moving Average. If is instrument above its Moving Average trading is enabled , if is instrument below its Moving Average trading is disabled.
Fields:
MA Period: Moving Average period ...
No notes
|
Money Manag.
Medium
|
| |
This simple script allows you to control the Percentage of Invested Capital that your strategy uses. It is done via the position a defined Instrument with its Moving Average. If the Instrument is above its Moving Average, Percentage of Invested Capital is scaled in to 100%.
If the instrument is below...
No notes
|
Money Manag.
Medium
|
| |
This script periodically rebalance your portfolio in three states:
1 == Weekly
2 == Monthly
3 == Yearly
...
No notes
|
Money Manag.
Medium
|
| |
The portfolio versus stock return item is a money management script you can include in any trading system.
Here is how it works:
For each incoming new position, it calculates the N-bar return of that stock and compares it with the N-bar return of the portfolio (equity).
The new position is taken only...
No notes
|
Money Manag.
Advanced
|
| |
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
|
| |
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 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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
This is the Maximum Intraday System Drawdown money management script.
...
No notes
|
Money Manag.
Medium
|
| |
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
|
| |
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 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
|
| |
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
|
| |
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 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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |
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
|
| |