Decent Martingale Strategy [Pinescript v3]In my experimentation to add some sort of hedging to trades, I stumbled on the Martingale roulette betting strategy.
If it works in the casino, why not here?
The principle is simple:
If you lose a trade, immediately go the opposite direction and double your bet.
In this case, we're just applying a multiplier.
The strategy is a simple EMA crossover - defaulted to my favorite periods 8 and 62.
Enjoy :) I'll make a new one that's contained in a function, so you can simply implement it in your own strategy and have it monitor winning/losing trades automatically.
Cheers,
DasanC
Crossover
CryptoMatt GainMaker for ChartBulls StudentsThis script is intended for the ChartBulls Trading Students. The code is now open, so you can customize however you like. Cheers
Bitazu MA 5,10Displays 5,10 MAs on a single indicator.
Useful for Crypto trading and reduced the number of indicators needed to view multiple EMAs
When shorter MA crosses over the longer it's a good sign of Bullish/Bearish reversal.
This sentiment is more true at longer timeframes, such as daily candles, as the trend has more momentum.
Bitazu MA 10,20Displays 10, 20 MAs on a single indicator.
Useful for Crypto trading and reduced the number of indicators needed to view multiple MAs
When shorter MA crosses over the longer it's a good sign of Bullish/Bearish reversal.
This sentiment is more true at longer timeframes, such as daily candles, as the trend has more momentum.
Repulsion Moving Average - Least Crosses MAA Moving Average With Less Whipsaws Signals
The cross of the price with a moving average is one of the easiest strategy in technical analysis and could have worked if market price wasn't so noisy (In general periods of 1 to 20 produces the most whipsaws) . So it is possible to create a moving average who can manage to escape those noisy periods and produce 0 whipsaws ?
This question was asked by one of my work colleagues and i responded : "well... almost 0".
The Motion Of A Moving Average
Moving Average estimate the Trend and will always have phase shift, they will still follow the price and cross it during high volatility or low volatility periods, and when a moving average cross the price during a low volatility period you can expect lot of crosses.
In order to fix this behaviour a simple calculation exist :
FixMa = LongPeriodMA + MediumPeriodMA - ShortPeriodMA
We can see things in that way, the medium term MA is high pass filtered (subtracted) with a short term MA and the result is summed to a long term MA. We give more reactivity to our long term MA and thus creating some kind of repulsion motion with the price. Of course this can sometimes make the filter kinda zero-lag to some price periods (when the long term MA is near the price) .
Comparison
In red a simple moving average of period 100 and in blue our repulsion moving average :
In the image the short term moving average period is 100, since the long term period of the moving average is equal to short term x 3 you could be interested to look at the comparison of our moving average with the actual long term moving average :
Less crosses, i think you can see it.
Something to notice is that its always a tradeoff between Signal Speed and Signal Numbers , a classic moving average create faster signals but also a high numbers of them, a classic trailing stop create less signals but slowest ones, our moving average is some kind of average between those indicators.
Improvement Methods - Choice of The Filter/More Terms
A bad behaviour of our filter can be fixed by using filters who tend to create less crosses with the price or by developing the formula of our filter by adding more terms as follow :
fixma = ma(Price,a) + ma(Price,b) + ma(Price,c) - ma(Price,d) - ma(Price,e)
where a > b > c > d > e . The number of subtractive terms is equal to the number of summing terms - 1.
Way To Use
This indicator can be used like any moving average with cross strategy. Can also be used as a trailing stop.
No tests have been made proving that this indicator provide support and resistance levels, such signals come from more centered indicators.
Hope you enjoy
For any questions/demands feel free to pm me, i would be happy to help you :)
MA Crossover TypeDraws the up and down crossovers of a specified MA Type.
# Inputs
- MA Type: "sma", "ema", "swma", "vwma", "wma"
- Length >=1
- Source
- Offset >= 0
- Show cross Up?
- Show cross Down?
# Open Source
The code is open source @ github.com and uses the commonpine library github.com
13/21 EMA + Ichimoku Kinko Hyo StrategyThis trading strategy uses combination of the Ichimoku Kinko Hyo system with Fibonacci numbers based 13/21 exponential moving average ( EMA ) crossover, giving excellent results in trending assets !
EMA + Ichimoku Kinko Hyo StrategyThis trading strategy uses combination of the Ichimoku Kinko Hyo system with Fibonacci numbers based exponential moving average(EMA) and RSI 12/24 crossover, giving excellent results in trending stocks !
2 Moving Average Cross SignalsThis indicator is meant to aid those who use Moving Average crosses as part of their trading strategy. This can be used to help identify turning points in trends.
You can customize what timeframe the MAs are derived from (e.g. can use current timeframe, or can hold it to 1d timeframe across all other timeframes)
When the fast and slow MAs cross each other, the background of the candle where the cross happened will be highlighted green or red (changeable), this will help visualize where the crosses are happening, regardless of whether or not you actually want the moving average lines printed on the charts. This could help keep the chart less cluttered.
Finally, you can choose between SMAs, EMAs, WMAs, and Linear MAs.
Enjoy
Help Requested - "Time-Slot" Delay for Crossover StrategyHello Tradingview Community,
I've been playing around with some various volume-based indicators, and recently have been experiencing a delay in the entries for my strategy for 2 minutes in this scenario. If the time is adjusted, it also is delayed 2 bars.
In this example, the "Short" position should enter when the blue line Crosses under the upper green line, and visa vera for the "Long" position. A simplified Pine Script is available below as well.
I have Googled this issue and attempted to modify the code with => criteria instead, but too no avail. Would appreciate any help or anyone who could point me in the right direction on this Time Delay Issue. Thanks!
Klinger Volume OscillatorThis indicator was originally developed by Stephen J. Klinger (Stocks & Commodities, V.15:12 (December, 1997): "Identifying Trends with Volume Analysis").
NOTE : this is the only correct version of Klinger Volume Oscillator in the public library.
Like and follow for more open source indicators!
Happy Trading!
EMA TEMA crossoverHello,
as usual recently the chart is bugged if I dare post a log one so I deleted and reposted...
here is a simple ema/team script that could allow you to catch trends.
You can play with parameters to get alerted of strong trends, or to detect trends early on.
I want to adapt this to an inside bar strategy, I am going to release that in a while, it is not my priority thought I am a countertrend trader, so I cannot say why, but what I have seen is inside bar breaks in very strong trends work very well.
There is a condition for this inidcator to work: you have to use it on a Heikin Ashi chart (the candle type, selectable in the area right of the timeframe).
Works sometimes. I advice backtesting any strategy before using. Idk maybe this could work decently, seems to have given big winners on bch recently. That huge one from 600 to 1800 lol. *3
* No one should pay for things this simple by the way...
Hermes Scalping Study by ZekisA simple scalping indicator, based on Highs and Lows.
It's working in any timeframe, the only condition is ... volatility .
Values are already set, but you can change them according to your preferences and to your chart.
Alerts are enabled.
Enjoy!
@ Zekis
Moving Average Shaded Fill Area Crossover EMA Color - EditableMoving Average Shaded Fill Area Crossover EMA Color with option to change EMA value
Volume + Ema CrossoverIf Volume crossover its ema, we can consider it as a volume pump.
It may be useful for combining with other indicators.
SimpleMA smoothed crossover strategyExperimental simple Bot script for ETH/USD 1 hour chart. welcome to test on other pairs. put feedback in comments.
This is a crossbreed between SMA and HULLMA
EMA21/55 Crossover AlertThis will alert on EMA crossovers. Alert for 21 crossover and crossunder. Work in progress.
Simple TrenderOriginates from:
I was reading some Impulse Trading literature by A. Elder.. In it, someone named Kerry Lovvorn proposed "An End of Day Trend Following System" for someone lazy.
Originally it is just price closing above an 8 ema (low) for long. Exit when price closes below an 8 ema (low). The opposite for a short position.
Conditions: Buy when price closed below ema (low) for two bars or more, then closes above. Opposite for a short position. I do not follow this condition. Though it may help with whipsaw.
My condition is when price closes above the 26 ema (low) (works the best for me) I place orders above the initial crossing bars high. Opposite for lows.
I look for stocks that are low in price to go long on. I want the run from 2's to 15's
I look for stocks that are mid-teens/20's in price to go short on. I want the run from 20's to 2's
I look for stock with news and earnings that are already running (up or down) to play the pullback.
These conditions can easily be scanned for on thinkorswim
From first glance, the system looks like CMsling shotsystem. Although, I plagiarized some parts of the codes, because I am inept when it comes to that shit, it differs as it is not a moving average crossover system.
It is a price crossing over concept. A moving average VWAP is used for best entries on pullbacks.
Purpose:
--To catch the majority of a trend/wave/run.
--To identify pullback areas to go long or short while in midst of trend. To catch pullbacks off news and earning runners.
--To catch the initial start of trend with clear rules to enter
--Clear rules to exit
Issues
--possibilities of getting ninja sliced the fuck up. Can be mitigated by entering stocks with decent average volume. And also only going long above 200 ema and short below it. ADX won't work, at the initial start of the trend it will show not trending. Can look at blow off volume at the bottom followed by increase in buying for long and vice versa for short.
--Can give some huge gains away through gap ups or gap downs from news or earnings during trend. However, can get huge gain on gaps from news or earning. Nature of the game.
--Need some brass balls and a supply of pepto to stomach through some of the pullbacks. Gut wrenching seeing big gains dwindle. But they all even out at the end, you hope. (see NBEV and IGC, and CRON and others. shit don't go in straight lines, homie)
Pros
--It's simple and easy. Overall, you profit
--works with any security
Cons
--It can be stressful.
--does not work well on lower time frames. Do not recommend going below 15 minutes
--Possibility of working on 5 minutes with a time frame breakout strategy (15,30 min).
Couple it with LazyBear "Weis Wave Volume" indicator. Works well for pullback entries.
Enjoy. Ride some waves.