EMA Crossover StrategyEMA Crossover Strategy
This strategy will enter a long trade when the 21 EMA crosses over the 55 EMA and both EMAs and the close price are above the 200 EMA (long-term trend).
It will enter a short trade when the 21 EMA crosses under the 55 EMA and both EMAs and the close price are below the 200 EMA.
It will exit a long trade when the RSI crosses under from overbought and indicates that the uptrend could be coming to an end.
It will exit a short trade when the RSI crosses over from oversold and indicates that the downtrend could be coming to an end.
Backtesting shows that it works best on:
30 MIN:
SYMBOL - PROFIT FACTOR
AUDCAD - 1.126
EURJPY - 1.12
EURNZD - 1.04
EURUSD - 1.65
GBPAUD - 1.27
USDCAD - 1.08
1 HR:
SYMBOL - PROFIT FACTOR
CADJPY- 1.23
EURNZD- 1.166
GBPJPY- 1.23
GBPUSD- 1.282
NZDJPY- 1.246
USDCHF- 1.344
3 HR:
SYMBOL - PROFIT FACTOR
CADCHF- 1.975
EURGBP- 1.776
EURNZD- 1.911
GBPAUD- 1.364
GBPCHF- 1.311
USDJPY- 1.162
XAUUSD - 2.00
As always, this strategy does not guarantee you to achieve profits and you should always use confirmations before entering a trade.
Crossunder
Moving Averages Convergence (Agulhada do Didi)The script is based on a strategy developed by Odir “Didi” Aguiar called “Agulhada do Didi”.
It consists in the use of 3 moving averages:
SMA 3
SMA 8
SMA 21
Strategy:
When the averages come together, preferably they pass through a candle, there is a signal. The crossing of the short average (3) with the long average (21) provides us with a confirma-tion of the entry.
Buy:
The average of 3 periods comes out on top, 8 goes in the middle and 21 goes down.
Sell:
Average of 21 periods comes out on top, 8 in the middle and 3 down.
McGinley Dynamic Indicator This is a strategy based on the Mcginley Dynamic Moving Average indicator, a type of moving average that was designed to track the market better than existing moving average indicators. It is a technical indicator that improves upon moving average lines by adjusting for shifts in market speed.
Moving averages used:
EMA: 21
EMA: 42
The chart used for the backtest was the Bovespa Futures Index ( WIN1! Continuous: current contract in front )
Fancy Triple Moving Averages [BigBitsIO]This script is for three moving averages with as many features as I can possibly fit into a single moving average.
Features:
- Three moving averages (MA1, MA2, MA3).
- Standard MA inputs.
- MA type.
- MA period.
- MA price.
- MA resolution (time frame).
- Visibility toggle.
- MA Candle Type
- Fancy MA inputs.
- Toggle to show only candles included in the MA calculation ("Highlight inclusion") or display entire MA history.
- Toggle to show a ghost trail when Highlight inclusion is toggled on. Displays a shaded version of past MA history before the inclusion period (as seen on snapshot).
- Toggle to show forecast values for the MA.
- Other inputs related to forecasting:
- Forecast bias. (Neutral forecasts MA if the current price remains the same.)
- Forecast period.
- Forecast magnitude.
*** DISCLAIMER: For educational and entertainment purposes only. Nothing in this content should be interpreted as financial advice or a recommendation to buy or sell any sort of security or investment including all types of crypto. DYOR, TYOB. ***
Smoothed Triple EMAThis indicator is exactly as it sounds, a smoothed triple EMA . In my personal use, it is applied to strategies to indicate direction of entries. A simple example would be if price is above the STEMA, look for long entries, if price is below the STEMA, look for short entries. Shortly, I will share a strategy that makes use of this indicator. You are welcome to message me if you have any questions. Thanks for checking it out an may the probabilities be with you!
ALMA Crossover [FXPDM]
I created this new version of EMA crossing by replacing it with ALMA, Please take into consideration that the cross signal may occur during the candle. I advise waiting until the candle is close.
I used EMA crossing signals to adapt this code and turn it into an ( Arnaud Legoux Moving Average) ALMA Cross.
I expect it to bring a better signal that an EMA cross, let me know your comments and use under your own risk. this is just an experimental idea.
Long: Get into a long trade when the short moving average crosses up the long moving average.
Short: Get into a short trade when the short moving average crosses down the long moving average.
I recommend using it alongside a volume indicator to avoid sideways trends.
Exit at your own convenience or when the trend direction changes. I recommend using it in 4H and 1D charts.
(JS) Ultimate RSISo my goal here was to combine all of my RSI ideas into a single indicator in order to make kind of a "Swiss Army Knife" version of the Relative Strength Index ...
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So, let's begin with the first RSI indicator I made, which is the RSIDVW (Divergence/Volume Weighted);
To rephrase my original post, the "divergence/volume weighted" portion is meant to expand upon the current RSI format by adding more variables into the equation.
The standard RSI is based off one value that you select (open, close, OHLC4, HLC3, etc.) while this version takes three variables into account.
The default setting is to have RSI normal without anything added to it (Divergence Weight = 0)
1st - it takes the standard variable that RSI normally uses.
2nd - it factors RSI divergence by taking the RSI change % and price change % to form a ratio. Using this ratio, I duplicated the RSI formula and created a divergence RS to be factored in with the standard price RS .
3rd - it takes Relative Volume and amplifies/weakens the move based upon volume confirmation. (So if Relative Volume for a price bar is 1.0, the RSI plot would be the same as it normally would)
So to explain the parameters
- Relative Volume Length: This uses the RV length you specify to determine spikes in volume (or lack of volume ), which then is added into the formula to influence the strength of the RSI move
- RV x Divergence: This is how I calculated the original formula, but you can leave this unchecked to turn Relative Volume off, or apply elsewhere.
- RV x RS: There's two sides, Divergence RS and Standard RS - these check marks allow you to select which part you prefer to be multiplied by Relative Volume .
Checking neither turns off Relative Volume , while checking both amplifies its effects by placing it on both sides of the equation.
-Divergence Weight: This controls how much the DVW portion of the formula influences the RSI plot. As I referred to earlier, default is 0 making RSI normal. The Scale is 0-2, so 1.0 would be the same as 50%.
When I do have DVW on, I generally set it to 0.5
-SMA Divergence: To smooth, or not to smooth, that is the question. UJsing an SMA here is much smoother in my opinon, but leaving it unchecked runs it through an RMA the same way standard RSI is calculated.
-Show Fractal Channel: This allows you to see the whole fractal channel around the RSI (This portion of the code, compliments of the original Ricardo Santos fractal script)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The next portion of the script is adding a "Slow RSI"...
This is rather simple really, it allows you to add a second RSI plot so that you can watch for crossovers between fast and slow lines.
-Slow RSI: This turns on the second RSI Plot.
-Slow RSI Length: This determines the length of the second RSI Plot.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Pivot Point RSI was something a friend of mine requested I make which turned out pretty cool, I thought... It is also available in this indicator.
-Pivot Points: Selecting this enables the rest of the pivot point related parts of the script
If Pivot Points isn't selected, none of the following things will work
-Plot Pivot: Plots the pivot point .
-Plot S1/R1: Plots S1/R1.
-Plot S2/R2: Plots S2/R2.
-Plot S3/R3: Plots S3/R3.
-Plot S4/R4: Plots S4/R4.
-Plot S5/R5: Plots S5/R5.
-Plot Halfway Points: Plots a line between each pivot .
-Show Pivot Labels: Shows the proper label for each pivot .
When using intraday charts, from a 15 minute interval or less the pivots are calculated based on a single days worth of price action, above that the distance expands.
Here are the current resolutions Pivot Points will work with:
Minutes - 1 , 2, 3, 5, 10, 13, 15, 20, 30, 39, 78, 130, 195
Hours - 1, 2, 3, 4, 5, 6
Daily
Weekly
Currently not available on seconds or monthly
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Background Colors
Background Colors: I have six color schemes I created for this which can be toggled here (they can be edited).
Gray Background for Dark Mode: Having this on looks much better when using dark mode on your charts.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now finally the last portion, Fibonacci Levels
-Fibonacci Levels: This is off, by default, which then uses the standard levels on RSI (30-50-70). When turned on, it removes these and marks fib levels from 0.146 through 0.886.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
So the quick rundown:
Ultimate RSI contains "divergence/volume weighted" modifications, a slow RSI plot, pivot points , and Fibonacci levels all while auto-plotting divergence and having the trend illustrated in the background colors.
RSI has always been my "go to" indicator, so I hope you all enjoy this as much as I do!
Market Adaptive Stop-LossI realized that the zone changes in the stoploss remained slow, so I couldn't make enough use of the characteristics of technical indicators when opening positions.
This pushed me to keep stop-loss under the influence of a dependent variable.
This script helped me a lot (everget) :
I've redesigned the stop-loss to be affected by intersections.
Therefore, this script is also suitable for adaptive moving averages, fractional periods.
Script features:
1.You can select calculation methods created by using various technical analysis methods from the scripts' settings:
-Moving Average Convergence Divergence ( Macd )
-Stochastic Oscillator ( Stoch )
-Stochastic Relative Strength Index (StochRSI)
-Stochastic Money Flow Index (StochMFI ) (More info : )
-Know Sure Thing ( KST )
-OBV ( On Balance Volume )
-SMA ( Simple Moving Average )
-EMA ( Exponential Moving Average )
-FISHERTRANSFORM ( Fisher Transform )
-AWESOMEOSCILLATOR( Awesome Oscillator )
-PSAR ( Parabolic Stop and Reverse - Parabolic SAR )
-HULLMA( Hull Moving Average )
-VWMA ( Volume Weighted Moving Average )
-RMA (Moving Average using in Relative Strength Index calculations.)
-COG (Center of Gravity )
-ACC-DIST ( Accumulation / Distribution Index )
2 - The region is determined according to the above calculation methods and if it is larger or smaller than the previous stop loss level.
And if the price in the negative zone is lower than the stoploss, it is the exact signal and is shown with more highlighted colors.
And, in the positive zone, where the price is greater than the stoploss, the trade zones are certain.
Shown with more highlighted colors.
If the zones are correct but stop-loss is not suitable for opening positions:
In other words, if the stop-loss is above/under the highest-lowest levels in the positive zone or if the stop loss is located in the lower zone in the negative zone, these zones are shown to be darker and dimmed so that they do not cause false movements.
*** SUMMARY : As a result, you can use this script with support and resistances,and trend lines to get good results.
I hope it helps in your analyzes. Best regards.
MAC-Z & MACD Leader signal [ChuckBanger]This is a combination of my MACD Leader script and MAC-Z with option to add Laguerre filter. The advantage of the MAC-Z over MACD is that it is a more accurate and “assumption-free” indicator that can more accurately describe how a market actually perform. But you can use this as a regular MACD indicator.
Crossovers signals
The MAC-Z line and signal line can be utilized in the same way as a stochastic oscillator, with the crossover between the two lines providing buy and sell signals. As with most crossover strategies, a buy signal comes when the shorter-term, more reactive line – in this case the MAC-Z line (blue line) crosses above the slower signal line (orange line). For example, when the MAC-Z line crosses below the signal line it provides a bearish sell signal.
Zero line crossing
The zero cross strategy is based on either of the lines crossing the zero line. If the MAC-Z crosses the zero line from below, it is a signal for a possible new uptrend, while the MAC-Z crossing from above is a signal that a new downtrend may be starting. This is special powerful if the lines has a fast up or down movement but the price action doesn't reflect that movement.
Divergences
Bearish and bullish divergences is my favorite signals. When price action and oscillators follow the same path it is called Convergences, when they don’t, it’s called a Divergence. Don't confuse the two because they have not the same meaning. But be aware that for example during consolidation or low liquidity, some small divergences between price and indicators might form, but that doesn't mean we should consider them as real divergences.
There is many different types of divergences. It is easier to show a picture then explaining it so I recommend you to check out the link below. Especially the top image. It sums this up very well
medium.com
MACD Leader
The MACD leader is only showing the crossing of MACD as a vertical line
Green vertical line = MACD Leader Bullish Cross
Red vertical line = MACD Leader Bearish Cross
MACD Leader:
MAC-Z:
More Information
cssanalytics.wordpress.com
en.wikipedia.org
drive.google.com
150MA Cross BuyAndSell Strategy [d3nv3r]This is a Buy And Sell Strategy I haven't seen anywhere so i share mine.
Used on Bitcoin - daily chart - the strategy generate sell and buy indicator on crossover and crossunder the 150 simple moving average.
Scripting Tutorial 9 - TManyMA Strategy - Long Market Order OnlyThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy
- Strategy only enters long positions with a market order when MA crossovers occur
- Strategy exits positions when crossunders occur
- Trades 100% of the equity with one order/position by default
- Ability to disable trading certain crosses with input checks
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
Renko Strategy with Ema against price crossover/underRenko Strategy with Ema against price crossover/under
SSL Channel w/alertSSL Channel with cross alert when channels cross up or down. Built on ErwinBeckers SSL Channel script.
EMAs Alert-This script allows you to show the crossings of the most important emas such as 10, 20, 50 and 200
-You can modify the values of each ema you like
-Bring alerts of the crosses of each ema, which will allow you to activate this function to only the assets you want to track
Triple Moving Average HeatmapHi everyone
I didn't publish on Friday because I was working on an Expert Advisor in MT4. The day I don't publish, some scripts spamming guys published many (not useful) scripts the same to kick me out of the TOP #1 ranking.
So what I'm going to do about it? crying or sharing more quality scripts than before? :)
I guess you know the answer :) I'm gonna share a few quality scripts that I have in my library. I noticed that you guys tend to like more the scripts useful for your trading actually making you money rather than a copy-paste (of another copy-paste)
Alright, enough for the trolling now let's introduce the Three MA heatmap which is an upgrade of that script : MA-heatmap-Double-cross-edition/
The challenge was to keep the heatmap not rolling and to make it match with the MA cross. I did it using this
```
since_ma_buy = barssince(macrossover)
since_ma_sell = barssince(macrossunder)
heatmap_color() =>
since_ma_buy < since_ma_sell ? color.new(color.green, 20) : since_ma_buy > since_ma_sell ? color.new(color.red, 20) : na
```
This is a technique that I found after drinking three glasses of red wine (#french) to keep the heatmap stable and not rolling.
To get what I'm saying I invite you to replace the piece of code above by what everyone would normally do
```
heatmap_color() =>
macrossunder() ? color.new(color.green, 20) : macrossover() ? color.new(color.red, 20) : na
```
Ah and I'm not done sharing for the day, a few scripts are coming also after that one and tonight !!!!! I want to live in a world where you guys can enjoy quality scripts (mostly) :)
PS
____________________________________________________________
Feel free to hit the thumbs up as it shows me that I'm not doing this for nothing and will motivate to deliver more quality content in the future.
- I'm an officially approved PineEditor/LUA/MT4 approved mentor on codementor. You can request a coaching with me if you want and I'll teach you how to build kick-ass indicators and strategies
Jump on a 1 to 1 coaching with me
- You can also hire for a custom dev of your indicator/strategy/bot/chrome extension/python
MA heatmap (Double cross edition)Hello my friends
Sorry yesterday I couldn't post an indicator because I was travelling. So here's the today indicator inspired from that one Moving-Average-Heatmap-Visualization/
This will gives an interesting representation of a Double Moving Average cross
That's all for me
Let's resume the free indicators publishing next Monday with the MA heatmap (Triple cross edition) and then the 4 cross ... until the 100 cross edition .... "wait are you joking sir ?"... Totally YES :)
But the Triple cross edition will be released as it's interesting from a Pine script perspective
Enjoy your weekend and stay safe
Dave
Four MM crossHello traders
Some friends asked me to do it so... sharing it for everyone instead
This indicator detects when the first moving average is above the three others. It's a very powerful tool for trend traders that use multiple moving averages to detect a strong trend
Enjoy
Dave
Two MVA Cross MTFHello traders
This is a script to apply the crossover/crossunder of moving average multi-timeframes on a different timeframe chart
In this example, we see two moving averages in the 2H timeframe being detected on a m30 chart
Enjoy
Dave
Two MM CrossHello Traders
This is a script to detect the crossover/crossunder of two moving averages
It's generic as all standard moving averages are accepted and can be crossed between each other
Enjoy
Dave
24/9 EMA with Bias & SignalsThis is a simple indicator that plots the 24 & 9 EMAs.
It also highlights the potential bias of the market (bull or bear) based on if the 9 EMA is above or below the 24 EMA.
In addition there are signal crosses that you can use for alerts.
This indicator is best used to confirm a particular underlying bias on the 5m, 15M, 1HR, 4HR, and Daily timeframes.
It's important to note on lower timeframes that the bias can be counter trend bias of the overall larger momentum of the instrument you are trading.
For clarity this means that many retraces get going when the 9 crosses the 24. But ultimately the larger timeframe bias will continue after this counter trend retraces.
Combining this indicator with value channels and ATR is what I recommend.