HULL MACDA modified version of MACD.
Uses Hull moving average for the signal line instead of your typical EMA.
Can be used as a crossover strategy with decent win rate.
Alternatively, can also be used for histogram divergences.
Try it out! :)
K-macd
MACD Strategy KMACK Rev 1.1Hull smoothed 45/10 macd
Please note that the macd/rsi values do not print unless the current day is Monday-Friday and the market will be open.
14 period hull smoothed rsi marks the rsi value at each macd reversal and will not signal a long position above 70 or a short position below 30
Macd and rsi will only display on the current day and will only display the last 2 hours
Lit candles occur after 0920 nyse time
Alerts or entries will only fire after 0931 nyse time
Entry signal will confirm with the 5 minute candle.
Long entry requires the current 5 minute candle to close>=hlc3
Short entry requires the current 5 minute candle to close<=hlc3
Buy/sell alerts will only fire in the last 10 seconds of the realtime (current) bar
Options:
Select bias
Modify macd lookback period(s)
Alerts:
Buy
Sell
Rsi crossing into the power region (60)
Rsi crossing into the weakness region (40)
Current strategy exits position upon signal opposite to selected bias, this is for simplicity.
There are currently no add-on strat signals but the alerts/lit candles will fire
Successful trades average >55% with an average profit factor of 3%
Net profit averages 3%
Max drawdown averages below 0.25%
Added order size input
Added show/hide strat signals. Still lights the bars green/red. Make sure your bar color setting in tv is set to a transparent color so you can see the bright reds and greens.
Added a couple lines of code that fire the alert/strat if macd reverses and the corresponding 5min candle does not agree and the following candle does agree. Added an average of 1.5% winning trades.
Message me for free trial access
Full strategy AllinOne with risk management MACD RSI PSAR ATR MAHey, I am glad to present you one of the strategies where I put a lot of time in it.
This strategy can be adapted to all type of timecharts like scalping, daytrading or swing.
The context is the next one :
First we have the ATR to calculate our TP/SL points. At the same time we have another rule once we enter(we enter based on % risk from total equity, in this example 1%, at the same time, lowest ammount for this example is 0.1 lots, but can be modified to 0.01), so we can exit both by tp/sl points, or by losing 1% of our equity or winning 1% of our total equity. It's dinamic.
The strategy is made from
Trend direction :
PSAR
First confirmation point :
Crossover between 10EMA and Bollinger bands middle point
Second confirmation
MACD histogram
Third confirmation
RSI overbought/oversold levels
For entries : we check trend with psar, then once ema cross bb middle point, we confirm together with rsi level for overbought/oversold and macd histogram ( > 0 or <0).
We exit, when we have opposite sign, like from buy to sell or sell to buy, or when we reach tp/sl points, or when we reach % basaed equity points.
It can be changed to be fixed lots, or fixed tp/sl , you just have to uncomment the size from entries, and tp/sl lines.
At the same time, it has the possibility if one desires, to trade only concrete forex session like european, asian and so on for intraday trading.
Hope you enjoy it.
Let me know how it goes.
MACD++ Strategy [SystemAlpha]This is a strategy based on MACD Oscillator. Instead of using just the normal crossovers, we use trend filters, trailing stop loss and take profit targets. This strategy was developed for crypto, forex and stocks on daily timeframe but feel free to experiment on 15 minutes or higher using heikin ashi or normal candles
In this strategy you have a choice of:
Trend Filters:
- Average Directional Index ( ADX ) – buy when price is trend is up and sell when trend is down.
- Moving Average (MA) – buy when price close above the defined moving average and sell when price close below moving average
- Parabolic SAR – buy when SAR is above price is above price and sell when SAR is below price.
- All - Use ADX , MA and SAR as filters
For MA Filter , you can use the “TF MA Type” and "TF MA Period" parameter to select Simple or Exponential Moving Average and length.
Stop Loss:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Parabolic SAR ( SAR ) – Parabolic SAR adapted as trailing stop loss.
For ATR , you can use the “ATR Trailing Stop Multiplier” parameter to set an initial offset for trailing stop loss.
Take Profit Target:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Standard % – Percent as target profit
For ATR , you can use the “ATR Take Profit Multiplier” parameter to set an initial offset for trailing stop loss.
Additional feature include:
- Regular and Hidden Divergence display and alerts
STRATEGY ONLY:
- Set back test date range
- Set trade direction - Long, Short or Both
- Use timed exit - Select method and bars
- Method 1: Exit after specified number of bars.
- Method 2: Exit after specified number of bars, ONLY if position is currently profitable.
- Method 3: Exit after specified number of bars, ONLY if position is currently losing.
TradingView Links:
Alerts:
MACD:
How to use:
1. Apply the script by browsing through Indicators --> Invite-Only scripts and select the indicator
2. Once loaded, click the gear (settings) button to select/adjust the parameters based on your preference.
3. Wait for the next BUY or SELL signal to enter the trade!
Disclaimer:
The indicator and signals generated do not constitute investment advice; are provided solely for informational purposes and therefore is not an offer to buy or sell a security; are not warranted to be correct, complete or accurate; and are subject to change without notice.
MACD+ Strategy [SystemAlpha]This is a strategy based on MACD Oscillator . Instead of using just the normal crossovers, we use trend filters, trailing stop loss and take profit targets. This strategy was developed for crypto, forex and stocks on daily timeframe but feel free to experiment on 15 minutes or higher using heikin ashi or normal candles
In this strategy you have a choice of:
Trend Filters:
- Average Directional Index ( ADX ) – buy when price is trend is up and sell when trend is down.
- Moving Average (MA) – buy when price close above the defined moving average and sell when price close below moving average
- Parabolic SAR – buy when SAR is above price is above price and sell when SAR is below price.
- All - Use ADX , MA and SAR as filters
For MA Filter , you can use the “TF MA Type” and "TF MA Period" parameter to select Simple or Exponential Moving Average and length.
Stop Loss:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Parabolic SAR ( SAR ) – Parabolic SAR adapted as trailing stop loss.
For ATR , you can use the “ATR Trailing Stop Multiplier” parameter to set an initial offset for trailing stop loss.
Take Profit Target:
- Average True Range (ATR) – ATR % stop as trailing stop loss.
- Standard % – Percent as target profit
For ATR , you can use the “ATR Take Profit Multiplier” parameter to set an initial offset for trailing stop loss.
Additional feature include:
- Regular and Hidden Divergence display and alerts
STRATEGY ONLY:
- Set back test date range
- Set trade direction - Long, Short or Both
- Use timed exit - Select method and bars
- Method 1: Exit after specified number of bars.
- Method 2: Exit after specified number of bars, ONLY if position is currently profitable.
- Method 3: Exit after specified number of bars, ONLY if position is currently losing.
TradingView Links:
Alerts:
MACD:
How to use:
1. Apply the script by browsing through Indicators --> Invite-Only scripts and select the indicator
2. Once loaded, click the gear (settings) button to select/adjust the parameters based on your preference.
3. Wait for the next BUY or SELL signal to enter the trade!
Disclaimer:
The indicator and signals generated do not constitute investment advice; are provided solely for informational purposes and therefore is not an offer to buy or sell a security; are not warranted to be correct, complete or accurate; and are subject to change without notice.
Trend Trader Strategy with MACDThis is plots the indicator developed by Andrew Abraham in the Trading the Trend article of TASC September 1998
The strategy I use has already been published explicitly by HPotter, you can review the core code from there.
I have converted the existing strategy codes that have been published into the strategy and the result looks great but I noticed that the indicator performed too much in short periods like 1 minute and I thought it would be healthier to get MACD approval. MACD approval will come selected by default. When the indicator reaches the buy status, if the macd histogram is positive, it enters the long process. By removing this confirmation from the settings window, you can see the normal signal frequency of the indicator.
This strategy is mainly based on trend signals. In fact, I am publishing this strategy to use in alternating trading for Bear-Bull crypto coins.
What does the bear-bull comparison mean?
You can open the same chart in the ETHBEAR / USDT symbol as opposed to the ETHBULL / USDT symbol that appears on the chart. When BUY signal comes in bull symbol, SELL will come in bear symbol. When BUY signal comes in bear symbol, SELL will come in bull symbol. In this way, very fast and very high profit can be obtained by alternating operation.
MACD Crossover Trading Strategy tested 100xI have scripted recently seen youtube video MACD Crossover Trading Strategy tested 100x to see the actual results.
Strategy longs if:
- macd line crossover signal line above zero and price closes above baseline
Strategy shorts if:
- macd line crossunder singnal line below zero and price closes below baseline
As baseline is used ema(200)
As Stop-loss is used swing low/high calculated from last 50 candless or baseline value
As Take-profit is used stop-loss multiplied by RRR 1.5
Settings can be adjusted as you like
ECG MACD Botok this is hybrid of ECG bot -and MACD
in the ECG bot it combination of vwap and RSI
here I use different combination that may be even better which is a regular MACD and the rsi ECG bot .
you need to understand how this system work in order to make it best for you
first theory-
The ECG bot and this one base on simple but very strong idea which is there is differnt between repainted MTF to non repainted MTF
So if you put the same MTF 1 security (repaint ) and MTF 2 security (non repaint ) then the difference between them is the repaint distance.
so if i build model of buy force vs sell force on this diffrence.
SInce security is so dominant in the repaint model it force the signal to be at certain time . but also doing so it calculate the buy and sell force of the privoius day . which is very powerfull signal.
so puting to system of minus and plus the repaint model will produce signals. and due to security the strongest one will be when security finish it calculation at a specic time done by the MTF. so this is the "repaint signal" that make the repiant strategy to work so well.
my system is just to dump the unwanted noise and to keep the repaint ones. so by this reduce true repaint to be mimimum.
I hope you understand the idea . it not perfect but i thnk we are very close (i hope)
The MACD is your source so you can change the fast and slow to what ever you wish
the repaint system is conrol by the repaint control
if you use 60 min it need to to be 60 or more then that . if you use 30 min candle then use 30 etc
for each thing you do you must use the bar control to adjust it
as you need to adjust the upper treshold of the buy and the sell
for crypto this setting ok, you may change the lower treshold so use bar repaly to see where it was repaint and by that you can fix it
for stocks use 1 week MTF on 4 hour candle , increase repiant control to 240
for forex it same as crypto but you need to adjust to any coin that you use.
for further questions please let me know
once this project prove it idea that it safe i will make study version .
So do not put any 1 cent before you run all the test needed and live demo test to see how it work on real life
I put lower treshold on -450, on alts change it o -400
RSPRO StrategyStrategy for RSPRO indicator
Based on resistance/support and bollinger band fluctuations this indicator also has filter with x bars after RSI overbought/oversell zones from settings.
There are two types of entries and signals: early (usually before trend changes) and main (when trend started to reverse)
Fits for BTC and any altcoins. And any assets. Good for both scalping and position trading (depends on timeframe that you use)
Best use it with big timeframes: 45 and 90min, 2 and 4 hours for position trading.
For scalping 5-30min timeframes are good too.
In Script settings you can specify:
1) RSI period, 14 by default.
2) Show early entries (squares), enabled by defaults.
3) Show main entries (triangles), enabled by defaults.
4) Enable/Disable filter to show main entries only after RSI overbought/oversell regions
Disabled by defaults and RSI is 67 for upper zone and 33 for lower zone.
You can also specify how many bars back before current bar this filter must do. It's 10 by default, you can vary it up to 90.
+With customisable start/end date, take profit and stop-loss.
This is invite only script. PM me if you want to test it.
Trading Technicals Strategy V1This strategy was developed in order to optimize 'bull' and 'bear' entry and exit signals based on a set of relatively basic but unique parameters, consisting of Exponential Moving Averages, candlestick formation, as well as data from the common RSI and MACD indicators.
Revisions should be expected as my goal with this strategy is to collect data by manipulating the existing entry and exit conditions in order to find the most successful results. I would like to optimize this strategy for a certain time period as well, as there are varying degrees of results between, say, the 5m chart and the 1h chart. I hope to revise this script when I have what I believe to be significantly improved results, and I would also consider the idea of publishing multiple strategies based on the code that works best for each time frame (V1 may work best for the 30m period, a future V2 may be best suited for the 45m period, etc.)
As of publishing this script, two significant points to note are:
1. There are no overnight holds - all positions are exited before market close
2. While you may see several instances in one day's time of the 'bull' signal rising, then returning to zero, a bullish position will not exit at zero, only - the position will remain active until a 'bear' position is signaled, at which point the 'bull' position will be closed and a 'bear' position will open. The same is true in the opposite scenario.
These points are of course subject to change throughout the optimization process. Lastly, my goal is not to look for the strategy that only yields the most profit, but the one that provides the most consistency in achieving those profits.
CDC Action Zone V.2 Strategy BacktestPublished for backtest purpose
All credit to : CDC Action Zone V.2 by piriya33
จัดทำขึ้นเพื่อการดูผล Backtest เขียวซื้อแดงขาย
ตัวสคริปท์มีการเพิ่ม
- Strategy Long/Short/Both // ปรับได้ใน Setting
- Back test range // ปรับได้ใน Setting
3. AutoBots Trading - BACKTEST: MACDBACKTEST: Moving Average Convergence Divergence - MACD
1. Description: 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 .
2. Strategy rules: defined based on the component, signal count, entry prices, open order count, position check, position averages, conditional closes and close signals.
3. Risk management: system was defined based on the choice of only long, only short or both sides. Defining the choice of take profit, stop loss and trailing stos (no repaint).
4. Symbol: PETR4 (only)
5. Suggested Timeframe: 2H
6. Parameter for optimization: 12, 8, 9, side: long, tp: 3%, sl: 1%, ts: na
7. Walk forward simulation
7.1. In sample period: jan/2018-jan/2020
7.2. Out of sample period: jan/2020 - ago/2020
** For purpose educate only
MACD Trend Following Strategy How it work ?
Work like normal MACD because this is MACD without any modify but i add color of candlestick and strategy.
The color meaning :
Green= macd > signal and macd>0 (Buy)
Red= macd < signal and macd<0 (Sell)
Yellow= macd > signal and macd<0 (Maybe reversal point)
Blue= macd < signal and macd>0 (Maybe reversal point)
Feature
- Back test range
- Long/Short option
- Modifiable MACD Setting
MACD Bull Crossover and RSI Oversold 5 Candles Ago-Long StrategyHello everyone, I've been having a great time perfecting this strategy for a few weeks now. I finally feel like it's time to release it to the public and share what I have been working on.
This strategy only enters a long trade when the MACD crosses over the signal line and the RSI was oversold looking back 5 candles ago. The logic behind this is to wait for RSI to enter the oversold territory, and then when the market starts to recovery the MACD will crossover telling us the sell off is over.
This strategy will close once these 2 conditions are met.
1. MACD Histogram is above 0 and MACD crosses under the signal line.
2. RSI was overbought 5 previous candles ago.
In the strategies settings, you'll be able to enable visual stop-loss and profit levels and change those levels to what you like, enable up to 5 EMA'S,
ADDONS That Affect Strategy:
* Enable visual stop-loss and profit levels as soon as a buy signal is triggered.
* Modify stop-loss and profit levels.
* Modify RSI oversold and RSI overbought levels.
* Modify MACD Fast and Slow moving average.
ADDONS That Do Not Affect Strategy:
* Enable up to 5 EMA's. (This will not affect strategy, and is the only purpose is for people who like following EMA's.)
Thank you for taking the time to try my strategy. I hope you have the best success. I will be making a short strategy, and alerts for this strategy soon. Follow me for updates!
Combing in MACD and MTFHi all, I'm trying to wedge in the MACD into a multiple timeframe. Scope is to create:
1) an alert when the MACD across all timeframes is positive,
2) an alert when the MACD across all timeframes is negative, and
3) one when neither of them is applicable.
Would anyone be so kind to give it some thoughts, please?
//@version=2
strategy(" Easy MTF Strategy", overlay=false)
TF_1_time = input("3", "Timeframe 1")
TF_2_time = input("5", "Timeframe 2")
TF_3_time = input("15", "Timeframe 3")
TF_4_time = input("30", "Timeframe 4")
fastLen = input(title="Fast Length", type=integer, defval=12)
slowLen = input(title="Slow Length", type=integer, defval=26)
sigLen = input(title="Signal Length", type=integer, defval=9)
= macd(close, fastLen, slowLen, sigLen)
width = 5
upcolor = green
downcolor = red
neutralcolor = blue
linestyle = line
TF_1 = security(tickerid, TF_1_time, open) < security(tickerid, TF_1_time, close) ? true:false
TF_1_color = TF_1 ? upcolor:downcolor
TF_2 = security(tickerid, TF_2_time, open) < security(tickerid, TF_2_time, close) ? true:false
TF_2_color = TF_2 ? upcolor:downcolor
TF_3 = security(tickerid, TF_3_time, open) < security(tickerid, TF_3_time, close) ? true:false
TF_3_color = TF_3 ? upcolor:downcolor
TF_4 = security(tickerid, TF_4_time, open) < security(tickerid, TF_4_time, close) ? true:false
TF_4_color = TF_4 ? upcolor:downcolor
TF_global = TF_1 and TF_2 and TF_3 and TF_4
TF_global_bear = TF_1 == false and TF_2 == false and TF_3 == false and TF_4 == false
TF_global_color = TF_global ? green : TF_global_bear ? red : white
TF_trigger_width = TF_global ? 6 : width
plot(1, style=linestyle, linewidth=width, color=TF_1_color)
plot(5, style=linestyle, linewidth=width, color=TF_2_color)
plot(10, style=linestyle, linewidth=width, color=TF_3_color)
plot(15, style=linestyle, linewidth=width, color=TF_4_color)
plot(25, style=linestyle, linewidth=4, color=TF_global_color)
exitCondition_Long = TF_global_bear
exitCondition_Short = TF_global
longCondition = TF_global
if (longCondition)
strategy.entry("MTF_Long", strategy.long)
shortCondition = TF_global_bear
if (shortCondition)
strategy.entry("MTF_Short", strategy.short)
strategy.close("MTF_Long", when=exitCondition_Long)
strategy.close("MTF_Short", when=exitCondition_Short)
MacD 200 Day Moving Average Signal Crossover StrategyThis works on most time frames, but I noticed the 4 hour for BTCUSD on coinbase seems to work well as an example. The strategy is pretty simple. I was inspired by a youtube video that said to backtest their strategy so I did. Most of the time it doesn't work but sometimes it's pretty good as in the case I showed.
Basically, you buy if the MacD crossers over the signal line and the histogram is below 0 and you are above the 200 day moving average. Do the opposite to sell!
The Breakout Machine V2 BTCUSDT - Bitcoin BeatsHello, Hello, Hello and welcome back to Bitcoin Beats.
As the title suggests, this is Version 2 of The Breakout Machine. Unlike the previous version, this one has been fine-tuned to work best on Binance Futures(BTCUSDT).
The stats shown below are from 2020.
PLEASE BE CAREFUL WITH YOUR LEVERAGE AND DON'T GET REKT.
Trade at your own risk! Good luck!
This strategy takes MACD and Volume spikes to calculate pumps and dumps in the bitcoin market.
I've also added custom backtesting inputs and leverage for you all to experiment with and see the profitability of the Strategy.
Alerts version coming soon...
Thank you, And goodbye, from Bitcoin Beats.
Ichimoku Cloud & ADX & MACD with TSL [tg1]Hi There! Used the time at home during the corona to learn Pinescript and work on this strategy. Its finetuned for BTCUSDT on mid-high timeframe, can be used for other TF/markets, but be extra careful).
The strategy is mainly build around Ichimoku Kinko Hyo and its Tenkan and Kijun crosses. It aims to only buy/sell when there is a strong trend in any direction (using MAs, ADX and ATR) and enters a trade based on these conditions:
1) Tenkan > Kijun
2) Close > Kumo
3) MACD > Signal
4) ADX > Custom value
The same applies for shorts, just the other way around.
I added a TSL based on either % or ATR fixed % for improved risk management. Let me know if any questions.
MACD on VWAPA modified version of the traditional MACD
Uses VWAP to calculate MACD instead of the usual closing price.
Volume Weighted MACDA twist on the traditional MACD indicator.
Volume-Weighted Moving Averages are used instead of the traditional EMAs.
MACD on OBVCalculates trend of OBV with help of MACD indicator. Gives a good idea of the general trend. To be used with other confirmations.
StarbuxI made this in starbucks .
Bullish hammer trading signal algorithm
using MACD for trend determination and holding period.
DEMA Strategy with MACDThe Double Exponential Moving Average (DEMA) indicator was introduced in January 1994 by Patrick G. Mulloy, in an article in the "Technical Analysis of Stocks & Commodities" magazine: "Smoothing Data with Faster Moving Averages"
It attempts to remove the inherent lag associated to Moving Averages by placing more weight on recent values. The name suggests this is achieved by applying a double exponential smoothing which is not the case. The name double comes from the fact that the value of an EMA (Exponential Moving Average) is doubled. To keep it in line with the actual data and to remove the lag the value "EMA of EMA" is subtracted from the previously doubled ema.
DEMA is a very responsive system. A lot of signals can be generated only when trading with DEMA. In this strategy, I combined Dema buy-sell signals with MACD indicator. When you activate MACD confirmation from settings; When DEMA comes to long situation, the MACD histogram is checked to be positive.