MAPM-V1Greetings dear traders!
I would like to introduce you the script for testing the strategy by crossing two signal EMAs based on the MACD indicator.
In the strategy itself:
The entry is made as a percentage of the deposit by EMA crossings.
There are additional purchases, they are set from the entry price for a given percentage in the opposite direction of the transaction.
The distance in percentage from the entry price, on which the additional purchase is exposed, is set in the StepAddPurchases parameter.
The Martingale parameter increases the initially purchased amount of the base traded cryptocurrency in each additional purchase.
The essence of the strategy is to trade a large number of pairs in order to diversify risks and obtain a stable income.
It is desirable to enter each trading pair with a small percentage of the deposit.
The optimization result shows the trading result for the period of 5000 bars (the platform does not give more history) on 10% of the deposit for the first transaction, the addition will also take place on initially bought amount of base traded cryptocurrency, multiplied by the martingale parameter, raised by the number of addition.
The strategy will still be updated, so see you soon!
K-macd
Nyquist Moving Average (NMA) MACD [Loxx]Nyquist Moving Average (NMA) MACD is a MACD indicator using Nyquist Moving Average for its calculation.
What is the Nyquist Moving Average?
A moving average outlined originally developed by Dr . Manfred G. Dürschner in his paper "Gleitende Durchschnitte 3.0".
In signal processing theory, the application of a MA to itself can be seen as a Sampling procedure. The sampled signal is the MA (referred to as MA.) and the sampling signal is the MA as well (referred to as MA). If additional periodic cycles which are not included in the price series are to be avoided sampling must obey the Nyquist Criterion.
It can be concluded that the Moving Averages 3.0 on the basis of the Nyquist Criterion bring about a significant improvement compared with the Moving Averages 2.0 and 1.0. Additionally, the efficiency of the Moving Averages 3.0 can be proven in the result of a trading system with NWMA as basis.
What is the 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. Moving average convergence divergence (MACD) indicators can be interpreted in several ways, but the more common methods are crossovers, divergences, and rapid rises/falls.
Included
Bar coloring
2 types of signal output options
Alerts
Loxx's Expanded Source Types
MACD + RSI with Trade SignalsThis indicator by default comes with the MACD shown but can be switched to show the RSI instead. Settings for each indicator can also be customized as well as Buy/Sell signals given based on pull back crossovers that follow the 200 EMA of the price Chart. There's an above/below middle fill option you can use but I tend not to but I know some traders like to see when an oscillator is above/below the middle and use it as a trend diretion. By the way, the fourth setting for the MACD (which is 2 by default) is the size of the histogram.
Buy Signal = Price is above the 200 EMA. Current or previous MACD or RSI line is/was below middle line and now crossed above the signal line.
Sell Signal = Price is below the 200 EMA. Current or previous MACD or RSI line is/was above middle line and now crossed below the signal line.
There are alerts for each signal as well (MACD and RSI, both buy and sell).
Feel free to leave a comment regarding issues or suggestions for this indicator or ideas for the next one I should do :)
Fisher Transform of MACD w/ Quantile Bands [Loxx]Fisher Transform of MACD w/ Quantile Bands is a Fisher Transform indicator with Quantile Bands that takes as it's source a MACD. The MACD has two different source inputs for fast and slow moving averages.
What is Fisher Transform?
The Fisher Transform is a technical indicator created by John F. Ehlers that converts prices into a Gaussian normal distribution.
The indicator highlights when prices have moved to an extreme, based on recent prices. This may help in spotting turning points in the price of an asset. It also helps show the trend and isolate the price waves within a trend.
What is Quantile Bands?
In statistics and the theory of probability, quantiles are cutpoints dividing the range of a probability distribution into contiguous intervals with equal probabilities, or dividing the observations in a sample in the same way. There is one less quantile than the number of groups created. Thus quartiles are the three cut points that will divide a dataset into four equal-size groups (cf. depicted example). Common quantiles have special names: for instance quartile, decile (creating 10 groups: see below for more). The groups created are termed halves, thirds, quarters, etc., though sometimes the terms for the quantile are used for the groups created, rather than for the cut points.
q-Quantiles are values that partition a finite set of values into q subsets of (nearly) equal sizes. There are q − 1 of the q-quantiles, one for each integer k satisfying 0 < k < q. In some cases the value of a quantile may not be uniquely determined, as can be the case for the median (2-quantile) of a uniform probability distribution on a set of even size. Quantiles can also be applied to continuous distributions, providing a way to generalize rank statistics to continuous variables. When the cumulative distribution function of a random variable is known, the q-quantiles are the application of the quantile function (the inverse function of the cumulative distribution function) to the values {1/q, 2/q, …, (q − 1)/q}.
What is 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 .
Included:
Zero-line and signal cross options for bar coloring, signals, and alerts
Alerts
Signals
Loxx's Expanded Source Types
35+ moving average types
PA-Adaptive MACD w/ Variety Levels [Loxx]PA-Adaptive MACD w/ Variety Levels is a Phase Accumulation Adaptive MACD with both floating and quantile levels. This is tuned for Forex. You'll have to adjust the Phase Accumulation Cycle settings to work for crypto and stock markets.
What is 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 .
What is the Phase Accumulation Cycle?
The phase accumulation method of computing the dominant cycle is perhaps the easiest to comprehend. In this technique, we measure the phase at each sample by taking the arctangent of the ratio of the quadrature component to the in-phase component. A delta phase is generated by taking the difference of the phase between successive samples. At each sample we can then look backwards, adding up the delta phases.When the sum of the delta phases reaches 360 degrees, we must have passed through one full cycle, on average.The process is repeated for each new sample.
The phase accumulation method of cycle measurement always uses one full cycle’s worth of historical data.This is both an advantage and a disadvantage.The advantage is the lag in obtaining the answer scales directly with the cycle period.That is, the measurement of a short cycle period has less lag than the measurement of a longer cycle period. However, the number of samples used in making the measurement means the averaging period is variable with cycle period. longer averaging reduces the noise level compared to the signal.Therefore, shorter cycle periods necessarily have a higher out- put signal-to-noise ratio.
Included:
Zero-line and signal cross options for bar coloring, signals, and alerts
Alerts
Signals
Loxx's Expanded Source Types
4 moving average types
MACD-V Volatility NormalisationUsing MACD-V by Alex Spiroglou (CMT) Method
Calculation MACD-V = * 100
While
⚠️MACD-V >150 - Risk
📈MACD-V between 50 - 150 : Rallying or Retracing📈
〰️MACD-V between -50 - 50 : Ranging (Sideway) 〰️
↪️MACD-V between -150 - -50 : Rebounding or Reversing ↪️
⚠️MACD-V <150 - Risk ⚠️
MACD-V as Columns BarI use MACD-V as Columns Bar and including the signal line
Not use MACD-V - Signal Line as Histogram
Enjoy!
3C Crossover with TTP & TSLThis is not a set and forget strategy. It needs constant tweaking to maintain a high winrate. Also what works on one pair can be horrible on another.
This strategy works best on the 1 min or 5 min TF but also works well on the 15 min. Haven't done any testing in higher TF's as im only interested in scalping.
If enabled you can retrive data for the filters on any TF.
The strategy do not repaint.
You do not need a 3c subscription to run this strategy as the bot turns on and off the bot itself.
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest. 6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
Long or Short trades are determined with a crossing of the fast MA over the slow MA for Long and the opposite for Short. By checking Close position on MA cross the deal will close on a crossover/under of the 2 MA's
You can select from various different MA's and of course lenghts. You can add both EMA filter on any lenght aswell as ATR to determine to go long or short.
Using the MA gap can help you to not enter trades in a low volatile ranging market.
The RSI filter, sets the maximum RSI threshold for a long position and the minimum for a short. By default and what i recomend is that you enter Longs when RSI is above 50 and shorts when RSI are below 50.
-You can set confirmation of the trade direction with RSI , i.e. for Long the RSI must rise a specified number of bars back, vice versa for Short.
Enabling the pullback filter is great to avoid Longing tops and Shorting bottoms.
Stop loss can be set be either a fixed percentage or by using ATR
Take profit can be set by using percentage, ATR or RiskReward ratio(RR). if you use ATR as a stoploss i recomend using RR as the TP.
Yu can choose to trail the TP with either Percentage or ATR
Whats ahead. I really want to incorporate RSI divergencies, but haven't figured out how yet. Any other ideas would be greatly appreciated.
Have a look at my other strategies. They are similar to this but works abit differently.
3C MACD & RSI Scalper no repaintThis is not a set and forget strategy. It needs constant tweaking to maintain a high winrate. Also what works on one pair can be horrible on another.
This strategy works best on the 1 min or 5 min TF but also works well on the 15 min. Haven't done any testing in higher TF's as im only interested in scalping.
If enabled you can retrive data on the MACD and RSI from any timeframe.
The strategy do not repaint.
You can filter on sessions as well as days. Often trading during say only the EU times and not trading during weekends yields better results. This is because weekeds and eg. the Asia Sessions are alot less volatile.
You do not need a 3c subscription to run this strategy as the bot turns on and off the bot itself.
Instructions for the 3commas connector:
1. First, you need to prepare 3commas Long/Short bots that will only listen to custom TV signals.
2. Inputs for the 3commas bot can be found at the end of the user inputs.
3. Once you have entered the required details into the inputs, turn on 3commas comments. They should appear on the chart (looks messy).
4. Now you can add the alert where you should paste the 3commas Webhook URL: 3commas.io
5. For the alert message text insert the placeholder {{strategy.order.comment}} and delete the rest. 6. Once the alert is saved, you can turn off those 3commas comments to have a clearer chart.
7. With a new alert, the bot and trade should launch.
Long or Short trades are determined with a crossing of the fast MA over the slow MA for Long and the opposite for Short. Trades should only happen close to the crossovers.
You can select from various different MA's and of course lenghts. I often find that using HEMA as the fast MA and DEMA as the slow give more trades while also maintaining a high winrate.
Then for Long we use the MACD indicator where we look for high peaks in negative values for Long and vice versa for Shorts. These should be significantly higher than other peaks (or if you will lower peaks for a Long).
The key is to detect high peaks on the histogram, which we will try to achieve by checking if the last 2 values were higher than X bars back. If you want to make it even more specific, then you can turn on the additional checkbox which compares the current value to the average value of X bars back, and if it is greater than, say, 72% the value of the average then it's ok to enter the trade.
The RSI filter, sets the maximum RSI threshold for a long position and the minimum for a short. By default and what i recomend is that you enter Longs when RSI is above 50 and shorts when RSI are below 50.
-You can set confirmation of the trade direction with RSI, i.e. for Long the RSI must rise a specified number of bars back, vice versa for Short.
Enabling the pullback filter is great to avoid Longing tops and Shorting bottoms.
Whats ahead. I really want to incorporate RSI divergencies, but haven't figured out how yet. Any other ideas would be greatly appreciated.
Have a look at my other strategies. They are similar to this but works abit differently.
The 3 strike line and the engulfing candles are not something that has an impact on the script yet, and might never be. But i do like to turn them on for a visual to see if the trade the strategy opened is a good one.
CCI+MACD+VWAP+BreakoutDesign for LONG and Day Trade only
- Identify buy and sell signal using CCI
- Green Zone when
-- Price over VWAP
-- EMA9 > EMA50 > EMA200
-- MACD fast > MACD slow
- Yellow Zone when either one failed
- White line occurs when breakout of Higher High + Higher Low
MACD DEMA by ToffMACD DEMA by Toff
converted to version 5
Changed Histogram formatting
Changed MACD plot to indicate macd direction change
//@version=5
//by ToFFF converted to version 5, changed histogram formating changed macd plot to show macd direction changed with lighter color
indicator('MACD DEMA', timeframe = "", timeframe_gaps=true)
sma = input(12,title='DEMA Short')
lma = input(26,title='DEMA Long')
tsp = input(9,title='Signal')
lines = input(true,title="Lines")
col_grow_above = input(#26A69A, "Above Grow", group="Histogram", inline="Above")
col_fall_above = input(#B2DFDB, "Fall", group="Histogram", inline="Above")
col_grow_below = input(#FFCDD2, "Below Grow", group="Histogram", inline="Below")
col_fall_below = input(#FF5252, "Fall", group="Histogram", inline="Below")
col_macd = input(#2962FF, "MACD Line ", group="Color Settings", inline="MACD")
col_signal = input(#FF6D00, "Signal Line ", group="Color Settings", inline="Signal")
col_macd_i = #0000FF
col_macd_d = #66FFFF
slowa = ta.ema(close,lma)
slowb = ta.ema(slowa,lma)
DEMAslow = ((2 * slowa) - slowb)
fasta = ta.ema(close,sma)
fastb = ta.ema(fasta,sma)
DEMAfast = ((2 * fasta) - fastb)
MACD = (DEMAfast - DEMAslow)
signala = ta.ema(MACD, tsp)
signalb = ta.ema(signala, tsp)
signal = ((2 * signala) - signalb)
hist = (MACD - signal)
//swap1 = MACDZeroLag>0?green:red
plot(hist,style=plot.style_columns, color=(hist>=0 ? (hist < hist ? col_grow_above : col_fall_above) : (hist < hist ? col_grow_below : col_fall_below)),title='HIST')
p1 = plot(lines?MACD:na,style = plot.style_line, color=(MACD < MACD) ? col_macd_i : col_macd_d , linewidth =3,title='MACD')
p2 = plot(lines?signal:na, color=col_signal, linewidth =2,title='Signal')
hline(0)
ARKA-LBR OscillatorThe oscillator is used by Linda Bradford Raschke.
Basically, it's a MACD with 3/10/16 settings without the histogram (difference between fast and slow line), instead, the shown histogram is based on the fastline . The color of the lines will tell you if the line is falling (red) or rising (green).
But in this indicator, you can activate Histogram and cross signals.
In histogram mode, you can find 4 colors which show us the strength of each histogram compared to the previous one.
Inverse MACD + DMI Scalping with Volatility Stop (By Coinrule)This script is focused on shorting during downtrends and utilises two strength based indicators to provide confluence that the start of a short-term downtrend has occurred - catching the opportunity as soon as possible.
This script can work well on coins you are planning to hodl for long-term and works especially well whilst using an automated bot that can execute your trades for you. It allows you to hedge your investment by allocating a % of your coins to trade with, whilst not risking your entire holding. This mitigates unrealised losses from hodling as it provides additional cash from the profits made. You can then choose to hodl this cash, or use it to reinvest when the market reaches attractive buying levels.
Alternatively, you can use this when trading contracts on futures markets where there is no need to already own the underlying asset prior to shorting it.
ENTRY
The trading system uses the Momentum Average Convergence Divergence (MACD) indicator and the Directional Movement Index (DMI) indicator to confirm when the best time is for selling. Combining these two indicators prevents trading during uptrends and reduces the likelihood of getting stuck in a market with low volatility.
The MACD is a trend following momentum indicator and provides identification of short-term trend direction. In this variation it utilises the 12-period as the fast and 26-period as the slow length EMAs, with signal smoothing set at 9.
The DMI indicates what way price is trending and compares prior lows and highs with two lines drawn between each - the positive directional movement line (+DI) and the negative directional movement line (-DI). The trend can be interpreted by comparing the two lines and what line is greater. When the negative DMI is greater than the positive DMI, there are more chances that the asset is trading in a sustained downtrend, and vice versa.
The system will enter trades when two conditions are met:
1) The MACD histogram turns bearish.
2) When the negative DMI is greater than the positive DMI.
EXIT
The strategy comes with a fixed take profit combined with a volatility stop, which acts as a trailing stop to adapt to the trend's strength. Depending on your long-term confidence in the asset, you can edit the fixed take profit to be more conservative or aggressive.
The position is closed when:
Take-Profit Exit: +8% price decrease from entry price.
OR
Stop-Loss Exit: Price crosses above the volatility stop.
In general, this approach suits medium to long term strategies. The backtesting for this strategy begins on 1 April 2022 to 18 July 2022 in order to demonstrate its results in a bear market. Back testing it further from the beginning of 2022 onwards further also produces good returns.
Pairs that produce very strong results include SOLUSDT on the 45m timeframe, MATICUSDT on the 2h timeframe, and AVAUSDT on the 1h timeframe. Generally, the back testing suggests that it works best on the 45m/1h timeframe across most pairs.
A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
Sherry on Crypto - MACD ScalpingThis indicator is originally made by someone else, I just modified it to increase its win rate.
How to use this indicator?
Step 1: This indicator only works in 5 minutes timeframe (BTC) . Apply 5 minutes timeframe in Tradingview.
Step 2: Apply 2 EMA(s), 1st EMA length 50, 2nd EMA length 200.
Step 3: Draw support and resistance and understand price action as well.
Step 4: Use RSI along with this indicator.
Strategy: When you see a down tick on the MACD in 5 minutes timeframe,
you are allow to take a long position. When you see an up tick on the MACD in 5 minutes timeframe, you are allow to take a Short position,
but RSI should be Included (you can do your own settings of RSI).
Recommended TP 0.50 and SL 0.40.
Variety Moving Average Waddah Attar Explosion (WAE) [Loxx]Variety Moving Average Waddah Attar Explosion is a Waddah Attar Explosion after the original version created over a decade ago. This version has ATR and Pips calculated dead-zone as well as 35+ moving averages to choose from for all moving average calculations.
What is Waddah Attar Explosion?
Waddah Attar Explosion is a momentum indicator that accounts for volatility in the market. It is the combination of MACD and Bollinger Bands with volatility cutoffs to determine entry and exit points.
How to use:
Strong uptrend when dark green arrow points up
Weak uptrend when light green arrow points up
Strong downtrend when dark red arrow points down
Weak downtrend when light red arrow points down
Included:
35+ moving averages
Controls over explosion and trend filtering
Bar coloring
Dead-zone coloring
ATR and Pips-based dead zone cutoffs
Alerts
MACD CandleInstead of viewing MACD from a separate chart (histogram), this indicator will plot a candle based on the MACD value. It is easy to summarize trends and make your technical analysis charting less complex.
MACD S/R signal indicatorI've based the script on my MACDs/r indicator.
I think it works better on higher timeframes, this is just an experiment, please feel free to modify it.
I have been testing it with parabolic SARS to know when to exit the trades.
Exit condition: if I'm in a log position and the price is below the last bearish parabolic SARS dot I exit the trade and the opposite for shorts
DISCLAIMER: Is just an experiment and I haven't test it with real money, be careful
MACD Potential Divergence - FontiramisuIndicator showing potential momentum divergences on MACD Momentum.
The problem with the classic divergence is that when the signal appears, it is sometimes too late to enter a trade .
The potential divergence corrects this problem by signaling the beginning of a potential divergence .
MACD is a momentum indicator that offers relevant insights with divergences.
Potential divergences are indicated with the letter B and a red color for Bearish Div or Green color for Bullish Div .
Potential divergence is confirmed when the line and the label "Bear"' or "Bull" appear.
ComiCo - Joel on Crypto - MACD ScalpingThis is a modified (hopefully improved) version of the "Joel on Crypto - MACD Scalping" indicator. It got turned into a strategy, and added some extra filters, like number of trades after EMA cross, minimal EMA distance (EMA 50's distance from the EMA 200). It is just an experiment to see how good this scalping strategy can get.
Play around with it and let me know if you found good settings, or just have a comment on it.
I could get fairly good results on BTCUSDT 5m with these settings (all others left on default values):
Ticks Avg. Multiplier = 1.4
Max trades after EMA cross = 16
Limit Price Difference = 0
Take Profit = 0.0065
Stop Loss = 0.0085
Min EMA difference = 110
Pyramiding = 3
MACD ScalpsMACD Scalping
50 EMA crosses below 200 EMA = Only shorts
50 EMA crosses above 200 EMA = Only longs
For longs: -> Enter on red MACD bar
For shorts: -> Enter on green MACD bar
Bars not big enough or that do not follow the EMA rule are greyed out.
WSTF RSI2 IndicatorThis is the Indicator replicating the basic RSI(2) created by Wilders.
Buy condition:
(RSI(2) crossed under 10) & (close > EMA(200)) & (EMA(5) > close)
Sell condition:
(RSI(2) crossed over 90) & (close < EMA(200)) & (EMA(5) < close)
You can play around with the script by adjusting the RSI Values, EMA values and crossover & crossunder threshold.
We will update the script with new features in the futures.
Please don't hesitate to share some Ideas or Feedbacks, we would be happy to improve the script for you !
Have fun !
WS TradingFactory
Probability Density Function based MA MACD [Loxx]Probability Density Function based MA MACD is a MACD indicator using a type of weighted moving average.
What is Probability Density Function based MA MACD?
Probability density function based MA is a sort of weighted moving average that uses probability density function to calculate the weights.
Included:
-Toggle on/off bar coloring
BenMACD Wilders LTF (Learning to Fish) PTBH (Paid By The Hour)Howdy folks!
The study/script is based on Wilders MACD , and has its roots in "Learning to Fish", and "Paid by The Hour" , made popular by Daniel on Twitter. This takes Daniel's work a step further.
As stated, this MACD Wilders based study . By using this script in TradingView you can take guesswork out of the "curls" and "I think it's curling up? Let me check the blue line and subtract..." Forget all that. This study alerts you with big red arrows and big green arrows, and a banner and a message. And it makes sounds. Alert for bullish and a different sound for bearish.
This study is timeframe and instrument agnostic. Use it to daytrade, swing trade, or trade pairs. I've personally found a lot of success using this, trading pairs (SQQQ/TQQQ or TNZ/TZA, for example) on the 5m and 15m intervals. It's also been very accurate on PBTH using stocks like SQ or BX.
With arrows showing the MACD curl, it makes trading a lot easier.
Also included are 4 built in alert conditions:
upsignal - A bullish alert for 1 bar on the MACD.
upsignalconfirm - A bullish alert on 2 consecutive bars on the MACD. Confirmation alert.
downsignal - A bearish alert for 1 bar on the MACD.
downsignalconfirm - A bearish alert on 2 consecutive bars on the MACD. Confirmation alert.
I can help setup alerts for you if need be, or if you're fluent in TradingView, you're welcome to do that yourself. The premise here, is that the upsignal is a bullish indicator (and is indicated with a green up arrow on the BenMACD chart) and the downsignal is a bearish indicator (and is indicated with a red down arrow on the BenMACD chart).
The upsignalconfirm and downsignal confirm and alerts built into the code. The alerts themselves will have to be created, but they're already here for easy reference and installation.