Bollinger Bands of RSIwith this script you can follow ema8 of RSI and also SMA20 of RSI with ∓ 2 standart deviation
Exponential Moving Average (EMA)
Spliv's EMA Ribbon/MA ComboEMA and MA combo with many EMAs to create ribbons.
21ema|50-55ema|89-100ema|200ema|377ema|10s|30s|100s|200s
[redxbt] MA exit modified special thanks to redxbt for the script code
modified for 55,99 EMA's
dip and tip points
green and lime are dips for buying
red and orange are tops for selling
works best on 5,10 min scalping charts
Price Action and 3 EMAs Momentum plus Sessions FilterThis indicator plots on the chart the parameters and signals of the Price Action and 3 EMAs Momentum plus Sessions Filter Algorithmic Strategy. The strategy trades based on time-series (absolute) and relative momentum of price close, highs, lows and 3 EMAs.
I am still learning PS and therefore I have only been able to write the indicator up to the Signal generation. I plan to expand the indicator to Entry Signals as well as the full Strategy.
The strategy works best on EURUSD in the 15 minutes TF during London and New York sessions with 1 to 1 TP and SL of 30 pips with lots resulting in 3% risk of the account per trade. I have already written the full strategy in another language and platform and back tested it for ten years and it was profitable for 7 of the 10 years with average profit of 15% p.a which can be easily increased by increasing risk per trade. I have been trading it live in that platform for over two years and it is profitable.
Contributions from experienced PS coders in completing the Indicator as well as writing the Strategy and back testing it on Trading View will be appreciated.
STRATEGY AND INDICATOR PARAMETERS
Three periods of 12, 48 and 96 in the 15 min TF which are equivalent to 3, 12 and 24 hours i.e (15 min * period / 60 min) are the foundational inputs for all the parameters of the PA & 3 EMAs Momentum + SF Algo Strategy and its Indicator.
3 EMAs momentum parameters and conditions
• FastEMA = ema of 12 periods
• MedEMA = ema of 48 periods
• SlowEMA = ema of 96 periods
• All the EMAs analyse price close for up to 96 (15 min periods) equivalent to 24 hours
• There’s Upward EMA momentum if price close > FastEMA and FastEMA > MedEMA and MedEMA > SlowEMA
• There’s Downward EMA momentum if price close < FastEMA and FastEMA < MedEMA and MedEMA < SlowEMA
PA momentum parameters and conditions
• HH = Highest High of 48 periods from 1st closed bar before current bar
• LL = Lowest Low of 48 periods from 1st closed bar from current bar
• Previous HH = Highest High of 84 periods from 12th closed bar before current bar
• Previous LL = Lowest Low of 84 periods from 12th closed bar before current bar
• All the HH & LL and prevHH & prevLL are within the 96 periods from the 1st closed bar before current bar and therefore indicative of momentum during the past 24 hours
• There’s Upward PA momentum if price close > HH and HH > prevHH and LL > prevLL
• There’s Downward PA momentum if price close < LL and LL < prevLL and HH < prevHH
Signal conditions and Status (BuySignal, SellSignal or Neutral)
• The strategy generates Buy or Sell Signals if both 3 EMAs and PA momentum conditions are met for each direction and these occur during the London and New York sessions
• BuySignal if price close > FastEMA and FastEMA > MedEMA and MedEMA > SlowEMA and price close > HH and HH > prevHH and LL > prevLL and timeinrange (LDN&NY) else Neutral
• SellSignal if price close < FastEMA and FastEMA < MedEMA and MedEMA < SlowEMA and price close < LL and LL < prevLL and HH < prevHH and timeinrange (LDN&NY) else Neutral
Entry conditions and Status (EnterBuy, EnterSell or Neutral)(NOT CODED YET)
• ENTRY IS NOT AT THE SIGNAL BAR but at the current bar tick price retracement to FastEMA after the signal
• EnterBuy if current bar tick price <= FastEMA and current bar tick price > prevHH at the time of the Buy Signal
• EnterSell if current bar tick price >= FastEMA and current bar tick price > prevLL at the time of the Sell Signal
MWDX AverageThis is a variation of an exponential moving average which follows the price pretty smoothly. Feel free to change the factor to adjust how closely it follows the price. I set the default to 0.2
Let me know if you want me to write code for any other indicators!
Moving Average Adaptive QThe Moving Average Adaptive Q (MAAQ) was authored by Perry Kaufman in the Stocks and Commodities Magazine 06/1995
This is similar to his Kaufman Adaptive Moving Average with a few changes. This is a pretty close moving average which I like quite a bit. Try it and let me know what you think.
Send me a message and let me know what other indicators you would like to see!
PivotBoss PEMA MethodPivotBoss PEMA method. Very useful if you combine it with other PivotBoss ADR and PivotBoss Pivots
EMA Cross <Johnson Lim>EMA Cross basically is for someone who just need to spot as a guideline whether there are 'opportunity' to buy in or out. I had been using this for few years and it always helps for me at the stage of screening typically on Crypto space.
Multiple Moving Averages {Cybernetwork}Multiple moving average (MA) plots in a single script.
Can select between different MA types, and enable/disable a particular MA in the settings.
Enjoy. :)
Williams %R + RSI + EMA - [Silver-Wong]
Williams %R + EMA + RSI
Un seul indicateur avec :
- William %R
- RSI
- EMA
- Une ligne médiane
- Les étiquettes des indicateurs
EMA Noodle Fan by KviateqJust a very simple EMA fan using Highs and Lows instead of closes. This results in these "EMA noodles". Price very rarely reacts rigidly to a close price of an EMA, sometimes it comes short, other times it overshoots it. Hence the idea behind the noodles.
You can obviously change the lengths of each of the noodle, I chose these lengths for a M5 timeframe and these represent your typical 50, 100 and 200 EMAs on higher timeframes.
Kaz Style BarsChange bar colors based on above or Below EMA
I use it to match Kaz's bars look on my charts
OBV Traffic LightsThe idea with On-balance volume (OBV) is to see price movement based on volume instead of the distance between the open and close of a candle. This can be used to find the relationship between volume and price action much easier than normal volume bars.
This version spices the OBV up a bit by basing it off of the current and previous close of the Heikin Ashi of the current bar, as well as adding "traffic light"
moving averages to the mix to get a better grasp of trends and when volume has shifted direction as well as by how much.
Thanks to Peter Whipp for the original idea of using the OBV with traffic light moving averages, as well as the default settings for them.
OBV w/BB+EMAOBV plotted with Bollinger Bands to show whether the volume is breaking out from its normal deviation (both up or down). The OBV changes color depending on the macro trend which is set using a 100 EMA.
Difference of Exponentially Weighted AveragesImplementation of Difference of Exponentially Weighted Averages in Pine Script. It can generate a line that adjust to the overall trend of a graphic. The lines that are generated in a new plot are the the Difference of Exponentially Weighted Averages (blue) and it binarization over the previous values.
Exponentially Weighted Averages
This technique is used for generating smoother lines that adjust to a graphic. In finances, it is used to predict the overall trend of a graphic. The function that defines the EWA is the one bellow:
Vt = β V(t-1) + (1 - β) θt
Where:
β: Hyper-parameter that we have to adjust.
V(t-1): Value calculated for the previous element of the graphic.
θt: Current element of the graphic.
The calculus of differences consist in subtract to each value the previous values.
Exponentially Weighted AveragesImplementation of Exponentially Weighted Averages and it difference in Pine Script. It can generate a line that adjust to the overall trend of a graphic.
Exponentially Weighted Averages
This technique is used for generating smoother lines that adjust to a graphic. In finances, it is used to predict the overall trend of a graphic. The function that defines the EWA is the one bellow:
Vt = β V(t-1) + (1 - β) θt
Where:
β: Hyperparammeter that we have to adjust.
V(t-1): Value calculated for the previous element of the graphic.
θt: Current element of the graphic.
[fikira] MTF MA/EMA'sHere is my take on MA/EMA's and MTF, based on the most excellent work of
"PineCoders" (MTF Selection Framework functions)!
The big advantage is that on 1 image you can easily see where
price is compared to different MA/EMA's (each of different Time Frames).
This gives a lot of Support and Resistance area's!
Includes:
- MA/EMA 20
- MA/EMA 50
- MA/EMA 100
- MA/EMA 200
The present Time Frame MA/EMA has a coloured circle at the side.
Each can be altered in length (the length is visible at the side and changed with the settings)
Each has an extra 4 different Time Frames (multiple settings possible)
Crossover and crossunder MA/EMA 50 with 100 (Silver Cross) and 200 (Golden Cross) is included.
The present Time Frame Cross has a "o" above the Cross
Time Frame 1 Cross has a "1" above the Cross
Time Frame 1 Cross has a "2" above the Cross
Time Frame 1 Cross has a "3" above the Cross
Time Frame 1 Cross has a "4" above the Cross
Pivot Boss 4 EMA + BB + Parabolic SAR + IchimokuA combination of a few of my favorite indicators.
1) Pivot Boss 4 EMA
2) Bollinger Bands
3) Parabolic SAR
4) Ichimoku Cloud
All credit to original authors.
Moving Average ChannelThis script display three moving average channels,
main channel (EMA144, EMA169), second (EMA288, EMA338), third (EMA576, EMA676)
This channels can act as support/resisitance, a trade can be setup when price enter and then leave the channel.
There are also other moving averages base on FIbnacci numbers ( 13,21,34,55,89,144,233....), you can use it if you like.
This channels is base on idea of Vegas Tunnel Strategy developed by Vegas.
Dividend Yield with 2 Moving Average for see SpreadI "applied" the dividend yield on the original library script which I adding 2 Exponential Moving Average.
That is average the Long term of Dividend Yield and Short Term of Dividend Yield.
To estimate the Trend that "Is it worth to invest this stock right now?"
If the dividend yield right now is higher than both maybe it worth it on the past
(You can used your price pattern skill to make an entry with backed by adjusted yield------> I think it will help you for estimate pre-total return for Hybrid with Fundamental and Technical )
Hope it will help you ><
PS. it has a problem when using with "Split" stock ( for example 1 Year on "Day" Timeframe )
if somebody can help me .pls help me pls TT
Ps2. Be warry of the stock that don't has consistency pay dividend out and some "special dividend" that don't come form the real operating income.
--------------------------------------------------------------------------------------------------------------------------------------------------------------
สวัสดีมิตรสหายเทรดเดอร์หุ้นไทยทุกท่าน ผมสร้างอินดิเคเตอร์ สำหรับดูผลตอบแทนจากเงินปันผล พร้อมกับเส้นค่าเฉลี่ย เคลื่อนที่ 2 เส้น
เพื่อเป็นการดูแนวโน้มของราคาหุ้น และเพื่อจับจังหวะการซื้อหุ้นนะครับ
ผมขอยกความดีความชอบของ ท่าน Library Script นะครับ ที่มี Format ของการคำนวณเงินปันผลมาให้ ผมทำเพียงแค่ปัดฝุ่น และ Mod เส้นค่าเฉลี่ยขึ้นมาครับ
ไม่มีอะไรจะดีไปกว่าการซื้อหุ้นแล้วมีปันผลรองรับ ซับแรงกระแทกตอนที่กดเข้าซื้อหุ้นไปอีกแล้ว
สำหรับมิตรสหายท่านใดที่ศึกษาศาสตร์ด้าน "พื้นฐาน" และ "เทคนิค" อินดิเคเตอร์นี้อาจช่วยท่านหาจุดเข้าซื้อ ที่คุ้มค่าด้านเงินปันผล และเป็นจุดซื้อที่แม่น ขลัง มากขึ้นนะครับ
ผมว่าหากใช้ควบคู่กับเรื่อง Price Pattern คงเป็นประโยชน์ไม่น้อยเลย
ขอให้อินดิเคเตอร์นี้มิประโยชน์แก่ทุกท่านนะครับ
Ps. บางที เจ้าอินดิเคเตอร์นี้อาจมีปัญหา เมื่อใช้กับหุ้นที่เคยมีการแตกพาร์มาก่อนนะครับ ท่านอาจต้องใช้ Timeframe อื่นที่ไม่ครอบครุมช่วงเวลาที่แตกพาร์ครับ
ซึ่งตรงนี้ ผมยังหาวิธีแก้ไม่พบครับ มิตรสหายท่านใดช่วยมาก ผมจะยินดีอย่างยิ่ง
Ps2. ระมัดระวังหุ้นที่จ่ายปันผลไม่สม่ำเสมอ และหุ้นที่จ่ายปันผลจากกำไรพิเศษ หรือจ่ายจากเงินที่ไม่ได้มาจากการดำเนินงานตามปกตินะครับ เช่นการขาย Asset เข้า กอง Reit ขายหุ้นในบริษัทลูกและอื่นๆ
M&Ms - Multiple Moving Average Indicators This version includes Simple, Exponential and Weighted Moving Averages.
9.x IndexENGLISH
The 9-period exponential moving average setups are simple and efficient for upward or downward trends. Its creation is attributed to trader Larry Williams . In Brazil it is widely publicized by trader Alexandre Fernandes (Palex).
This indicator was created to show the setup that appeared in each candle and an arrow shows the direction that the operation must be made (up arrow, long, and down arrow, short).
Below are the rules that describe each setup.
9.1 Long
1) MME9 is descending;
2) The candle that changes the direction of the average upwards, after its closing, activates the setup, if its maximum is broken, the purchase is activated;
3) The stop loss is positioned below the candle low in step 2.
9.1 Short
1) MME9 is rising;
2) The candle that changes the direction of the average downwards, after its closing, activates the setup, if its minimum is lost the sale is activated;
3) The stop loss is positioned above the candle maximum in step 2.
9.2 Long
1) MME9 is rising;
2) The current candle must close below the minimum of the previous candle, if its maximum is broken, the purchase is activated;
4) If the maximum of the candle in step 2 is not broken, the purchase will occur when the maximum of the next candle is broken;
5) The stop loss is positioned below the minimum of the candle in step 2 or step 3.
9.2 Short
1) MME9 is descending;
2) The current candle must close above the maximum of the previous candle, if its minimum is lost the sale is activated;
4) If the minimum of the candle in step 2 is not lost, the sale will occur when the minimum of the next candle breaks;
5) The stop loss is positioned above the maximum of the candle in step 2 or step 3.
9.3 Long
1) MME9 is rising;
2) A reference candle must be followed by two closings in a row below its closing, the purchase occurs when the maximum of the last candle breaks;
3) If the last high is not broken, the purchase occurs when the maximum of the next candle breaks;
4) The stop loss is positioned below the minimum of the candle in step 2 or step 3;
9.3 Short
1) MME9 is descending;
2) A reference candle must be followed by two closings in a row above its closing, the sale occurs when the minimum of the last candle breaks;
3) If the last low is not broken, the sale occurs when the minimum of the next candle breaks;
4) The stop loss is positioned above the candle maximum of step 2 or step 3;
9.4 Long
1) A candle generates a 9.1 short;
2) The next candle should generate a 9.1 long without losing the minimum of the previous candle, the purchase occurs when the maximum is broken;
3) The stop loss is positioned at the low of the candle in step 2.
Setup 9.4 for sale
1) A candle generates a 9.1 long;
2) The next candle should generate a 9.1 short without losing the maximum of the previous candle, the sale occurs at the loss of its minimum;
3) The stop loss is positioned at the maximum of the candle in step 2.
PORTUGUÊS
Os setups da média móvel exponencial de 9 períodos são simples e eficientes em ativos em tendência de alta ou de baixa. Sua criação é atribuída ao trader Larry Williams . No Brasil é amplamente divulgado pelo trader Alexandre Fernandes (Palex).
Esse indicador foi criado para mostrar o setup que surgiu em cada candle e uma seta mostra a direção que deve ser feita operação (seta para cima, compra, e seta para baixo, venda).
Abaixo temos as regras que descreve cada setup.
Setup 9.1 de compra
1) A MME9 está descendente;
2) O candle que mudar a direção da média para cima, após o seu fechamento, ativa o setup, se sua máxima for rompida é ativada a compra;
3) O stop loss é posicionado abaixo da mínima do candle do passo 2.
Setup 9.1 de venda
1) A MME9 está ascendente;
2) O candle que mudar a direção da média para baixo, após o seu fechamento, ativa o setup, se sua mínima for perdida é ativada a venda;
3) O stop loss é posicionado acima da máxima do candle do passo 2.
Setup 9.2 de compra
1) A MME9 está ascendente;
2) O candle atual deve fechar abaixo da mínima do candle anterior, se sua máxima for rompida é ativada a compra;
4) Caso a máxima do candle do passo 2 não seja rompida, a compra o ocorrerá no rompimento da máxima do candle seguinte;
5) O stop loss é posicionado abaixo da mínima do candle do passo 2 ou do passo 3.
Setup 9.2 de venda
1) A MME9 está descendente;
2) O candle atual deve fechar acima da máxima do candle anterior, se sua mínima for perdida é ativada a venda;
4) Caso a mínima do candle do passo 2 não seja perdida, a venda ocorrerá no rompimento da mínima do candle seguinte;
5) O stop loss é posicionado na acima da máxima do candle do passo 2 ou do passo 3.
Setup 9.3 de compra
1) A MME9 está ascendente;
2) Um candle de referência deve seguido por dois fechamentos seguidos abaixo do seu fechamento, a compra ocorre no rompimento da máxima do último candle;
3) Se a última máxima não for rompida, a compra ocorre no rompimento da máxima do candle seguinte;
4) O stop loss é posicionado abaixo da mínima do candle do passo 2 ou do passo 3;
Setup 9.3 de venda
1) A MME9 está descendente;
2) Um candle de referência deve seguido por dois fechamentos seguidos acima do seu fechamento, a venda ocorre no rompimento da mínima do último candle;
3) Se a última mínima não for rompida, a venda ocorre no rompimento da mínima do candle seguinte;
4) O stop loss é posicionado acima da máxima do candle do passo 2 ou do passo 3;
Setup 9.4 de compra
1) Um candle gera um 9.1 de venda;
2) O candle seguinte deve gerar um 9.1 de compra sem perder a mínima do candle anterior, a compra ocorre no rompimento da sua máxima;
3) O stop loss é posicionado na mínima do candle do passo 2.
Setup 9.4 de venda
1) Um candle gerar um 9.1 de compra;
2) O candle seguinte deve gerar um 9.1 de venda sem perder a máxima do candle anterior, a venda ocorre na perda da sua mínima;
3) O stop loss é posicionado a máxima do candle do passo 2.
London Breakout with MDX Trailing StopThis indicator aims to aid in using the regular London Breakout strategy, as well as improve on it by adding a trailing stop based on the Mean Deviation Index.
The London Breakout strategy (according to my personal understanding) basically sees the morning before London open as the accumulation or distribution range for large buyers or sellers, and assumes the market will break either above that mornings high or below that mornings low when they start to move price. It is mostly used to trade stock indices and forex.
This indicator plots the morning high and low for each day. The green line is the morning high, and the red line is the morning low. If price moves above the green line (the morning high) it fills that area with a green color. If price moves below the green line (the morning low) it fills that area with a red color. This makes the breakouts easy to spot.
The background color of the chart turns green when the MDX is above 0 (price is more than X times ATR above the mean) and a breakout above the morning high has occurred, and stays green until the opposite happens.
The background color of the chart turns red when the MDX is below 0 (price is more than X times ATR below the mean) and a breakout above the morning high has occurred, and stays green until the opposite happens.
The default for X above is 1.0, but this can be changed in the settings by changing "ATR Multiplier".
The background is always neutral during the morning session since the morning high and morning low are not established yet.
A trailing stop is shown when price is more than X times away from the mean and a breakout has occured. The distance is set using the MDX. The trailing stop uses a separate ATR multiplier though, to make the signal and trailing stop MDX values different, if one likes. The default ATR multiplier for the trailing stop is 1.25, but this can be changed is the settings by changing "ATR multiplier for trailing stop".
When the high or low of a candle breaks the trailing stop, it is moved further away, indicating you have been stopped out, but gives opportunity to use it if you enter again (so it doesn't just disappear).
As an added bonus, take profit levels have been added based on the mornnig range. The take profit distance is set by multiplying the range with a factor. The levels are then plotted that distance from the morning high and morning low.
MDX: