[cache_that_pass] 1m 15m Function - Weighted Standard DeviationTradingview Community,
As I progress through my journey, I have come to the realization that it is time to give back. This script isn't a life changer, but it has the building blocks for a motivated individual to optimize the parameters and have a production script ready to go.
Credit for the indicator is due to @rumpypumpydumpy
I adapted this indicator to a strategy for crypto markets. 15 minute time frame has worked best for me.
It is a standard deviation script that has 3 important user configured parameters. These 3 things are what the end user should tweak for optimum returns. They are....
1) Lookback Length - I have had luck with it set to 20, but any value from 1-1000 it will accept.
2) stopPer - Stop Loss percentage of each trade
3) takePer - Take Profit percentage of each trade
2 and 3 above are where you will see significant changes in returns by altering them and trying different percentages. An experienced pinescript programmer can take this and build on it even more. If you do, I ask that you please share the script with the community in an open-source fashion.
It also already accounts for the commission percentage of 0.075% that Binance.US uses for people who pay fees with BNB.
How it works...
It calculates a weighted standard deviation of the price for the lookback period set (so 20 candles is default). It recalculates each time a new candle is printed. It trades when price lows crossunder the bottom of that deviation channel, and sells when price highs crossover the top of that deviation channel. It works best in mid to long term sideways channels / Wyckoff accumulation periods.
Volatilite
Simple EMA Crossing Strategy TradeMathSimple EMA Crossing strategy, based on crossover Fast exponential moving average = EMA21 and Slow exponential moving average = EMA55.
Default stop loss is 3%, but you can change it.
Default take profit is 9%, it based on stop loss.
Risk to Reward ratio is 1 to 3.
Strategy was tested on BTCUSDT 1H timeframe and works fine with these parameters.
[Wantrader] Volatility Breakout Strategy - Mastery (Backtest)This is the Wantrader's volatility breakthrough version 9,
which developed Larry Williams' volatility breakthrough strategy.
It has been 4 months of development and 8 months of practice.
It's the best strategy for and .
Please choose 1H time frame.
If the date is the future than today, only show you until yesterday.
No repaint.
"As a long-only day trend strategy, we pursue profits in the downward / transverse / rising market."
- It will be exited based on the closing price of the day as a strategy to take only the day trend.
- It's a long-only strategy without short trade.
- It has high market adaptability in response to market volatility.
- We have minimized over-optimization factors so that they can work well in the future.
"The efficiency has been increased by delicate control of entry volume."
- Control losses by managing funds in line with market changes.
- Calculate the leverage on the day automatically.
- It goes in more when it's advantageous and less when it's disadvantageous
- It's a welfare strategy that works against assets
"We further lowered the risk by cutting off and buying in installments."
- If you judge that the trend has declined on the day, you will break off and respond to a sharp drop.
- It was purchased in installments twice, increasing the confidence of entry
========================================================================================
래리윌리엄스의 변동성돌파전략을 발전시킨
원트레이더 변동성돌파 버전9 입니다.
2021년 1월부터 4개월 동안 개발하여
2021년 4월 부터 '8개월 간의 실전테스트 기간을 가졌습니다.'
비트코인, 이더리움 에 가장 잘 맞는 전략이며
1H 타임프레임으로 선택해주세요
백테스트 버전은 전일까지만 확인 가능합니다. (당일 진입 확인 불가)
리페인트는 발생하지 않습니다.
롱 온리 당일 추세 전략으로 하락/횡보/상승 장에서 수익을 추구합니다.
- 당일 추세만 취하는 전략으로 일봉 종가 기준 청산됩니다.
- 숏은 없는 롱 온리 전략입니다.
- 시장 변동성에 따라 대응하여 시장 적응력이 높습니다.
- 과최적화 요소를 최소화 하여 미래에도 잘 작동 할 수 있도록 만들었습니다.
섬세한 진입 물량 제어로 효율을 높였습니다.
- 시장 변화에 맞춰 자금관리를 하여 손실을 제어합니다.
- 당일 레버리지를 매일 자동으로 계산합니다.
- 유리할때 더 들어가고, 불리할때 적게 들어갑니다.
- 자산대비로 작동하는 복리 전략입니다.
손절과 분할매수로 리스크를 더욱 낮췄습니다.
- 당일 추세가 꺾였다고 판단하면 손절하여, 급락에 대응합니다.
- 2회에 걸쳐서 분할매수 하여, 진입 확신도를 높였습니다.
Fractal Breakout Strategy [KL]Fractal Breakout Strategy
This strategy will enter into a Long position when (a) bullish fractal is formed, combined with (b) ATR is relatively low. Trailing stop loss is set based on ATR.
Bullish fractal pattern :
A bullish fractal pattern looks like this:
It is formed when lower-low has reached a local minimum followed by higher-lows.
By default, this script plots the pivot point (the local minimum) using green crosses. This line will extend to the right until the next bullish fractal is formed. The local minimum pivot point is considered as key level of support. For long position entry, entry price must be higher or equal to it.
On the other hand, a bearish fractal pattern looks like the exact opposite. Reversing the logic, it is a local maximum indicated by higher-highs followed by lower-highs. This is shown by red crosses.
Why use ATR to confirm entry :
Two reasons to enter when ATR is low:
1) Since trailing stop loss is based on ATR, entering the market when ATR is low means risking less for potentially high reward.
2) Low ATR often signals price consolidation. There are two favorable scenarios, either: (i) period of accumulation, or (ii) bull flag, ideally followed by breakout.
Determining whether ATR is low :
Relative lows are quantified out by using the method in my other script: Modified ATR Indicator
The method involves applying two-tailed hypothesis testing to assess whether ATR (ie. by default lookback period of 5) has greatly deviated from a larger sample size (ie. lookback period of 50). Assuming ATR is normally distributed and variance is known, then test statistic (z) can be used to determine whether ATR5 is within the critical area under Null Hypothesis: ATR5 == ATR50. If z falls below/above the left/right critical values (ie. 1.645 for a 90% confidence interval), then ATR is determined to the relatively low/high respectively. For the purpose of assessing whether ATR is low, the left-tail is the main focus.
Profit taking :
Profits by default are taken over 3 levels based on risk to reward ratio (ie. 1R, 2R, 3R). When a target is met at each level, strategy will close out one third of current position size. Remainders (ie. already taken once at 1R, but not yet reaching 2R or 3R) will eventually be closed at the trailing stop loss price.
[BTCUSD] Multi Entries Autotrade BinanceCommission = 4 USD per order >>> check in the Performance Summary
Slippage = 2 ticks
- I see from Kodify (tradingview.com/pine-wizards)
Risk: 1% per trade >>> check at the "List of trades"
* Auto trade BINANCE FUTURE by Webhook + Pro, Pro+, Premium Tradingview user.
Binance future quantity setting:
- Fixed Quantity = 0 => Auto quantity (Balance, risk, pips loss)
- Fixed Quantity > 0 (0.001, 0.002, 0.01,...) => send signal with Fixed Quantity
H4 timeframe is main trend: Supertrend indicator.
- Uptrend when closes candle is below the red line
- Downtrend when closes candle is above the green line
H1 timeframe: Keltner Color count & RSI indicator:
- Keltner Color Count input:
- Length = 50
- Multi1 = 1
- Multi2 = 2
- Multi3 = 3
- Source = Close
- Lookback = 25
- RSI input: Length: 14, Source: Close
I. Entry 1: BASIS KELTNER CHANNEL
- BUY when previous OHLC4 candle crossover Basis line AND Supertrend H4 uptrend AND Keltner channels uptrend. Not repaint.
- SELL when previous OHLC4 candle crossunder Basis line AND Supertrend H4 downtrend AND Keltner channels downtrend. Not repaint.
II. Entry 2: UPPER 2/LOWER 1 KELTNER CHANNEL
- BUY when previous OHLC4 candle crossunder Upper 1 AND Supertrend H4 uptrend AND Keltner channels uptrend AND rsi uptrend. Not repaint.
- SELL when previous OHLC4 candle crossover Lower 1 AND Supertrend H4 downtrend AND Keltner channels downtrend AND rsi downtrend. Not repaint.
III. Entry 3: SELL UPPER 2/ BUY LOWER 1 KELTNER CHANNEL
- BUY when previous OHLC4 candle crossover Lower 1 AND Supertrend H4 uptrend AND Keltner channels uptrend AND rsi uptrend. Not repaint.
- SELL when previous OHLC4 candle crossunder Upper 1 AND Supertrend H4 downtrend AND Keltner channels downtrend AND rsi downtrend. Not repaint.
IV. Report all history BTCUSD (H1 timeframe)
- 01/01/2019 - 20/11/2021
- 01/01/2018 - 01/01/2021
- 01/01/2017 - 01/01/2020
- 01/01/2016 - 01/01/2019
- 01/01/2015 - 01/01/2018
- 01/01/2014 - 01/01/2017
- 01/01/2013 - 01/01/2016
- 01/01/2012 - 01/01/2015
ETHUSD Multi Entries Autotrade BinanceCommission = 4 USD per order >>> check in the Performance Summary
Slippage = 2 ticks
- I see from Kodify (tradingview.com/pine-wizards)
Risk: 1% per trade >>> check at the "List of trades"
* Auto trade BINANCE FUTURE by Webhook + Pro, Pro+, Premium Tradingview user.
Binance future quantity setting:
- Fixed Quantity = 0 => Auto quantity (Balance, risk, pips loss)
- Fixed Quantity > 0 (0.001, 0.002, 0.01,...) => send signal with Fixed Quantity
H4 timeframe is main trend: Supertrend indicator.
- Uptrend when closes candle is below the red line
- Downtrend when closes candle is above the green line
H1 timeframe: Keltner Color count (Free): 2 Entries (I. Basis line, II. Upper 1/Lower 1 line)
Keltner Color Count input
- Length = 50
- Multi1 = 1
- Multi2 = 2
- Multi3 = 3
- Source = Close
- Lookback = 25
I. Basis entry rule:
1. Keltner channels:
Long when closes candle crossover the Upper 3 Keltner.
Short when closes candle crossunder the Upper 3 Keltner.
2. Rule of Basis's correction zone before open trades.
- Buy when previous OHLC4 candle crossover the Keltner Basis (Supertrend uptrend & Keltner long). Not repaint.
- Short when previous OHLC4 candle crossunder the Keltner Basis (Supertrend downtrend & Keltner short). Not repaint.
II. 'Upper 1/Lower 1' entry rule:
1. Keltner color count: lookback = 25
2. Keltner channels:
- Long when closes candle crossover the Upper 2 Keltner and Keltner Color count Uptrend.
- Short when closes candle crossunder the Upper 2 Keltner and Keltner Color count Downtrend.
3. RSI down when crossover 70, RSI down when crossunder 30
4. Rule of 'Upper 1/Lower 1' correction zone before open trades.
- Buy when previous OHLC4 candle crossunder the Keltner Upper 1 (Supertrend uptrend & Keltner long & RSI up). Not repaint.
- Short when previous OHLC4 candle crossover the Keltner Lower 1 (Supertrend downtrend & Keltner short & RSI down). Not repaint.
III. Stoploss move: Height of Keltner * 1.3
IV. Report all history ETHUSD (h1 timeframe):
1. Keltner Basis line entries:
- 14/01/2019 - 20/11/2021
- 18/01/2021 - 01/01/2021
- 02/01/2020 - 01/01/2020
- 05/02/2016 - 01/01/2019
- 23/10/2015 - 01/01/2018
- 23/10/2015 - 01/01/2017
2. Keltner 'Upper 2/Lower 1' entries:
- 20/01/2019 - 20/11/2021
- 10/01/2018 - 01/01/2021
- 12/01/2017 - 01/01/2020
- 04/02/2016 - 01/01/2019
- 19/08/2015 - 01/01/2018
- 19/08/2015 - 01/01/2017
3. Combine 2 entries (Basis & 'Upper 1/Lower 1':
01/01/2019 - 20/11/2021
01/01/2018 - 01/01/2021
01/01/2017 - 01/01/2020
01/01/2016 - 01/01/2019
01/01/2015 - 01/01/2018
01/01/2015 - 01/01/2017
QaSH DCA StrategyThis is a backtesting script that demonstrates the power of incorporating dollar cost averaging into your trading strategies. Catch the bottom of those lightning fast dips buy placing your limit orders ahead of time.
Four entry conditions have been included:
- ASAP mode
- Quickfinger's Luc
- Bullish pivot point
- Bearish pivot point
An EMA-based entry condition filter is included
Placement of all DCA orders is adjustable, and "take profit" % is also variable and can depend on the size of the price dip.
QaSH DCA DaytraderThis script takes advantage of the power of DCA implemented in the QaSH DCA Algorithm script, and it applies it to new entry conditions. A "Quickfingers Luc" mode has been added, which creates new entry orders whenever a level of support has been identified. If price breaks the support level and quickly drops down, the orders will already be in place to catch the dip. This method can even catch the 1-second long, 50% flash dips that occur in some exchanges.
Four entry conditions are included in this initial release : ASAP, Quickfingers Luc, Bullish Pivot point, and Bearish Pivot point
All order placements are customizable
All take profit % values are based on the average entry price
Take profit % values can change based on how big the price dip was
Entry condition filter has been added and it uses a variable timeframe EMA
Stoploss function is available
Order size can be sent in the alerts, which allows for multiple setups to be running simultaneously in one account
All alerts are sent using the new "Any alert() function call" feature, which means this indicator will only take up one alert slot to cover all entry and exit alerts
Settings advice:
- If you think price is inflated, try conservative settings that either use a stoploss and EMA filter, or no stoploss but have some of your orders placed far below the current price with increasing volume. In a bear market this will beat the buy and hold.
- If you think the market is ready for a new bull run, then try experimenting with very aggressive settings to beat the buy and hold. For example: ASAP mode with 3 layers turned on. Orders placed at 0.5%, 3%, and 5%. Volumes at 30%, 30%, and 40% respectively. No stoploss. These settings were tested on ETH and beat the buy and hold during an extreme bull market period.
QaSH DCA Algorithm 2.0This is the strategy version of the QaSH DCA Algorithm indicator. This strategy version of the script includes live trading alert functionality, so it can be considered as a replacement that makes the indicator version obsolete. With this version, features have been added and also you can take advantage of TradingView's native backtesting system for more detailed backtest results.
QaSH DCA Algorithm implements a DCA strategy that takes advantage of price volatility by buying dips to average down, and adjusting price targets as the break-even price gets lower.
How does the DCA strategy work?
When the specified entry condition has occurred, the indicator will set up several limit orders below the current price. If price goes up a specified amount, then the layers will be overwritten at the higher prices. If price goes down and fills the first layer (limit order), then the Take Profit price is plotted and will be sent in an alert. If more layers are filled, then the TP price will move down accordingly as it’s based on the average entry price (alerts on each TP update). This action of lowering the average entry and TP price mitigates your risk, and increases the likelihood of a Take Profit event happening. This script uses a simple "ASAP" mode, where each deal will start exactly 2 bars after the last trade ended. An EMA filter and stoploss function was also added for risk management.
How does this differ from other DCA bots?
1) The layer placements, order volume , and “take profit %” for each layer or “safety order” is much more customizable than what you get from other services. For example, I can choose to have my TP% change, depending on how big the price dip was. Maybe on safety order 1 I want 10% TP, but on safety order 7 might want a 2% TP.
2) The entry condition is adjustable. For example, this script has an ema filter for entries.
3) Settings optimization. You can take advantage of the replay feature and TradingView's backtest system to see how trades would have played out, and how much PnL you would have made
4) You can use this indicator on more than just crypto. You can easily set up alerts for manual trades on stocks, or you can integrate it with your stock broker API of choice and automate your trades.
5) When combining this with an automation service, you will get unmatched execution speed by running it on your dedicated machine.
6) I can offer a lifetime subscription to the indicator upon request.
What kind of market is it best used on?
QaSH DCA Algorithm is best used on assets that are volatile. That means large and frequent swings up and down. Also I recommend running this on many uncorrelated assets at the same time. Better yet, run it with a variety of different settings simultaneously on the same asset.
What settings should I use?
The default settings are decent for most markets, and provide a good balance between profit potential and downside protection, although you can use a wide variety of settings. In a strong bull market its best to either bring up your layers to catch smaller dips, or you can go big on the first few layers (maybe 4 layers, 25% on each layer for example). In a sideways or brearish market you'll want more downside protection, so you'll want the larger orders to be at lower prices, or possibly use the stoploss and EMA filter.
No-lose trading targets (Based on EoRfA) By Mustafa ÖZVERI simulated the NLTTa_EoRfA indicator with the Bitcoin-USD
For details about the indicator, visit my profile on tradingview
For Simulation, with default settings, we order
When on Long setup and price on green area
- open a long position that closes on red area
When on Short setup and price on red area
- open a short position that closes on green area
And we got
- about 15% profit
But only this value can not guarantee good results for trading. BE CAREFUL
Bollinger Bands %B - Belt Holds & Inner CandlesThis is a simple strategy that uses Bollinger Bands %B represented as a histogram combined with Candle Beltholds and Inside candles for entry signals, and combines this with "buy" and "sell" zones of the %B indicator, to buy and sell based on the zones you set.
How to use:
Long when in the green zone and an inside candle (which is highlighted in white) or a bullish belt hold (which is highlighted in yellow), and sell when inside a red zone and has an inside candle or a bearish belt hold (which is highlighted in purple) or the stop loss or take profit is hit.
Short when in the red zone and an inside candle (which is highlighted in white) or a bearish belt hold (which is highlighted in purple), and sell when inside a green zone and has an inside candle or a bullish belt hold (which is highlighted in yellow) or the stop loss or take profit is hit.
Stop loss / take profit selection:
Choose which performs best for you, ATR based uses the average true range, and % based is based on a set percent of loss or profit.
DC Breakout Strategy | This is simplicity at its finest.As the title already describes: this is a Donchian breakout strategy. This strategy, as of now, only goes long. It goes long when the price close makes a new high and the 8 day moving average is above the 32 day moving average. The strategy exits the trade if the price breaks the atr trailing stop of * 3 or the 8 day moving average crosses below the 32 day moving average.
This is simplicity at its finest.
WaveTecs StrategyWelcome to the Backtesting version of "WaveTecs Strategy", the indicator itself is an invite-only script called "WaveTecs Indicator" on TradingView.
WaveTecs Strategy
WaveTecs is a Strategy that combines Wave Trend Oscillator and verifies wave momentum by using RSI and Stochastic Oscillator Values.
What is Wave Trend?
One of the most effective indicators in identifying swings is the Wave Trend indicator. Wave Trend plots waves using highs and lows between an upper band and a lower band. It looks for the opening and closing of a new wave trend movement as well as overbought and oversold areas.
How does this modified strategy work?
By using RSI and Stochastic values we are able to verify Wave inflection points to determine if there is a suitable amount of momentum to ride the swing and make profitable trades. Positions are taken or closed based on the rising or falling momentum.
Each value input can be adjusted to best suit the type of market you are trading in. By using the strategy we can optimize these value inputs to yield greater net profits. I have found the RSI and Stochastic values hugely impact entries and exits regarding trades.
For Long conditions:
- RSI & Stochastic needs to be increasing and moving out of oversold conditions to show positive momentum.
- Falling momentum results in a sell signal. I have found RSI less than 65 to be sufficient in most markets however this can be adjusted at any time to yield different results depending on your comfort level.
For Short conditions:
- RSI & Stochastic needs to be decreasing and moving out of overbought conditions to show negative momentum.
Generally, Wave Trend Strategies only take trades that are outside of the bands. This strategy allows trades inside and outside of the bands, which can be selected under the input section title "Aggressive Trading". Trading in this mode is more frequent as signals are often. Due to volatility in crypto markets, I have defaulted the source for Wave Trend waves to be Open/High/Low/Close Average which yielded great results. High/Low/Close average works very well for all other securities, and can easily be adjusted through the drop-down menu inside the inputs.
Works for all types of markets. Parameters can be adjusted but not required as indicator values are standard in the industry.
The default parameters are set to those typically used in the markets currently. However, I have found that if you adjust you to adjust the parameters based on your asset and time frame desired you will yield different results.
----------------
For example:
----------------
ETHUSDT - 4 HR, results are shown below
Wave Trend Parameters:
Aggressive Trading: Yes
Channel Length: 12
Average Length: 24
Overbought Top: 90
Overbought Bottom: 75
Oversold Bottom: -90
Oversold Top: -55
Source: hlc3
Strategy Type:
Trade Direction: Long Only
Stochastic Inputs:
Stoch Length: 18
Smoother %K: 5
Moving Average %K: 4
%K Lower Limit: 21
%K Upper Limit: 80
%K Crossunder Sell: 80
Relative Strength Index Inputs:
RSI Lower Limit: 30
RSI Upper Limit: 70
RSI Sell Value: 68
==================
WaveTecs Features
==================
Profitable Trading Strategy;
Aggressive Trading feature for more trades, with earlier entries and exits;
Customizable inputs to fine-tune your trades;
Buy & Sell Alerts (Indicator Only);
Overlay indicator only to show alerts, WaveTecs Strategy needed to see Wave Trend;
Bot Integration through webhooks;
Two different strategy modes: Long Trades Only or Long & Short Trades
Adding new features & updates whenever possible.
Add both WaveTecs Indicator and WaveTecs Strategy to your chart. WaveTecs Indicator only plots Buy & Sell Alerts, whereas WaveTecs Strategy lets you see what the strategy is doing.
[BTCUSD] Folow Trend & Autotrade Binance FutureCommission = 4 USD per order >>> check in the Performance Summary
Slippage = 2 ticks
- I see from Kodify (tradingview.com/pine-wizards)
Risk: 1% per trade >>> check at the "List of trades"
* Auto trade BINANCE FUTURE by Webhook + Pro, Pro+, Premium Tradingview user.
1. H3 timeframe: Supertrend indicator.
- Long when the closes candle is above Green line.
- Short when the closes candle is below Red line.
2. H1 timeframe: Keltner channels indicator.
* Keltner channels setting:
+ Length = 50
+ Multiplier = 1
+ Use Exponential MA: true
+ Band style: Average true range.
- Long when the close candle crossover the Keltner Upper
- Short when the close candle crossunder the Keltner Lower
3. Entry rule:
Open Buy: Supertrend & Keltner channels are Long. Buy when closes candle crossunder Basis line and closed above Lower Keltner
Open Sell: Supertrend & Keltner channels are Short. Sell when closes candle crossover Basis line and closed below Upper Keltner
4. Stoploss is moving the trend.
Stoploss = Height of Keltner * 1.2.
5. Not repainting
6. Overview result backtesting:
a. Longterm: Every 2 years
2018 to 31/12/2020
2017 to 31/12/2019
2016 to 31/12/2018
2015 to 31/12/2017
2014 to 31/12/2016
2013 to 31/12/2015
2012 to 31/12/2014
b. Midterm: every year.
2020-2021
2019-2020
2018-2019
2017-2018
2016-2017
2015-2016
2014-2015
2013-2014
2012-2013
c. Shorterm:
2020 to today 13/11/2021
Smoothed Waddah ATR~~~All Credit to LAZY BEAR for posting the original Script which is an old MT4 indicator.~~~~
No this system does not repaint... if it does let me know. Either the code is wrong or you are using a repainting chart such as renko candles.
*PURPOSE*
This Is an "Enhanced or Smoothed" version of the script that captures the heiken-ashi closing price as its main calculation variable. While using normal bar or line charts. Enhancements integrate trade filters to reduce false signals.
*WHAT TYPE OF TRADING STRATEGY IS THIS?*
This is a Long Only, Trend Trading System. Is intended to be applied to Charts/Timeframes that produce sustainable trends for which ever asset you are trading.
*NOTE OF ADVICE REGARDING SETTINGS*
Settings can be tweaked but I have found that best results come with the given settings. If a chart is too choppy to trade this indicator successfully, it is advised not to change the settings but either find a different timeframe or different asset to apply this strategy to.
TLDR
Indicator measures the change of the MacD (difference between MAC D of given EMA's) and compares it to the difference between the Upper and Lower Bollinger bands. Green bar over trigger line= entry. Red bar over trigger line = close.
*SETTINGS AND INPUTS*
-MacD of HeikenAshi chart (will always be of the Heikenashi chart even when applied to different chart type)
sensitivity = input(150, title='Sensitivity') =range should be (125-175)multiplier so that MacD can be compared to BB
fastLength = input(20, title='MacD FastEMA Length')
slowLength = input(40, title='MacD SlowEMA Length')
-Bollinger Band of currently used price chart type
channelLength = input(20, title='BB Channel Length')
mult = input(1.5, title='BB Stdev Multiplier')
-14 Period RSI Trade Filter (set to 0 to Disable)
RSI14filter = input(40, title='RSI Value trade filter') =only gives entry when RSI is higher than given value
*ABSTRACT & CONCEPT*
TLDR - Indicator measures the change of the MacD (difference between MAC D of given EMA's) and compares it to the difference between the Upper and Lower Bollinger bands. Green bar over trigger line= entry. Red bar over trigger line = close.
Indicator plots -
Bars are the change in the MAC D and the indicator line is the difference in the BB.
When Bars are higher than the indicator line then it is considered a trend "Explosion"
Green Bars are Trend Explosion to the upside, Red Bars are Trend explosion to the downside.
GENERAL DETAIL-
the core calculation is measuring the change in MacD of current candle compared to the MacD of two previous candles.
This value is multiplied by the sensitivy so it can be compared to the change in Bollinger Band Width.
if the MACD change is positive then you get a green/lime bar for that value. If the MacDchange is negative you get a red/orange bar for that value.
and are determined by whether the actual change is increasing in that direction or decreasing. (bars getting taller or bars getting shorter)
Entry signal for long is A positive change in MACD difference (Green bar) that is greater than the change of the bollinger band (orange signal line) AND if the RSI value is above your filter.
Close signal or Trend Stop Warning Signal is given when a Negative MacD Difference (red bar) is greater than the change of the bollinger band (orange Line)
*CONSIDERATIONS AND THOUGHTS*
I have over 150 iterations of this indicator and this is the most consistent and best version of settings and filters I was able to generate. I built this indicator specifically for 3 charts. SPY monthly, QQQ monthly, BTC 3 Day. However this indicator works well on any long term bullish chart. (tech stocks are great) .
Trend trading systems are intended to be homerun hitting, plunge protecting indicators that allow for long legs and expanding volatility. This indicator does this as the trigger line is Dynamic with the expansion and contraction of the bollinger band.
I do not take every signal specifically not the close signals. Instead they more like warnings in ultra bullish environments.
If i had to pair this indicator with any other filter than the RSI, it would be a long term moving average i.e. the 50 week or equivalent for your chart. signals above rising moving averages means that you are trading with an upward trending market.
Hope this helps. Happy trades.
-SnarkyPuppy
[Joy] Jasmine Strategy for Bitcoin and CryptoIt is my strategy I use for spot and future trading, mostly for BTCUSD
Notable parameters used:
INDEX:BTCUSD
Data: 2017 - today
Long trade margin/leverage: 8x (50/8 = 6.25)
Short trade margin/leverage: 1x (50/50 = 1)
Commission: 0.075%
Initial Capital: $15, 000
Results:
Net profit: 832.74 %
Buy & Hold: 602.56 %. It beats the buy and hold.
Percent profitability: 88 % . It means 8 out of 10 trades resulted in profits.
Margin Calls: 0 (i.e. Never had a margin call according to backtest from 2017 till today)
Total closes trades: 25
Profit factor: 8.238
Avg Winning Trade: 43.08 %
Largest Winning Trade: 334.85 %
Avg # Bars in Winning Trades: 44 (i.e. 88 days)
Sharpe Ratio: 0.61. A Sharpe ratio under 1.0 is considered sub-optimal. Because of the big swings, I cannot make the Sharpe ratio any better at this time.
Sortino Ratio: 5.153. I think a Sortino ratio of 3.0 or higher is considered excellent. Do your research.
I am using 7.1% stop loss on long trades. However, you can turn off the stop loss and note the profitability remains the same.
Do remember there may be other costs, such as funding costs.
Description:
The strategy hunts for a few market features, namely breakouts, abnormal wicks relative to the body, abnormal volume relative to the candle characteristics, and possible confirmation of all these. It also hunts for more aspects. It gives a relative score of each of the characteristics. Finally, it tries to draw a guesstimate. In the end, it is only a guesstimate. Users see the final outcome (buy/sell etc). The whole logic happens at the background.
The strategy is not to be used for scalping, day trading or swing trading. In other words, it is not suitable for trading in a lower timeframe. It is to be used for Positional Trading For example, if one is trying this for BTCUSD, one may only try this for BTCUSD in a 2day timeframe and not in lower timeframes (such as 4 hours or 1 hour etc.) I am primarily interested in BTC for my research. However, it may be tested on other cryptos as well with varying degrees of results.
Please remember that past performance does not be indicative of future results. Different types of investments involve varying degrees of risk. There can be no assurance that the information referred to directly or indirectly in this strategy will be profitable, equal to any corresponding historical performance level(s), or suitable for you in any form or shape. Market condition changes very fast. Moreover, it would be best if you did not assume that any discussion or information contained here serves as the receipt of, or as a substitute for, personalized investment advice. I am not a financial advisor. I have no qualifications to be a financial advisor. It is only for educational and research purposes. Readers are encouraged to consult with a professional advisor of his/her choosing. Neither I nor my indicators or strategies take any responsibility for any misuse of the information for any actual trading. Even though this strategy did 88% profitability from 2017-2021, it may do poorly and may even be NOT profitable in the future.
Adaptive Hull MA Trend tracerBINANCE:ETHUSDT
This is the first attempt to create a "PEFECT" trend tracer.
All the Moving Averages have a lag but I personally like the Hull Moving Average for the fast response and noise reduction.
However, due to the market behavior it is hard to choose the correct length of the Moving Average that will be suitable for current situation.
This Indicator uses the Bolinger Bands Width to adapt the length of the Hull Moving Average according to the following rule:
1) if the BBW (Bolinger Bands Width) is small => length of the MA is bigger in order to filter the noise of small price changes.
2) if the BBW is bigger => MA length is smaller to track the trend more accurately.
This script also has a strategy logic with RSI for a better entry and exit as well as the minimum allowed MA length.
Further work:
1) Full adaptation of the Moving average
2) Filter bad entries
Please let me know of any suggestions for improving this indicator.
Low-High-Trend StrategyWhen asked what the key to successful investing was, Warren Buffet famously said “buy low, sell high.” Was he onto something? Today I am sharing with the community a simple “buy low, sell high” strategy with an optional trend filter and take-profit target. I’ve found that this strategy works well in a variety of markets but has a higher tendency to out-perform buy & hold in markets that are ranging sideways.
How it works:
The strategy tracks the highest and lowest price over the last X number of bars (you select the look-back period). The highest price line is plotted in green and the lowest price line is potted in red. If the price crosses over the lowest price in the last X number of bars, then a buy signal is generated. Exit options include a take-profit % or selling when the price crosses over the highest price in the last X amount of bars. I.e. “Buy low, sell high.” An EMA is also plotted as a blue trend line, and there is an option to only trade if the price is above the EMA trend line.
Disclaimer: Open source scripts I publish in the community are largely meant to spark ideas that can be used as building blocks for part of a more robust trade management strategy. Even though this example script beats buy and hold over the back-test time-frame, I wouldn't advise using it as a stand-alone strategy without significant additions/modifications to the strategy and risk management functions. In this example the script is being used as a medium-term strategy with just 10% leverage over account equity, a $25k start balance, and back-testing 10+ years. Modifiable slippage and commissions are included in the model.
Green line = Highest price in the look-back period
Red line = Lowest price in the look-back period
Blue line = EMA Trend
Sideways Strategy DMI + Bollinger Bands (by Coinrule)Markets don’t always trade in a clear direction. At a closer look, most of the time, they move sideways. Relying on trend-following strategies all the time can thus lead to repeated false signals in such conditions.
However, before you can safely trade sideways, you have to identify the most suitable market conditions.
The main features of such strategies are:
Short-term trades, with quick entries and quick exits
Slightly contrarian and mean-reversionary
Require some indicator that tells you it’s a sideways market
This Sideways DMI + Bollinger Bands strategy incorporates such features to bring you a profitable alternative when the regular trend-following systems stop working.
ENTRY
1. The trading system requires confirmation for a sideways market from the Directional Movement Index (DMI) before you can start opening any trades. For this purpose, the strategy uses the absolute difference between positive and negative DMI, which must be lower than 20.
2. To pick the right moment to buy, the strategy looks at the Bollinger Bands (BB). It enters the trade when the price crosses over the lower BB.
EXIT
The strategy then exits when the move has been exhausted. Generally, in sideways markets, the price should revert lower. The position is closed when the price crosses back down below the upper BB.
The best time frame for this strategy based on our backtest is the 1-hr. Shorter timeframes can also work well on certain coins that are more volatile and trade sideways more often. However, as expected, these exhibit larger volatility in their returns. In general, this approach suits medium timeframes. A trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange.
You can execute this strategy on your favourite exchange at coinrule.com.
UT Bot v5This is an update by request, on someone elses strategy! well more of an edit, but also update from pine v4 to pine v5.
//CREDITS to HPotter for the orginal code. The guy trying to sell this as his own is a scammer lol.
//Edited and converted to @version=5 by SeaSide420 for Paperina
The UT Bot v5 is Movinging average (the MA) vs ATR (the ATR is in the form intended for use as trailing stop loss (ATR_TSL))
Entry logic:
buy = the MA > ATR_TSL and Price > ATR_TSL
sell = the MA < ATR_TSL and Price < ATR_TSL
The Moving average type can be changed in the settings:
options = "SMA", "EMA", "WMA", "HMA"]
the edits i made were:
convert to v5
Add TP and SL
Add Buy only or Sell only option
Add MA type option
Add price source option
Draw MA and ATR_TSL on-chart
Cyatophilum VWAP StrategyAn indicator to backtest and automate VWAP custom strategies.
Use the Trend Mode to create Swing Trading strategies or Rotation Mode for Intraday Trading.
Configure your strategy using the Entry Condition Builder and Risk Management features, such as Trailing Stop & Take Profits, Safety Orders, and VWAP Exit conditions.
═════════════════════════════════════════════════════════════════════════
█ HOW IT WORKS
VWAP stands for Volume Weighted Average Price.
It is like a simple moving average that takes volume into account.
It is used by a lot of traders since it has everything one needs to know: price and volume.
The cummulated volume calculation resets every session, which interval can be configured.
From that we can calculate the MVWAP and the Standard Deviation Bands and create strategies around that.
█ HOW TO USE
Trend Mode
Trend Mode is the name for strategies built upon VWAP and price/MVWAP cross, most often for Swing Trading on high timeframes trending markets.
The side traded is often long and trying to beat Buy & Hold.
The trade exit can be triggered by a reversal signal (top chart), or a trailing stop (bottom chart) and take profit.
Rotation Mode
This is the mode for Intraday on low timeframes. It will work best on ranging markets.
We use the Standard Deviation Bands to buy/sell the price at overbougth/oversold levels.
The indicator allows to create complex entry conditions such as "Break out of 3rd bands AND break back in 2nd bands" within a certain amount of time.
We will use either the exit options to close the trade when prices reach an opposite band, or the risk management features explained below.
█ FEATURES
• VWAP settings
Configure the VWAP.
• Entry settings
Choose to go long, short, and if the strategy should reverse or not.
• Trend Mode
Choose to create entries from VWAP cross with price or MVWAP.
• Rotation Mode
Configure the 3 bands and build a condition for entry. The multiple inputs allow to add up different events required to trigger an entry, using 3 logical gates that can be linked together using a AND or OR condition. The events being: "break out", "Break back in" or "Just touches" any of the 3 bands. The condition must be met within a certain period of time to be valid.
• Exit settings
Options to exit trades at the end of every session or when the price reaches an opposite band.
• Stop Loss & Take Profit
Configure your stop loss and take profit for long and short trades.
You can also make a trailing stoploss and a trailing take profit.
• Safety Orders (DCA)
Create a strategy with up to 100 safety orders.
Configure their placement and order size using the price deviation, step scale, take profit type (from base order or total volume), and volume scale settings.
Graphics
A Configuration panel with all the indicator settings, useful for sharing a strategy.
A Backtest Results panel with buy & Hold Comparator.
█ ALERTS
Configure your alert messages for all events in the indicator settings.
Then click "Add Alert". In the popup window, select the option "alert() function calls only", give the alert a name and you are good to go!
█ BACKTEST RESULTS
The backtest settings used in this snapshot are the following:
Initial Capital: 10 000€
Order size: 10% equity
Commission: 0.1€ per order
Slippage : 10 ticks
Please read the author instructions below for access.
TradingGroundhog - Fundamental Bot Automation - Fractal/Wave -V1PLEASE READ THE DESCRIPTION - AS THE SCRIPT IS USED FOR AUTOMATION AND TRADING PAIR SWITCH THE MECHANISM CAN BE COMPLICATED TO UNDERSTAND
#-- Pairs Switching - No Repaint - Fractals - Wavetrend --
This strategy uses my fractal/wavetrend previous methods in order to buy/sell.
However, it has been designed in order to switch automatically the pairs on which it trades to reduce the loss and risk.
#-- Synopsis --
To do so, the script uses a Daily wavetrend oscillator. The oscillator is used to find uptrend periods.
From it, the number of uptrend days are counted.
#-- Wavetrend --
For exemple, if BTC/EUR goes from downtrend to uptrend, the script will start to count since how many days the market is uptrend.
Then, if BTC/EUR goes from uptrend to downtrend, the counter will be reset to 0.
The script only trades during uptrend periods.
#-- Pairs --
Up to 35 pairs can be used at the same time. The user can enable of disable to trade on certain pairs.
Uptrend days are counted for each one of those pairs. The user can define on how many pairs the script can trade at the same time.
The select which pairs will be trade, the script sort all the enabled pairs based on their uptrend days counters.
#-- Trade organization --
For exemple if we set 5, as the number of maximum pairs to trade on.
Trades will be conducted on the 5 pairs being in uptrend for the longest time.
Therefore, to organize the money placement on each pair, the equity is used.
For 100% of equity, 10% are kept if losing trades occur.
The remaining 90% are divided by the number of maximum pairs to trade on.
If we chose 5, we will have (90/5) 18% of our capital placed in each bot.
#-- Setting it --
As explained before, this script is used for automation.
For exemple, lets say you are interested by 15 pairs with promising evolution and you set the number of maximum pairs to trade on to 5.
You will have to set alerts for the script on each of the 15 pairs.
You will receive alerts for when to buy and sell.
Note that the script has to be set for each of the selected pairs, it is not able to trade on 15 pairs (thus, webpages) if only set on one Tradingview webpage.
#-- Plot--
Once launch, you can see a plot.
The plot represent the Uptrend days counter for 20 pairs. It also project the organization of the ENABLED pairs.
If a pair is part of the one with the highest number of uprend days. It's name will be displayed under the plot in a yellow comment box.
Four other box are projected to the right of the plot:
White comment : All the pairs sorted from highest number of uptrend days to the lowest.
Red comment : Pairs with the lowest number of uptrend days.
Blue comment : Interesting pairs which will may be uptrend for a long time.
Green comment : Actual pairs with active trading (thus, the pairs with the maximum number of uptrend days)
#-- Bot automation --
If you use 3commas or other trading bot platforms, you will have to set as comments the BUY/SELL alerts. <= Which is what I am doing with it.
Doing so make you trade on multiple pairs, automatically.
However, you will need to set as input the 3commas signal.
For the moment, the script will be needed for it.
However, I will soon release a V2 taking as input the 3commas strategy comments.
For the moment, you can set the script in different webpages and follow BUY/SELL orders by eyes of alerts. ;)
#-- Parameters --
*** Parameters have been intensively optimized using 35 cryptocurrency pairsin order to have potent efficiency for each of them. I would recommend to only change the METHOD SETTINGS. For the others, I don't recommend any modifications. If you need precision on the other parameters of if you want to modify them, more informations can be found in my previous scripts and ***
Filtering method :
Used to reduce or not the risks. If you set Wavetrend, less trades will be conducted as the wavetrend filter from will be used. If you choose Fractal, no Wavetrend signals will be used.
(I prefer to use Fractal as I am using 1 or 3 minutes timeframes for the moment.)
Market Pairs : You can select on which markets the script will trade by enabling it's checkbox.
*** Also, for the moment, due to Pinescript limitation, I cannot set as input the number of active pairs. So I set 5, after optimization, as the default number of maximum pairs to trade on. Thus, you should open webpage for each ENABLED pairs and load the script in each on them. 5 Tradingview webpage will always be active. ***
#-- Timeframe --
You can use the script for Short or Long term trading:
For Short term, you will have to use 1 or 3 minutes timeframes, depending on the volatility of the market. (What I am using)
For Long term, you will have to use 5 or 15 minutes timeframes, depending on the volatility of the market.
#-- Strategy abilities and results for more than a month of activity -- *** !!! IMPORTANT SECTION !!! ***
I have simulated the profit for the 21 ACTIVE pairs I selected has been potent with my Fractal strategy. Different maximum number of trading pairs were used in order to find the best one. The script was run for the last 46 or 30 days.
Different timeframe have been used as pairs have different volatility.
*** If you use the script, SET IT UP with the following pairs and the following timeframes. ***
-------------------------------------------------------------------------------------------------------
Parameters | Maximum number of trading pairs
-------------------------------------------------------------------------------------------------------
Timeframe | Pairs | 1 2 3 5 6 10
-------------------------------------------------------------------------------------------------------
3M | SHIB | 0 0.98 3.63 2.17 2.56 2.56
1M | SOL | 0 1.5 1.08 1.26 0 0
3M | XRP | 10.5 4.56 3.29 2.19 1.52 1.52
3M | ETH | 9.94 6.97 4.55 3.45 2.19 2.19
3M | BTC | 1.7 2.32 1.74 1.88 1.33 1.33
3M | DOT | 0 3.5 2.32 2.27 1.99 1.99
1M | DOGE | 0 0 0 3.14 1.93 1.93
1M | LUNA | 0 0 0 0.23 2.35 2.35
3M | AVAX | 8.92 0 0.53 3.63 1.17 1.17
1M | HOT | 0 0 2.12 7.96 4.69 4.69
3M | GRT | 0 -1.09 -0.82 0.25 -0.191 0
1M | LINK | 0 0 0 0 0 0
1M | CHZ | 0 0 0.4 0.85 1.89 1.91
3M | WIN | 0 0 0.52 5.89 2.8 2..8
3M | ENJ | 32.63 15.65 12.55 10.31 5.62 5.62
3M | RUNE | 0 4.68 3.42 -1.18 2.3 2.3
3M | LTC | 0 -0.06 1.1 1.29 3.49 3.49
3M | BTT | 0 0 0 0.85 1.63 1.63
3M | BCH | 0 0 0 1.36 2.36 2.36
3M | WRX | 0.26 4.66 5.36 4.29 3.01 3.01
3M | ETC | -0.92 0 0 3.6 3.31 3.56
-------------------------------------------------------------------------------------------------------
Net profit % | 63.03 43.67 37.24 55.69 45.949 43.61
Number of days | 46 30 30 46 46 46
Net profit % per day | 1.38 1.46 1.25 1.22 1.00 0.95
-------------------------------------------------------------------------------------------------------
*** Therefore, we are around more than 1% per day in each case. ***
#-- Choosing pairs --
I selected the 35 cryptocurrencies which can be exchange with EUR and evaluated the ability of my Fractal script on them. The on which have been ENABLED (true) are the best.
BINANCE:SHIBEUR | true
BINANCE:SOLEUR | true
BINANCE:XRPEUR | true
BINANCE:ETHEUR | true
BINANCE:BTCEUR | true
BINANCE:DOTEUR | true
BINANCE:ENJEUR | true
BINANCE:DOGEEUR | true
BINANCE:LUNAEUR | true
BINANCE:VETEUR | false
BINANCE:BNBEUR | false
BINANCE:AVAXEUR | true
BINANCE:HOTEUR | true
BINANCE:EGLDEUR | false
BINANCE:GRTEUR | true
BINANCE:MATICEUR | false
BINANCE:LINKEUR | true
BINANCE:CHZEUR | true
BINANCE:ICPEUR | false
BINANCE:UNIEUR | false
BINANCE:WINEUR | true
BINANCE:ADAEUR | false
BINANCE:RUNEEUR | true
BINANCE:TRXEUR | false
BINANCE:THETAEUR | false
BINANCE:EOSEUR | false
BINANCE:LTCEUR | true
BINANCE:XLMEUR | false
BINANCE:BTTEUR | true
BINANCE:SXPEUR | false
BINANCE:LAZIOEUR | false
BINANCE:YFIEUR | false
BINANCE:BCHEUR | true
BINANCE:WRXEUR | true
BINANCE:ETCEUR | true
(Short) EMA200+Parabolic SAR+MACD+TP&SL By Nussara (strategy)This indicator is backtest of “ (Short) EMA 200 + Parabolic SAR + MACD + Take Profit and Stop Loss”
You can simulate trading by setting your own funds and trading fees. And you can adjust various parameter settings to get the results you want.
Exponential Moving Average
Moving averages smooth the price data to form a trend following indicator. They do not predict price direction, but rather define the current direction, though they lag due to being based on past prices. Despite this, moving averages help smooth price action and filter out the noise.
EMA=Price(t)×k+EMA(y)×(1−k)
where:
t=today
y=yesterday
N=number of days in EMA
k=2÷(N+1)
Parabolic SAR
The Parabolic SAR is a technical indicator developed by J. Welles Wilder to determine the direction that an asset is moving. The indicator is also referred to as a stop and reverse system, which is abbreviated as SAR . It aims to identify potential reversals in the price movement of traded assets.
MACD
Moving average convergence divergence ( MACD ) is a trend-following momentum indicator that shows the relationship between two moving averages of a security’s price. The MACD is calculated by subtracting the 26-period exponential moving average ( EMA ) from the 12-period EMA . The result of that calculation is the MACD line. A nine-day EMA of the MACD called the "signal line," is then plotted on top of the MACD line, which can function as a trigger for buy and sell signals. Traders may buy the security when the MACD crosses above its signal line and sell—or short—the security when the MACD crosses below the signal line.
EMA 200 + Parabolic SAR + MACD (Short) formula
1. The price closes below the ema200 line.
2. MACD Line cross down Signal Line"
3. Parabolic SAR above the bar means that it is a downtrend.
If all three are true, the indicator will have a Short signal.
Risk to Reward Ratio = 1:1
Stop loss = Parabolic SAR point.
This indicator is just a tool for technical analysis . It shouldn't be used as the only indication of trade because it causes you to lose your money. You should use other indicators to analyze together.