MACD Bull Crossover and RSI Oversold - AlertsHello everyone, these are the alerts for my previous "MACD Bull Crossover and RSI Oversold" Long Strategy. This version currently does not support stoploss and takeprofit alerts but the next update will.
Схождение/расхождение скользящих средних (MACD)
Pure Volume Divergence [NeoButane]PVD: MACD with volume as source.
Options to configure:
OBV, PVT, or MFI as source
Display PVD or a faux zero-based oscillating CVD
Renovation-10 (Including 10 Traditional Indicators)This idea is not rare. It is just a combination of 10 most well know and traditional Indicators to form one renovated indicator. There are Moving Average (MA), Volume (V), Bollinger Band (BB), Relative Strength Index ( RSI ), Stochastic RSI, Modified Stochastic RSI, Moving Average Convergence Divergence ( MACD ), Average directional index ( ADX ), Average True Range (ATR) and Parabolic Stop and Reverse (PSAR). These indicators most I found was just showing entering position strategic alone. I just want to know how well them work together when combination. I modified many times and thinking for the strategic enter and exist position with the choice of these 10 indicators to maximize the profitability which shows in strategic tester in every stock and conditions.
THEORY:
Fluctuation of price is like a Wave which I categorized it into four period. They are Sideway, Breakout Positive and Negative, Retracement and Consolidation. Breakout is rare to happen, either go up or go down. After a breakout usually will have small retracement, then trend will go for sideway. After long period of sideway, the wave is starting to run out of energy and there will be consolidation period.
STRATEGIC OPTION:
S: Sideway Period
B: Breakout Period
R: Retracement Period
(+): Buy
(-): Sell
PROBLEM:
1. Not performing very well at very penny stock which the graph looks like barcode.
Suggesting can change daily graph to weekly graph to avoid.
2. Be careful with Sideway entry signal because sometimes price may continue go down. You will stuck at middle if you enter without confirmation.
Confirm the price is stable at support by current low is higher or equal to past three to five day low before entry.
3.Always remember Breakout is rare, do not push for luck
Always make profit at Sideway and Retracement trend. Can Sell half only at BB when breakout buying signal is available, to avoid losing chance of chasing breakout.
4. Breakout selling signal 2 may delay
After breakout, make sure sell all when 2-3 red candle appeared or When BB is squeezing.
5. Other tools may required to confirm entry position.
These combination strategic is more to personal experiences and knowledges, it hard to adjust in coding for strategic position.
This is my first publication and I just do it for fun, having fun in reading the script and creating own ideas.
Information provided is only educational and sharing , should not be used to take action in the markets.
Buy and Sell Signals (With Stops and TP) - No Repaint
This strategy is primarily based on the MACD-indicator, but signals are filtered with the 200 ema.
This indicator gives you for every trade a stopp loss and take profit line.
As with every other strategy risk management is key. The trades taken have all 1.5:1 risk ratios, so when you lose one trade and win one you are still in profit.
This will only work if you calculate your position size accordingly when actually trading!
Without leverage:
position_size = (portfolio * loss_per_trade) / (stop_loss_in_percent )
Leverage:
position_size = (portfolio * loss_per_trade) / (stop_loss_in_percent * leverage)
For example:
portfolio = 100000
loss_per_trade = 0.01 | I only want to lose 1% per trade
stop_loss_in_percent = 0.04 | The stoploss is 4% away from our entry
(100000 * 0.01) / 0.04 = 2500 => if this trade hits my stop, I will only lose 1 % of my portfolio.
This strategy works well with:
BTCUSD 30m
BANDUSDTPERP 5m
EUR DOLLAR 15m
Of course it can be applied to anything, but you should firstly validate the strategy via backtest for the according trading pair and timeframe as it can perform differenlty in various timeframes.
This script does not repaint.
If you are interested in this strategy dm me.
Good luck on your trades!
RSIPRO TrendIndicatorThis RSIPRO indicator is based on RSI , BB and EMA and it has LONG/SHORT alerts for signals
In script settings you can specify:
1) Dispertion value, 0.15 by default. Dispertion around bolinger bands with RSI as source signal.
2) Use smoothing option and smooth factor value (3 by default). It smoothes RSI with moving average filter.
3) Enable/Disable filter to show signals only after RSI overbought/oversell zones
Disabled by defaults and RSI is 65 for upper zone and 35 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.
Best fits for 4H timeframe. Also good for 15min scalping strategy. Fits for any crypto coins, forex, metals, oil and bonds.
This is invite only script. PM me if you want to test it.
On Chart Reverse MACD CrossThe On Chart Reverse MACD Cross is a visual representation of the Reverse MACD Cross calculation which can be used to assist the end-user in their decision making for entry, exit and risk management, as well as freeing up space for the chart.
The On Chart Reverse MACD Cross, which very basically is a smoothed reverse engineered calculation of the MACD Signal Line gives the user a visual representation of the relationship between the current price and the MACD Signal Line instead of having to reference the MACD itself. At a glance this can then can be used to visually see on the chart the closing price level needed in order to cross the MACD either up or down.
Optional settings include:
-------------------------------
1.) Show/Hide the Reverse MACD Cross label
2.) Change the Reverse MACD Cross label text size
3.) Change the Reverse MACD Cross label left margin
4.) Show/hide the Reverse MACD Cross label currency
5.) Change the Reverse MACD Cross label decimal value
Please PM me to obtain access
Reverse MACD Cross + Histogram DivergenceThe Reverse MACD Cross + Histogram Divergence is in essence the same MACD you all know and love with two added features which can be used to assist the end-user in their decision making for entry, exit and risk management.
The first feature is a Reverse MACD Cross price, which very basically is a smoothed reverse engineered calculation of the MACD Signal Line in relation to the current price level. At a glance this can then be used to determine the closing price level needed in order to cross the MACD either up or down.
The second feature is visual MACD Histogram regular as well as hidden divergences. This feature was added as MACD histogram divergences are not as easy to
spot as on the RSI for example, and can help the end-user train their eyes in order to spot them more accurately.
Divergence colors and description:
------------------------------------------
Green : Regular Bullish Divergence
White : Hidden Bullish Divergence
Red : Regular Bearish Divergence
Orange : Hidden Bearish Divergence
Optional settings include:
-------------------------------
1.) Show the Histogram only (Hide the MACD and Signal lines)
2.) Show/Hide the Reverse MACD Cross label
3.) Change the Reverse MACD Cross label text size
4.) Change the Reverse MACD Cross label left margin
5.) Show/hide the Reverse MACD Cross label currency
6.) Change the Reverse MACD Cross label decimal value
7.) Show/hide the MACD Histogram Divergence lines
8.) Change the MACD Histogram Divergence line offset
9.) Show/hide the MACD Histogram Divergence arrows
10.) Change the MACD Histogram Divergence arrow offset
11.) Change the MACD Histogram Divergence lookback (No. of bars to lookback)
Please PM me to obtain access.
rocketLaunchI wanted to see if I could programmatically identify the conditions I saw just before Bitcoin broke its all-time high end of 2020. The signal picks up several rocket launch moments prior to launching which is quite cool. It also picks up a few false starts, however. In any case, I would have loved to be stopped out on those false starts but been there for all the starts this thing picks up.
It could probably use more confirmatory elements such as trailing conditions and volume perhaps?
BINANCE:BTCUSDTPERP
MACD Crossover with signalsMACD Crossover with signals - a simple trading indicator based on classic MACD.
It shows crossovers and plots them on chart as "Long" or "Short".
The MACD itself is not plotted in order to keep your charts cleaner.
By default, all the crossovers are displayed on the chart.
However, you can use only trend-based ones. They are filtered according to the trend (which is plotted and colored using 200 period EMA) and the "zero-line rule" of the MACD.
So if you consider using only trend-based signals, the indicator will only show Long signals on an uptrend and Short signals on a downtrend.
All signals/lines can be turned on/off and styled in the settings menu.
It can be used with all major timeframes and assets (crypto, fx, cfd, stocks, commodities etc).
Consider using it with respect to your trading style, money- and risk-management as well as other strategies and indicators.
If it was useful for you – hit the Like button and share it with your friends - it's free 😉
RedK_xMACD: Extending the classic MACD with a simple filterThis is a simple concept that attempts to squeeze more price action insights from the classic MACD
we add a 3rd (longer length, slower) Moving Average line that acts as a trend filter - so whenever we are ("we" = the price and the 2 other MAs) are above that filter line, we consider ourselves to be in the up-trend territory, and vica versa .. so the MACD calculation here - that is represented by the main (reg/green) line in the plot - will represent the distance between the slow MA and the filter MA - when that MACD line crosses the zero axis up or down, that represents the trand reversing from one direction to the other.
A signal line (a smoothed version of that MACD line) is still added for 2 reasons
1 - the signal line makes it easy to see if an eminent trend reversal is to be expected
2 - to stay visually-consistent with the classic MACD :)
the distance (or delta) between the other 2 MAs continues to reflect an indication of the short-term momentum and is what the histogram represents.
we still have the benefit of the convergence/diversion between the price itself and the histogram similar to the classic MACD
this MACD version will also clearly show how price and momentum action will lead the trend -- i know that's a big discussion topic :)
i added a classic MACD at the bottom panel, and used the same length settings (fast / slow) for side-by-side comparison
i coded this when i found that i use 3 moving averages all the time during my chart analysis, and while i'm a big fan of the classic MACD, i wanted to find a simple way to get my MACD to reflect what the 3 MAs on the price chart show. turned out to be insightful - i hope other fellow traders may find this useful
the code is simple and i started it from the built-in MACD in TradingView. Other annotations are added to the chart here as i believe this will better explain how the eXtended MACD works
- there are 4 reversals that occur in that chart, and i chose to show one in step-by-step fashion.
if more explanation is needed to how this can be used, pls let me know in the comments.
Different Resolutions TrenderThis script aims at giving the quickest insight over different time resolutions and their relative trends.
The graph is updated on every new bar.
5 periods of time can be configured with each their own signal periods.
For each period, you get an insight on:
- its general movement in comparison the latest close (green: up / red: down)
- its length (ex: 50 minutes)
- its movement (ex: -0.66%)
- its probability (ex: 2 out of 3 oscillators confirming the trend)
I would be happy to add any useful content on this.
Especially being able to offset this predictive general trend to the right on the last bar, which I do not think is feasible on Pine so far.
MACD TRADING SYSTEMThis is a conservative Trend Continuation Trading System.
Uses a Hull Moving Average to determine general trend direction
Uses MACD to initiate Trade entries
Uses a variant of Chaikin Money Flow for volume confirmation
Also uses the Average True Range (ATR) to determine take profit and stoploss.
Stoploss becomes trailing when take profit target has been hit.
I built it mainly for myself to use.
Wanted an objective trading system to take all the emotions out of my trading.
Fully customisable indicator in one chart (EMA MACD RSI Stoch)While facing problem having too many indicator charts on the same screen, this squashed the candle chart and produces flat lines. This script helps to put them all in 1 chart and label the indicators where it meet the long/short conditions. Backtest is available to check the multiple indicators for a Long / Short trade, eg. if the EMA is on a long trend, but RSI and MACD is at oversell this could put a long trade. This gives the trader a flexibility to customise their trade setup
EMA (Primary)
4 period options (fast, slow, long, long2)
Shows blue background when the trend is up
Red when down
The trend can be configured to (Fast > Slow), (Fast > Slow > Long), (Fast > Slow > Long > Long2)
MACD (Secondary)
3 options to indicate signal (MACD/Signal Crossover), (MACD/Signal + Direction Crossover), (MACD/Signal + Direction Crossing)
Configurable MACD options
Option to determine the length of MACD crossing to indicate the trend MACD is heading towards
MACD/Signal Crossover when MACD crosses the Signal
MACD/Signal + Direction Crossover sees if the histogram is up or down
MACD/Signal + Direction Crossing checks the previous and current candle where current MACD crosses Signal but the previous MACD is below Signal
RSI (Secondary)
2 options (RSI Upper/Lower Crossover), (RSI Crossing)
RSI options
Option to determine the length of RSI crossing
RSI Upper/Lower Crossover looks at the RSI vs the band
RSI Crossing checks current candle entering band but previous candle is outside band
Stoch (Secondary)
3 options (K/D Crossover), (K/D + Upper/Lower Crossover), (K/D Crossing)
Stoch options
Stoch crossing length
K/D Crossover when K crosses D
K/D + Upper/Lower Crossover looks at the band
K/D + Crossing is when K or D entering band but previous is outside band
Backtest
Different backtest scenario, finetuning in progress..
Myx.Mir_ MACD.V2 ][ c/w Hist.Color & LabelMoving average convergence divergence ( MACD ) is commonly and widely used for Technical Analysis .
// Basis- based on default setting
macdLine, signalLine, histLine = default setting
with additional "cosmetic/ Makeup"
1) for 4R1G set up Trader. Histogram color as follows:-
a) if Hist => 0 = Hist > Hist ? color.green : na, Hist < Hist ? color.red : na
b) if Hist <= 0 = Hist < Hist ? color.green : na, Hist > Hist ? color.red : na
2) crossover MACD Line, SignalLine- with label "EN" / "EX"
Do not follow the signal blindly. Trader's should be able to identify the trend whether there is uptrend, sideways and downtrend.
Entry and/or Exit are based on Trader's risk appetite.
[fareid] Quick Backtest Framework█ OVERVIEW
This Framework allows Pine Coders to quickly code Study() based signal/strategy and validate its viability before proceed to code with more advance/complex customized rules for entry, exit, trailstop, risk management etc..
This is somewhat an upgraded version of my earlier personal template with different strategy used, cleaner code
and additional features.
█ USE CASES
- You have an idea for trade signal and need a quick way to verify its potential before writing lengthy/complicated code
- You found a study script for trading signal in public library and want to validate it profitability with minimum effort before including it in your trading playbook
█ FEATURES
- Alert: Ready to use alert function based on signals from your custom indicator.
- Visual Backtest: Auto-plot entry, stop-loss and take profit for simple strategy performance analysis
- Backtest Statistic: Provide basic key metrics based on backtest strategy
- BTE External Signal Protocol: Ready to use code that will supply required state to PineCoders Backtesting & Trading Engine if you wish to have more advance and sophisticated backtesting engine
Notes: All of the above features have On/Off toggle
█ Description & How To Use
This Framework consist of 5 Modules but you only need to edit the first 2 Modules:
Module1: Indicator
Module2: Framework Input Protocol
Module3: Alert
Module4: Backtest
Module5: Backtest & Trading Engine
Tips: The source-code includes collapsible block by module for easy navigating
Module1: Indicator:
-----------------------------------------------------------------------------------
Main Module. Place custom indicator input parameter/calculation/indicator plotting here
Sample Strategy: Double MACD Crossover
MACD Signal: 1st MACD Cross above signal line indicate Buy Signal
1st MACD Cross below signal line indicate Sell Signal
MACD Filter: 2nd MACD is above 0 line indicate Uptrend
2nd MACD is below 0 line indicate Downtrend
Module2: Framework Input Protocol:
-----------------------------------------------------------------------------------
Use this module to connect main indicator/signal calculated in Module1 to the rest of the framework's module
4 variables needed to be defined here:
1. Uptrend
2. Dntrend
3. BuySignal
4. SellSignal
i'm not sure how to place a code snippet here to show you example so in the source code i already put a comment in Module2 on which part u need to edit. I hope its pretty simple to use.
Module3: Alert Module Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the alert module is ready to use without any further modification.
Input:
Enable Alert --> Enable TV's alert and plot signal to chart
Alert Type --> Set to take Buy only, Sell only or Both alert
Module4: Backtest Module Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the backtest module is ready to use without any further modification.
Input:
Backtest Stat --> Enable Backtest Statistic Label
Backtest Visual --> Enable Backtest visual simulation
Backtest Type --> Set to take Buy only or Sell only or both
SL Type -->
ATR : Set SL in ATR times Multiplier below entry price
Fixed : Set SL in fixed point below entry point (in 'Dollar'). e.g. for Stocks -> 0.5 equals to 50cent while for EURUSD currency -> 0.005 equal to 50 pips
HiLo Bar: Set SL at highest/lowest wick of previous bar plus/minus Fixed point. e.g. EURUSD HiLo=3 and Fixed Point = 0.0005, buy trade will place SL 5 Pips below lowest of previous 3 bar
SL ATR Multi --> Set Lookback Period used for SL's ATR calculation
SL ATR Multi --> Set ATR Multiplier for SL
SL Fixed --> Set Fixed Level for SL
SL Bar --> Set Number of previous bar to check for SL placement
TP RR Ratio --> Set TP based on RR multiplier. e.g. 2 means TP level will be twice further from entry point compared to Entry-SL distance.
Notes: The point is for preliminary testing, so it only supports 1 trade at a time and no Trailing Stop
Module5: Backtest & Trading Engine Description:
-----------------------------------------------------------------------------------
As long as the variables in Module2 properly defined, the Pinecoders BTE module is ready to use without any further modification.
Input:
External Signal Protocol --> Set ESP State to send to "Backtesting & Trading Engine "
Signal With Filter --> Use this to send entry signal that already filtered by this study indicator (without stoploss level)
Signal Without Filter --> Use this to send raw entry signal that are NOT YET FILTERED by this study indicator (without stoploss level)
Signal and Stop With Filter --> Use this to send entry signal WITH StopLoss that already filtered by this study indicator (with stoploss level)
Signal and Stop Without Filter --> Use this to send raw entry signal WITH StopLoss that are NOT YET FILTERED by this study indicator (with stoploss level)
Notes: Backtesting & Trading Engine already have built-in Filter, Entries and Stop Level. e.g. Unselect all their filter state if only want to use custom filter and make sure send Signal with Filter (with or without SL level)
█ DISCLAIMER:
This framework main objective is to create my personal indicator template so that i just have to modify the indicator module for preliminary testing in future.
The sample strategy included are for educational purpose only. Use at your own risk
credit: LucF/PineCoders for a lot of his scripts that i use as a guide to complete this
RogTrader HFT AlgoThis is a simple algorithm to generate Buy, Sell, Short, and Cover Signals. It uses the following:
RSI , MACD , Stochastic , Bollinger Bands , Ketler Channels, ATR Trailing Stop, Trend, and Volume .
Usage is simple: Green Background is Long and Red Background is Short positions.
LE = Long Entry
LX = Long Exit
SE = Short Entry
SX = Short Exit
This is not a trade recommendation, rather informative signals, and please do your due diligence. Thanks!
Relative AO (RAO)Relative AO is an adaptation of Bill Williams' Awesome Oscillator for a logarithmic scale that measures the percentage of convergence/divergence of moving averages (similar to MARCD). The Signal Line allows you to use RAO instead of MACD (offset off), or to smooth the edge of the histogram for convenience (offset on).
MARCDRelative MACD
It is a modification of the MACD for a logarithmic scale that measures the percentage of convergence / divergence of moving averages.
MARCD can be used as standard MACD (optional).
MACD With Trend Filter: Visual Backtest Module TemplateSample Strategy: MACD Crossover with trend filter options
MA Filter : Price Close Above MA, Search for Buy, Price Close Below MA, Search for Sell
ADX Filter : Take trade only when ADX is above certain treshold
MACD Signal : MACD Cross above signal line while under 0 line indicate Buy Signal
MACD Cross below signal line while above 0 line indicate Sell Signal
-----------------------------
Using Alert Module:
Enable Alert --> Enable TV's alert and plot signal to chart
Alert Type --> Set to take Buy only, Sell only or Both alert
----------------------------
Using Backtest Module:
Enable Backtest --> Enable Backtest simulation
Backtest Type --> Set to take Buy only, Sell only or Both
SL Type -->
ATR : Set SL in ATR times Multiplier below/above entry price
Fixed : Set SL in fixed point below entry point (in 'Dollar'). e.g. for Stocks -> 0.5 equals to 50cent while for EURUSD currency -> 0.005 equal to 50 pips
HiLo Bar : Set SL at highest/lowest wick of previous bar plus/minus Fixed point. e.g. EURUSD HiLo=3 and Fixed Point = 0.0005, buy trade will place SL 5 Pips below lowest of previous 3 bar
SL ATR Period --> Set Lookback Period used for SL's ATR calculation
SL ATR Multi --> Set ATR Multiplier for SL
SL Fixed --> Set Fixed Level for SL (Use when SL Type is either Fixed or HiLo Bar)
SL Bar --> Set Number of previous bar to check for SL placement
TP RR Ratio --> Set TP based on RR multiplier. e.g. 2 means TP level will be twice further from entry point compared to Entry-SL distance.
Notes: The point is for preliminary testing, so it only supports 1 trade at a time and no Trailing Stop
----------------------------
Disclaimer:
This script main objective is to create my personal indicator template so that i just have to modify the indicator module for preliminary testing in future.
Testing Alert Module so i can re-use it as template in future study/indicator
Testing Visual Backtest Module so i can re-use it as template in future study/indicator
i believe using Strategy function is a better approach for this but the entry/exit level seems to be hit n miss (at least for me, still trying to figure what i did wrong)
also, i rather code the strategy in other platform where i can use the more accurate tick data if i want to validate backtest statistics.
My study scripts was built only to test/visualize an idea to see its viability and if it can be used to optimize existing strategy.
credit: ADX code are originally from "ADX and DI" by @BeikabuOyaji although i re-wrote so i can have cleaner read and use RMA instead of SMA
RVSI & MACD Confluence BackgroundThis indicator colors the background in vertical (green/red) stripes to indicate if the current trend is possibly bull / bear
A region where the background is not colored indicates that the present trend can not be identified
The algo combines the RVSI (Relative Volume Strength Index {ref fract} ) and the MACD
The Relative Volume Strength Index has been adapted to include 2 moving averages, one fast and one slow
This same fast slow lookback length is applied to the MACD for simplicity
What's interesting is that there is a very strong confluence between the MACD and RVSI, as the MACD is obtained from 'price action only' and the RVSI from the 'volume only'
So a break in confluence of these two might suggest that the current trend is weakening in confidence or can not be clearly identified
Generally, a green background means consider going long ie price trend is rising
A red background means consider going short ie price trend is falling
An absent background color means - consider exiting current trade or wait to get into a new trade
Best Regards, MoonFlag - and a special thanks/mention to 'fract' for the RVSI algo this is derived from
MACD 50x Leveraged Short Strategy with Real Equity
Hello there ,
Short version of the Macd Long strategy.
MACD Long strategy:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position size: (for each trade) 1%
Stop-Loss: (2% Above Entry Level)
Long: macd crossunder
Exit: macd crossover
Or ofc touching the stop-Loss value as predicted.
These strategies are just examples.
The goal is to observe true equity and equity change.
Warning: This strategy simulation is for Short direction only.
Regards.
MACD 50x Leveraged Long Strategy Results with Real Equity Hello there.
I was looking for a way to simulate leveraged transactions in Tradingview and this script came out.
You can examine the equity graph without looking at the strategy results.
Thus, the facts will come to light.
Strategy parameters:
Adding margin: Forbidden or not specified. (Add Margin : No)
Position size: (for each trade) 1%
Stop-Loss: (2%)
Long: macd crossover
Exit: macd crossunder
Or ofc touching the stop-Loss value as predicted.
Warning: This strategy simulation is for Long direction only.
Regards.