Configurable Multi MA Crossover Voting SystemThis strategy goes long when all fast moving averages that you have defined are above their counterpart slow moving averages.
Long position is closed when profit or loss target is hit and at least one of the fast moving averages is below its counterpart slow moving average.
The format of the config is simple. The format is : FASTxSLOW,FASTxSLOW,...
Example : If you want 2 moving averages fast=9,slow=14 and fast=20,slow=50 you define it like this : 9x14,20x50
Another example : 5x10,10x15,15x20 => means 3 moving average setups : first wih fast=5/slow=10, second with fast=10/slow=15, last with fast=15/slow=20
You can chose the type of moving average : SMA, WMA, VWMA (i got issues with EMA/RMA so i removed them)
You can chose the source of the moving average : high, close, hl2 etc.
You can chose the period on which ATR is calculated and ATR profit/loss factors.
Profit is calculated like : buy_price + atr_factor*atr
Loss is calculated like : buy_price - atr_factor*atr
Performance in backtest is variable depending on the timeframe, the options and the market.
Performance in backtest suggests it works better for higher timeframes like 1d, 4h etc.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Volume Weighted Moving Average (VWMA)
Stochastic RSI rainbow in fibonacci sequence using VWMAThe standard stochastic RSI gives limited information as it only contains two reference lines. This Stochastic RSI rainbow contains more lines in shorter timeframes and progressively fewer as the reference time increase. This is done in a FIB sequence 2,3,8,13,21,34,55.... The shorter timeframes are more reactive to current market conditions indicating recent price action and the longer lines represent more significant periods of time. The indicator uses VWMA for its calculations (volume weighted moving average)
HOW TO USE THIS INDICATOR:
When multiple lines are above, either 70 or 80, you can consider the commodity overbought, or OB. The more lines that are above the threshhold, the more significant the signal. The same is true in inverse. In addition, you can use each cross to signify a buy/sell signal according to the type and quantity of trading you are doing. If you are looking to get in and out quickly you can use the lower timeframe signals.
OPTIONS:
You can change what data is used for the VWMA calculation... Of course, you can select colors and other properties as well.
Cloud Ribbon ++ by [JohnnySnow]Inspired by my favorite EMA ribbon - "EMA Ribbon " by fskrypt.
This Ribbon ADD the option to choose the avarage algorithm of the ribbon .
Created also to be more friendly to read along with trendlines and Fibonacci retracements.
For those like me that NOT use this ribbon to find exact price action but instead, to have a grasp of possible Support/Resistance strenght ahead.
High transparency lines and a configurable color palette for filling the background give the ribbon a look of support/ Resistance cloud Strenght.
Each MA length, line, and background color can be easily configured.
Anaconda Backtest VersionThis is the Anaconda strategy backtest version, no alerts. It will execute orders up to current_date - 2 days.
This is a LONG only strategy.
Anaconda waits for some thresholds to enter long. Once it enters long, it will setup profit and stoploss targets. These targets are updated if some conditions are met. The position is closed when the price hits profit or stoploss targets or when a certain bearish threshold is met.
No portfolio management is integrated. Positions are supposed to be entered with 100% equity and closed at 100%.
The strategy works better for large timeframes : 1h, 2h, 3h, 4h, 1D ...
You can apply the strategy to any symbol supported by TardingView and fine-tune the settings for the selected market/timeframe.
The strategy is supposed to be used on regular candles.
security() function has not been used. No special candles have been used (heikin ashi, renko etc.). Trailing stop (trail_* variables) have not been used.
==================
EXAMPLE SETTINGS
==================
These are the example settings for some assets that make the strategy perform well in the backtest mode.
Settings are listed in order of appearance in the strategy settings dialog in TradingView.
Please note that exaggerated profits for some symbols may come from the fact that the minimum ticker size of that symbol has been increased (from 0.0001 to 0.001 for example) between the start date and end date of the backtest. So you will see some trades closing outside the candle's ohlc range. Unfortunately, this is a limitation in TV and can't do much about it.
BNB/USDT (4h) : 11,5,1,3,10,4,1,4,5,200,6,2,19 (rsi threshold = 50)
FTM/USDT (1h) : 11,8,3,4,5,5,1,5,7,400,5,3,20 (rsi threshold=50)
ETH/USDT (4h) : 11,5,1,3,2,5,1,4,3,200,4,3,20 (rsi threshold = 68)
MATIC/USDT (1h) : 9,10,3,4,6,7,1,6,7,200,2,5,18 (rsi threshold = 70)
DASH/USDT (4h) : 8,8,3,3,4,4,1,7,5,200,3,2,21 (no rsi)
BAT/USDT (4h) : 8,8,3,3,7,7,1,8,6,200,3,2,21 (rsi threshold = 40)
BAT/USDT (1h) : 9,9,3,6,6,7,1,7,7,300,6,4,21 (no rsi)
DOGE/USDT (1h) : 11,8,3,4,4,9,1,4,6,200,3,2,18 (rsi thresold = 70)
NKN/USDT (1h) : 6,7,3,4,2,8,3,5,8,200,6,3,15 (rsi threshold = 50)
BTC/USDT (4h) : 6,5,3,4,7,6,5,5,6,200,2,3,15 (no rsi)
BTC/USDT (3h) : 6,5,3,4,7,5,1,6,4,300,2,2,17 (no rsi)
Monthly Returns in Strategies with Market BenchmarkThis is a modified version of this excellent script Monthly Returns in PineScript Strategues by QuantNomad
I liked and used the script but wanted to see how strategy performed vs market on each month/year. So I am sharing back.
The modification consists in adding Market or Buy & Hold performance between parenthesis inside each cell to better see how strategy performed vs market.
Also, 3 red levels and 3 green levels have been used :
For green :
1/ Light when strategy pnl > 0 but < market
2/ medium when strategy pnl > 0 and > market
3/ Dark when strategy pnl > 0 and market < 0 or pnl > market x 2
Same logic in the opposite direction for red.
The strategy provided here is just a showcase of how to use the table in pine script.
Disclaimer
Please remember that past performance may not be indicative of future results.
Due to various factors, including changing market conditions, the strategy may no longer perform as well as in historical backtesting.
This post and the script don’t provide any financial advice.
Rolling VWAP - Vhunt Scalper botBINANCE:ADAUSDTPERP
Modified VWAP to use scalping in lower timeframe.
Use 1minute TF for best results but can also use up to 30min.
This indicator is made for crypto but may also work for other assets.
The bands serve as support and resistance and used for opening quick profit position if conditions below are met:
Indicators:
Blue - modified rolling vwap
Orange - Band1
Green - Band2
Opening position Conditions:
Long:
Band2 < Band1
Price < Band2
Short:
Band2 > Band1
Price > Band2
VWAP Stoch Long Trailing Stop without wednesday and thursdaySimple trading strategy based on VWAP and Stochastic indicators and a 3% trailing stop.
After backtesting, wednesdays and thursdays seemed to be bad entry days so they are blacklisted.
Fibonacci LevelsThe 420 VWMA (Volume Weighted Moving Average) per period selected of the low price (Fib 0) and the high price (Fib 1). They are labeled in Color of the line they represent.
The other Fib lines are calculated using common fib ratios as follows:
longRange_fib2618 = highestHighperLongRange +
(highestHighperLongRange - lowestLowperLongRange) * 1.618
longRange_fib1618 = highestHighperLongRange +
(highestHighperLongRange - lowestLowperLongRange) * .618
longRange_fib786 = highestHighperLongRange -
(highestHighperLongRange - lowestLowperLongRange) * 0.236
longRange_fib618 = highestHighperLongRange -
(highestHighperLongRange - lowestLowperLongRange) * 0.382
longRange_fib50 = highestHighperLongRange -
(highestHighperLongRange - lowestLowperLongRange) * 0.500
longRange_fib382 = highestHighperLongRange -
(highestHighperLongRange - lowestLowperLongRange) * 0.618
longRange_fib236 = highestHighperLongRange -
(highestHighperLongRange - lowestLowperLongRange) * 0.764
Those lines are drawn and labeled to right of chart
The 2 heavy whites and the short range of the Fib1 (Top) and Fib0 (Bottom). Eyes on chart when it approaches one those two points. This is where I look for continuation or reversal patterns, especially near a Longterm Fib
The Red, Green, Yellow and Blue are colored ratio lines that I am experimenting with and will later combine with a multiple time frames to show discernable patterns of potential near future movements.
The prices interacts with the fib lines and each of the the colored ratio lines as you go from small to larger time frames.
I will be publishing this soon to allow the community to improve on it.
TurboVWAPoscilOscillator based on VWAP and its standard deviations. It will display VWAP as a zero line and then an indicator line showing where price is in relation to VWAP expressed as Standard Deviation units.
This indicator is based on my awesome indicator TurboVWAP, so it shares most of its features:
- you can select whether you want a rolling or an anchored VWAP as basis.
- the VWAP will auto-set itself depending on the chart timeframe, so that it will be calculated based on the period you really want, not number of bars or similar.
- you can set the indicator to auto-set session start and end times for the session-anchored VWAP depending on the futures contract selected, so you don't need to mess with times.
TFi Simple Moving Average Bot V1 - PUBLICThe bot is using 2 moving averages for detecting the trend; the type of moving average is configurable; if the 2 moving averages are crossing it enters a long or short position. A stop-loss and profit-target can be configured; if reaching the profit-target, the bot is closing 50% (configurable) of the position, from this time on it is using a trailing-stop to close the position if the trailing-stop has been crossed.
The following moving-averages can be configured:
DEMA
EMA
HMA
RMA
SMA
TEMA
VWMA
WMA
Overview of features:
Optional stop-loss and profit-target/trailing-stop
Built-in backtesting engine with start balance, position size and pyramiding; each year will be evaluated separately
Inputs for a percentage entry and exit slippage, entry/exit and daily funding fees
Configurable alerts, which follow the exact position of the entry/exit marker
Alert messages contain predefined trading instruction to execute orders via TradeFab's proprietary trading server, which supports Alpaca-Markets, TD Ameritrade, Oanda, CCXT API's, or can be defined by the user
The script renders a performance/status table, which shows the current position status and result of the built-in trading simulation results. The following statistics are shown:
Current position PnL - also background turns green if position is in profit and red if in loss
Average entry price and number of positions
Current percentage distance to the optional stop-loss level
Current Maximum Draw Down
Number of wins and losses and the win/loss ratio per year and overall
Profit and loss amount, paid fees per year and overall
Profit-ratio and Maximum Draw Down per year and overall
Balance and ROI per year and overall
TurboVWAPs 3XAwesome indicator that will plot on your chart up to 3 different VWAPs and optionally up to 3 standard deviations for each one.
Each VWAP can be configured to be a Rolling or Anchored VWAP and to automatically adapt its period depending on the current chart timeframe. For example, you can configure each VWAP to be a rolling 30min VWAP for timeframes below 30M, a session-anchored VWAP between 30M and 1D timeframes, a rolling monthly VWAP for a 1D timeframe and a quarterly VWAP for a weekly timeframe.
You can disable any of the three VWAPs or any of its standard deviations bands.
For session-anchored VWAPs the script will automatically set session times depending on the current futures contract (only for US and EUR futures) if desired. You can disable this feature and manually input session start and end times.
WHTVC Compound VEMAA different take on the original Wick Hunter VWAP indicator aiming to find higher quality trades by allowing trades when the entry condition is met in several different periods.
Designed to be used with the Wick Hunter TradingView Companion bot.
VEMA is a moving average that is both volume weighted exponentially weighted for smooth curves that still react quickly to high volume movements. It is similar to VWMA (or VWAP).
The indicator calculates the VEMA for 6 different periods, and long/short offsets for each period. Alerts are triggered only when all 6 conditions are met.
"m0 Period" and "m5 Period" are the shortest and longest periods used, and 4 other periods are interpolated using these two periods.
"m0 Offset Above (short), %" and "m5 Offset Above (short), %" are the % offsets required to trigger a short entry for each of the periods, and the offsets for the other 4 periods are interpolated from these two offsets.
Kifier's MFI/STOCH Hidden Divergence/Trend BeaterMFI/STOCH Hidden Divergence/Trend Beater
General Idea:
My premise around this strategy was to make a general strategy for crypto that would help out with finding entry positions for when you’re bullish on a crypto and want to hold on for a while, and at the same time avoiding massive drops. Essentially a way to mix long term/ swing trading; I somewhat achieved my goal however it still requires a lot of logic tuning of the trend averages.
I’m a huge proponent of volume indicators and coupled with average closing price, I think this gives a really good idea of what is happening with the market. It gives an idea on the market and retail investor sentiment. This generally gives you logical entry positions (Although I don’t know how amazing that will work with all cryptos, there’s a fine line between a good strategy and one that just rides bubble market conditions, some would argue that’s still a success and others not)
How it works:
There are many components to the strategy that try to do different things:
First of all there are two types of entries, a MFI hidden divergence with a STOCH check, essentially it will only fire when a divergence is detected while STOCH is above 50%, however this might be changed in the future as due to the volatile nature of cryptos, the STOCH is not too effective. The second entry is a simple MFI/STOCH trend, if STOCH is above 50% and the trend is detected to be in a trending long, once a MFI crossover over the 50% line is detected an entry is placed, this is designed to get out profit where the divergence would otherwise be less accurate during strongly trending conditions.
-MFI is a great indicator, as a volume weighted momentum indicator I find it the most accurate of all, the STOCH however is a great indicator to get a general picture of simple market conditions and can filter out the emotional noise of retail investors.
-VWMA and an SMA (The bottom oscillator) gives an idea of the trend tacking into account of the volume, this serves as a more short term filter of the trend for filters.
-OBV checks are done between the OBV and an EMA of the OBV, to get the idea of a volume weighted long trend, which is important for crypto as there are massive rallies to go up due to retail greed, it’s great to jump onto it at the beginning, and get off before the stack of cards fall apart.
-ATR is used to detect when the market is relatively just ranging or moving sideways, which is where the hidden divergence entries are done, during predictable and profitable market conditions.
- Stop loss is based on the closest support of the entry, this is a nice medium of room to breath but also an actual stop loss.
Future plans and improvements:
Currently there’s a lot I want to improve, mostly the divergence detection and the overall sharpe ratio could be much better, but the current value of 0.5 gives me hope that the strategy is onto something. I also want to change TP from a percentage stop to something more dynamic but that might be too optimistic. The current plan is to paper trade test this either by manual or by a python bot, to see how it performs with some user input as well.
VWMA with kNN Machine Learning: MFI/ADXThis is an experimental strategy that uses a Volume-weighted MA (VWMA) crossing together with Machine Learning kNN filter that uses ADX and MFI to predict, whether the signal is useful. k-nearest neighbours (kNN) is one of the simplest Machine Learning classification algorithms: it puts input parameters in a multidimensional space, and then when a new set of parameters are given, it makes a prediction based on plurality vote of its k neighbours.
Money Flow Index (MFI) is an oscillator similar to RSI, but with volume taken into account. Average Directional Index (ADX) is an indicator of trend strength. By putting them together on two-dimensional space and checking, whether nearby values have indicated a strong uptrend or downtrend, we hope to filter out bad signals from the MA crossing strategy.
This is an experiment, so any feedback would be appreciated. It was tested on BTC/USDT pair on 5 minute timeframe. I am planning to expand this strategy in the future to include more moving averages and filters.
TopTenAlgo 10. SQZMOM Algorithmic Strategy with Alerts & SignalsEN: This Algorithm is a derivative of John Carter's "TTM Squeeze" volatility indicator. Many strategists have taken the indicator on Tradingview with simple moving averages and have looked at the biggest mistake only by dealing with squeeze and exit processes to squeeze. But I used the algorithm to determine where the markets would actually explode. For example, instead of using SMAs , I tested them on the Linear Regression Curve using Volume Weighted Moving Averages and Hull MAs. This gave me the opportunity to develop a more responsive algorithm and identify where the actual explosion would occur. The Gray Circles in the midline show that the market is entering a new jam (in the Bollinger Bands and Keltner Channel). This means low volatility , the market prepares itself for an explosive move (up or down). White Circles mean that it is about to get out of the jam. The Blue Circles, which no one can calculate, now inform that the exit is no longer jammed and that the explosion has taken place.
Mr. Carter recommends that you wait until the first gray after a gray cross and take a position in the momentum direction (for example, if the momentum value is above zero, relax). Exit position when the momentum changes (increase or decrease, this is indicated by a color change). In this algorithm, I tried to achieve good entry points using an additional indicator such as ADX and WaveTrend. To draw the histogram, I used a different method based on Linear Regression . Mr.Carter uses a simple momentum indicator. Strategy, alarms and signals have been added to the indicator so that you can optimize in algorithmic trading.
In summary, this algorithm is a strict algorithm in which additional 4-5 indicators are blended. Conveniences for Everyone ...
TR: Bu Algoritma John Carter'ın "TTM Squeeze" volatilite göstergesinin bir türevidir. Bir çok stratejist Tradingview' de gösterge' yi basit hareketli ortalamalarla ele almış ve en büyük hatayı sadece sıkışma ve sıkışmadan çıkış süreçlerini ele alarak bakmışlardır. Fakat ben algoritmayı piyasaların asıl patlama yapacağı yeri tespit etmek için kullandım. Örneğin SMA' ları kullanmak yerine Hacim Ağırlıklı Hareketli Ortalamaları ve Hull MA' ları kullanarak onları Linerar Regresyon Eğrisinde stress testine tabi tuttum. Buda bana daha duyarlı bir algoritma geliştirmem ve asıl patlamanın olacağı yerleri tespit etmem için fırsat verdi. Orta hattaki Gri Daireler, piyasanın yeni bir sıkışmaya girdiğini gösteriyor ( Bollinger Bantları ve Keltner Kanalı'nda). Bu, düşük volatilite anlamına gelir, piyasa kendisini patlayıcı bir harekete hazırlar (yukarı veya aşağı). Beyaz Daireler ise sıkışmadan çıkmak üzere olduğu anlamına gelir. Hiç kimsenin hesap edemediği Mavi Daireler ise artık sıkışmadan çıkıldığını ve patlamanın gerçekleştiğini haber verir.
Mr.Carter, gri bir çarpı işaretinden sonra ilk griye kadar beklemenizi ve momentum yönünde bir pozisyon almanızı önerir (örneğin, momentum değeri sıfırın üstünde ise, rahat olun). Momentum değiştiğinde pozisyondan çıkın (artırma veya azaltma, bunu o bir renk değişikliği ile belirtilir). Bu algoritmada ben, ADX ve WaveTrend gibi ek bir gösterge kullanarak iyi giriş noktalarıelde etmeye çalıştım. Histogramı çizmek için ise Linear Regresyon tabanlı farklı bir yöntem kullandım. Mr.Carter basit bir momentum göstergesi kullanır. Göstergeye algoritmik işlemlerde optimizasyon yapabilmeniz için strateji, alrmlar ve sinyaller eklenmiştir.
Özetle bu algoritma ek 4-5 göstergenin harmanlandığı sıkı bir algoritmadır. Herkese Kolaylıklar dilerim...
TurboVWAPVWAP indicator based in the built-in one but completely rewritten. Features:
- more standard deviation bands, up to 3.
- added the possibility to not anchor the VWAP but make it a rolling one instead, like a VWMA, being in this case able to specify days, hours or minutes for the rolling VWAP.
- for rolling VWAPs, the indicator doesn't count bars but real days, hours or minutes instead, so regardless of the chart timeframe the indicator will always show the correct values.
- for rolling VWAPs, if you specify x days as the rolling time, the indicator will always count exactly 24 hours from the current time backwards - so, from the same time yesterday or x days ago.
- in rolling VWAPs, although the indicator counts real time elapsed as per your settings and not chart bars, it will automatically skip holidays, so you needn't worry about that.
- for the anchored VWAP, added the possibility to specify custom session times (for example, for ES 0830-1500, instead of Globex, which is the Tradingview default as of today)
- complete customization of all fills and linetypes
For illustration purposes in the attached 1min chart I have:
- a 30min rolling VWAP in BLUE with no standard deviation plots,
- a 1 day rolling VWAP in RED with standard deviations in light red and green (these are the default settings)
- a RTH-session-anchored VWAP in ORANGE with standard deviations in light orange and light blue
Moving Average ToolThe Moving Average Tool is the only indicator you will ever need to plot MA lines. It comes loaded with 9 different types of moving averages so traders can lay down any line at any length. There is also an option to plot a trigger line. Features: SMA , SMMA, EMA, LSMA, ZLSMA, HULL, LWMA, VWMA and ALMA. Simply pick an average type and enter the desired length.
Wick Hunter TV Companion Dynamic VEMA v0.5 (beta)Wick Hunter TV Companion Dynamic VEMA v0.5 (beta)
For triggering trades on Wick Hunter TV Companion
Indicator is similar to the standard VWAP indicator, however - this adds a level of protection against sudden reversals to not counter-trade retracements. This allows you to trade on a low timeframe while still counter-trend trading the overall trend.
Note that VEMA is a volume weighted EMA (i.e. the moving average is weighted by both volume and recency), and is slightly different to VWMA/VWAP. As recent prices are weighted heavier, a longer period should be used if you want a similar trigger to VWMA/VWAP.
VWMA / SMA / TEMA DifferenceThis Study try to simulate Weakening and Strengthening trends on Bear(down) or Bull(up) movements.
It looks to VWMA - TEMA trend for Bull / Bear trend and looking for SMA - VWMA trend for Weak / Strong trends.
On default settings Line shows the difference between VWMA - TEMA and Columns show difference between SMA - VWMA. Suggesting to use this script for 5m intervals.
This is a personal work of mine. Using this script and taking decisions regarding to this script is only and only under responsibility of the trader!!!
Yusram Mount MaV - Day MaV CrossOver Strgty
This indicator shows the comparison between the 7-day fast simple average and the monthly slow average of 5 bars. The red line indicates the monthly green and blue lines the daily average. If the Green-Blue line crosses the red upwards, it is a buy signal and the opposite is a sell signal. As soon as it turns green blue without waiting for the sell signal, a sell signal is created. If you are trading fast, you can consider turning green to blue as an opportunity. In the long run, the red intersection can be interpreted as a Stop point.
I hope it will be useful to everyone.
You can also find the strategy indicator with the same name.
I got the name of this indicator from my daughter's name. The meaning of the name Yüsra means "convenience". I hope this indicator will help you.Yüsram Mount HO - Day HO
Yusram Mount MaV - Day MaVYüsram Mount HO - Day HO
This indicator shows the comparison between the 7-day fast simple average and the monthly slow average of 5 bars. The red line indicates the monthly green and blue lines the daily average. If the Green-Blue line crosses the red upwards, it is a buy signal and the opposite is a sell signal. As soon as it turns green blue without waiting for the sell signal, a sell signal is created. If you are trading fast, you can consider turning green to blue as an opportunity. In the long run, the red intersection can be interpreted as a Stop point.
I hope it will be useful to everyone.
You can also find the strategy indicator with the same name.
I got the name of this indicator from my daughter's name. The meaning of the name Yüsra means "convenience". I hope this indicator will help you.
yin+yang StrategyThis strategy is the combination of 16 different indicators that collectively give you a signal for a long and short position.
It will mostly give you 8-9 successful trade out of 10.
have fun.
Wave Trend w/ VWMA overlayThis is a trend-following strategy and indicator which combines the Wave Trend Strategy (Lazy Bear) by thomas.gigure with the cRSI + Waves Strategy with VWMA overlay by Dr_Roboto .
You may update the parameters of the Wave Trend oscillator or the VWMA indicator to match your own preferences. You may also adjust the Base Quantity used for determining trade size (as described below) to suit your account size and risk tolerance.
The strategy identifies potential signals based on the on the Wave Trend oscillator, originally ported to TradingView by LazyBear. When a signal is produced by the Wave Trend oscillator, trade size is determined by the VWMA.
When the VWMA is trending against the direction of the Wave Trend signal, Base Quantity x 1 is used
When the VWMA is trending neutral, Base Quantity x 2 is used
When the VWMA is trending with the direction of the Wave Trend signal, Base Quantity x 4 is used
The strategy includes the ability to limit trade signals to certain defined periods of time ("Sessions") during the trading day and, optionally, to close any open position at the end of either or both "Sessions." This may be enabled/disabled via the Limit Signals to Trading Sessions? option on the "Inputs" tab of the strategy's "Settings" window.
If you are trading on a daily chart (or longer) you must disable the Limit Signals to Trading Sessions? in order for the strategy to produce signals.