basic fixed fraction strategyOne of the most common trading strategy is to invest a certain percentage in an asset, and keep the percentage fixed. For example you invest 2% in a stock, and as the value goes up you sell. And as the value goes down you buy. Always trying to keep the value of how much you have invested in that asset at 2%.
This works very well with assets that are stable. If you have something that fluctuates around a value, you will find yourself that each time it has gone back to the value in which you entered, you have actually gained something. With an asset that grows it also works. But in general you might find that more aggressive investments are more profitable. On the other side if there is a bubble, and you invest from the beginning using this strategy you will find yourself at the end of the bubble having gained something. Not as much as having bought all at the beginning and having sold all at the end, but still you will have sold going up, and bought going down. Plus you will have gained in the fluctuation.
Where is instead very dangerous is in stock and assets that go to zero. This because you might invest just 2% in an investment. But then as the strategy works you keep investing more as you are trying to keep 2%. You basically can lose all your money in this way (like if you were invested 100% in an asset). Very dangerous. This is why you should only use this with assets that you are sure cannot go to zero (an ETF on S & P 500 could be a good example).
So I coded this strategy on TradingView. basically it will ask you what percentage you want to invest. Then starts with entering with an order of that amount, and will then keep sitself at the same percentage. The system is discrete, as it can only buy a discrete number of contract.
Note that if you use this for cryptocurrency (where you can buy a fraction of a coin, like 0.01 btc) then you should multiply the money that you have by 10, 100, 1000 ... depending on how many digits after the comma your exchange permit you to trade.
If you are using this for forex or crypto it is quite easy that the number of order will explode. As such I added the date range taken from Allanster great script
One way to use Fixed Fractioning is to calculate the Kelly Index of an asset (which will give you a percentage), and then invest half or a quarter of the kelly in that coin, and then keep this fixed.
Another way (which goes well beyond what this script can do alone) to use the Fixed Fractioning is, if you have two assets that are anticorrelated (has a negative correlation), then investing a certain percentage of your capital in one and another percentage in another. And then each time one goes up (and the other goes down) you sell the one that is going up, and buy the one that is going down to keep the percentages fixed.
Something else, it is pretty common for people to invest around 80% of their money in an ETF that follows tha S&P500. This is why here we use 80%. Generally I have seen a more common investment strategy to be around 2%.
As everybody says: I am not responsible for your money. Study before investing.
M-oscillator
Ehlers-Smoothed Stochastic RSI StrategyI have been asked by several people for a Strategy based on the ES Stoch RSI Alert so here it is. The strategy has an adjustable backtest date range so that you can adjust the test time period to whatever you like. This strategy is based on a script by fskrypt.
Percent difference between price and MA Backtest Percent difference between price and MA
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Awesome Oscillator.MMouse_Lager_BCEAwesome Oscillator with added options for turning short trades on and off, as well as a start date for backtesting.
HOWTO Plot Entry PriceHi!
It's just an answer to question from one TV user: "How can I store the price at which I enter the long or short position, so that I can use it later to calculate a percentage based exit strategy. "
Hope this would help!
MACD + RSI + EMA + SMA + Ichimoku + overbought + buy, sell +Doji// MACD + EMA 200 *** buy and sell strategy (RSI, EMA, SMA) *** Doji Harami *** overbought and oversold *** trend direction *** divergence *** Ichimoku
Use this script in time 1h
BB+AO STRATto be used with AO indicator, based on forex strat --
www.forexstrategiesresources.com
works on 1/3/5/15/30 candles, buy signals are best when the black 3 fast ema crosses up through the red mid band
Ergodic CSI Backtest This is one of the techniques described by William Blau in his book
"Momentum, Direction and Divergence" (1995). If you like to learn more,
we advise you to read this book. His book focuses on three key aspects
of trading: momentum, direction and divergence. Blau, who was an electrical
engineer before becoming a trader, thoroughly examines the relationship between
price and momentum in step-by-step examples. From this grounding, he then looks
at the deficiencies in other oscillators and introduces some innovative techniques,
including a fresh twist on Stochastics. On directional issues, he analyzes the
intricacies of ADX and offers a unique approach to help define trending and
non-trending periods.
This indicator plots Ergotic CSI and smoothed Ergotic CSI to filter out noise.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
[STRATEGY]Kagi Emulator OCC & SLTP V3It is a Kagi candle emulator without resolution multiplier.
Also with take profit and stop loss.
Modify the value of "reversal" according to current symbol.
It's the backtest, coming soon, same script but with no-repainting alerts
Enjoy!
Slow Stochastic OB/OS StrategySame concept as my Slow RSI strategy script
But in Stoch format
I'm finding that i like Slow Stoch better than Slow RSi
This chart also includes exit guards.
It's up to you to decide if you want to pyramid or not. This chart is set at pyramid = 3
SLOW RSI OB/OS StrategySlowing the RSI down opens up a whole new world of possibilities.
This concept can work for a lot of TA indicators including the MACD.
See script source code for further description. Feel free to add pyramid trades at your own discretion in your format menu.
No this doesn't repaint!
CMOaDisparity Index Backtest The related article is copyrighted materialfrom Stocks & Commodities Dec 2009
My strategy modification.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
ACM22 not repaintedДелал данный скрипт для FORTS.Идеально подойдет тем,кто использует трейлинг стопы.В основе стратегии лежит RSI.Как по мне,хорошая вещь для проверки стратегии и ее оптимизиации.На скрине 50 контрактов,так что не сильно радуйтесь,а просто делите на 50 и получите показатели на 1 контракт.
Script make for futures on MICEX.U can change paramets of RSI,traling stop and stop loss .On a ps 50 futures USDollar-russian ruble.Use for testing and optimisation.
Simple profitable trading strategyThis strategy has three components.
Philakones EMAs are a sequence of five fibonacci EMAs. They range from 55 candles (green) to 8 candles (red) in length. A strong trend or breakout is marked by the emas appearing in sequence of their length from 8 to 55 or vice versa. These EMAs are also used to signal an exit. Only two EMAs are used for exit signals - when the 13 EMA crosses over/under the 55 EMA.
RSI gives a bullish signal when 40 > rsi > 70. Exit signals are oversold (30) or overbought (70)
Stochastics give a bullish signal when stoch < 80 and an exit signal when > 95.
Results include 3 ticks of slippage and taker fees of .002. Provides a pretty smooth equity curve with a 73% win rate and beats buy and hold by than 10x (returns about 60x overall) since start of 2017.
BUY STRENGTH SELL WEAKNESS REMADE COPYSuggestions and ideas appreciated...
This was just a simple idea I had with the RSI.
I would like to add a filter.. example:
Only to go long when RSI is overbought AND price above 200 ema
Viceversa for short, when oversold and price below 200 ema.
Is there anyone out there who can help ??
MACD Strategy custom for cryptosIt is a MACD with strategy simulation implemented to "tune" the MACD parameters for cryptos, it only use long and close strategy, not short
Laughing OwlLet the owl make you a fortune and keep you out of harm's way. Laugh your way all the way to the bank..