Trend following 3 EMA & Bullish Engulfing indicator for ForexHello world,
I now took the time and puzzled through my own indicator.
The idea:
Main "strategy" uses 3 EMAs (8, 13 and 21) to attain trend-relevant information.
Then we look for bullish & bearing engulfing candles which indicate and pullback into trend direction and a gain in momentum.
Trading purpose:
One could now enter with next open. SL at low/high of engulfing candle. TP at e.g. 1.25 of that candles size.
Security:
There are two security functions build in.
We check for higher timeframe confirmation.
This is done by checking if current trend is in accordance with the EMA of the next higher timframe.
Standard-deviation is 3 on default. Can be changed in the inputs.
Alerts:
Until now there is just one alertcondition programmed.
It alerts for every engulfing candle (bullish and bearish).
More will follow in further versions.
Inputs:
I build in multiple inputs.
- switch on/off the security EMA's
- define security trend backcheck
- define the higher timeframe (15min/1h, 1h/240, 4h/D, D/W)
Happy to take feedback or contr.
All the best,
c4ss10p314
การวิเคราะห์แท่งเทียน
Heikin-Ashi Source Function HTFHigher TimeFrame using custom source function for toggling traditional Candle sources or Heikin-Ashi sources on a traditional Candles chart.
Thanks to PineCoders for rounding method: www.pinecoders.com
Thanks to @LucF and @RicardoSantos for their advice and enlightenment as always.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Hikkake PatternLifted description from web:
Hikkake means to trap, trick, or ensnare. Primarily, this price pattern seeks to identify inside bar breakouts and profit from their failures.
An inside bar is a price bar that is entirely within the range of the preceding price bar. Inside bars are typical on price charts of most timeframes.
While you’ll often find inside bars in congested markets, they also offer a low-risk entry point for price action traders. The contracted range of an inside bar offers a natural tight stop-loss.
Hence, inside bar breakouts seem attractive. However, if you are patient and focus on identifying false breakouts, you might be able to find more reliable trading setups in the form of Hikkakes.
In a nutshell, the Hikkake pattern offers a systematic approach to trading false inside bar breakouts.
As a filter I incorporated VWAP into the code to only trigger Bullish / Bearish signals when price is Above/Below VWAP respectively. The ATR is used to create a Stop buffer (red cross) for the Entry signal ( green dot ). The R1 and R2 (orange squares) are two possible profit targets that are customizable to different Risk multiples based upon the difference between Entry and Stop.
Trend Reversal / Potential pressureThis strategy looks for potential trend reversals by looking at hammer candles (defined in the is_hammer and is_stick functions). After getting confirmation a trade is open with determined SL/TP. ATR is used to justify the volatility. Fine-tune the parameters for your specific use case.
Elder's Impulse System with weekly EMA Filter - ValenteThis indicator was based on the Elders Impulse System by astraloverflow.
The only difference is that I included the weekly EMA26 as a filter and you can plot it on the graph if you want (unchecking the Weekly EMA26 won't turn the filter off, will only stop plotting it).
The indicator works this way:
When the MACD Histogram is growing UP, the EMA13 is pointing UP AND the Weekly EMA26 is pointing UP, the bar is Green
When the opposite is true, the bar is Red.
When any condition from both green and red is not true, the bar is blue.
In my opinion, this particular indicator works better on the D1 time frame. I recommended using the original one, by astraloverflow for other time frames.
I hope it is useful!
cATRpillerThis indicator is used to identify range breakouts using an ATR multiplier. My first script, Im sure there are indies out there like this, but this my favorite way to identify breakouts and trends.
Hammer & Shooting Star IndicatorA hammer candle is defined here as 1) the lower shadow (wick) is at least twice the length of the main body and 2) the close is in the top half of the range.
A shooting star has the opposite conditions 1) the upper shadow is at least twice the size of the main body and 2) the close is in the lower half of the range.
These candles should not be used by themselves but used in context ie with Bollinger bands, RSI or other oscillators they can form part of a mean reversion system.
Marubozu ScannerCandlestick Marubozu patterns scanner with multiple settings to fine-tune the scanning.
n4ly's Portfolio ToolThank to user bnh for the idea (Hershey's Portfolio Watch)
A script that shows the total or return on current assets in real time.
You can view all your assets in one currency.
Please refer to the comments in the script and modify them. A little script knowledge is required.
Depending on the number of registered items, it may take some time.
- English translated from Papago
bnh님께 아이디어를 얻었습니다. (Hershey's Portfolio Watch)
현재 자산 합계 또는 수익을 실시간으로 보여주는 스크립트입니다.
모든 자산을 하나의 통화로 묶어서 볼 수 있습니다.
스크립트 내부의 주석을 참고해서 수정하여 사용해 주세요. 약간의 스크립트 지식이 필요합니다.
등록된 항목 수에 따라 다소 긴 시간이 소요될 수 있습니다.
engulfing candle detectionthere are better scripts out there similar to this but just testing out my pinescript skills am still new to scripting :)
Compare Forex ExchangesThis indicator allows you to overlay candles of a different exchange over the top of your primary exchange. For example, you might be curious how Oanda's prices compare to FXCM's in realtime.
You can see from the example that generally, the other exchanges swing a little further than FXCM (note this is the 1 minute chart for clarity).
You can use this if you are thinking to change exchanges (or concerned you are being stop hunted etc).
I was just curious to see the difference in real time during new events.
I don't need it anymore - I hope its useful to people
HG Scalpius - Previous Bar HighlightHG Scalpius - Previous Bar Highlight
This indicator highlights the 20th bar from the current bar and has the below applications for trading the HG Scalpius system:
- Determining if trend mode off switch is triggered, failing to set a new higher (lower) close in the trend with 20 bars
- Determining the highest (lowest) bar in the previous range to decide if a trade is high & tight
bars_back = input(defval=20, minval=0, title="Bars Back")
bgcolor(#9C27B0, offset=-bars_back, show_last=1)
If you come across or think of any other useful scripts for the HG Scalpius system please comment below!
Happy trading!
How To Limit n Round Trips Per Day [Alerts]Example how to limit the number of round trips per day. If entry condition is never met logic will force a round trip at end of day. Set chart to a timeframe that is lower than 1 Day period.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
Off-chart 21 MA, Bollinger Bands and Heikin Ashi CandlesThis off-chart indicator provides three basic and useful tools for trend trading in Bitcoin and probably other markets. Heikin Ashi candles being utilized with classic candle patterns at the same time could be considered as a conservative and safe confirmation approach for entring your position.
HG Scalpius H & SS ScanHG Scalpius H & SS Scan
This indicator highlights hammer candles and shooting star candles based on the below definitions:
Hammer = lower wick >= 2* real body and closes in top half of range
Shooting Star = upper wick >= 2*real body and closes in bottom half of range
hammer = (min(open,close)-low)>= (2*abs(open-close)) and close > (((high-low)/2)+low)
shootingStar = (high-max(open,close))>= (2*abs(open-close)) and close < (((high-low)/2)+low)
Tweezer Scanner v1Some code for detecting tweezer candles, which are reversal patterns. You'll need to tweak the settings to be either less strict (more detections) or more strict (less detections). I found that if you follow the documentation for tweezers exactly, you will get very few detections. It is possible that this candlestick has become overused, so the original pattern itself has been lost to the noise of the market.
Settings:
1. Tweezer Max Body Height (Pips) - How tall can the body of the tweezer be, in pips (increase this pips to increase detections)
2. Tweezer Body Similarity (>%) - How similar should the body heights be, higher percentage is more similar (reduce this % to increase detections)
3. Tweezer Tail Similarity (>%) - How similar should the tail heights be, higher percentage is more similar (reduce this % to increase detections)
4. Tweezer Tail Proportion (<%) - How short should the opposite tail heights be, lower percentage is shorter and more similar to the documentation (increase this % to increase detections)
Marubozu Scanner v1Some code for detecting the very rare occurrences of the Marubozu candle. This candle occurs when the High = Close, and Low = Open, or vice versa. They are continuation candles, so if you see a bullish Marubozu during an uptrend its possible that the uptrend will continue.
NSDT Session Background ShadingA simple script to add background colors to specific timeframes. Great for trading futures so you can separate sessions for easier viewing. Use for stocks to separate pre, open, and post market times.
There are three timeframes that can be set and all colors can be modified.
Doji Scanner v1A scanner for detecting Doji Candles.
Adjust the maximum allowable height of a Doji Candle's body, depending on the currency pair or asset.
Heikin-Ashi Source FunctionCustom source function for toggling traditional Candle sources or Heikin-Ashi sources on a traditional Candles chart.
Thanks to PineCoders for rounding method: www.pinecoders.com
Thanks to @LucF and @RicardoSantos for their advice and enlightenment as always.
NOTICE: This is an example script and not meant to be used as an actual strategy. By using this script or any portion thereof, you acknowledge that you have read and understood that this is for research purposes only and I am not responsible for any financial losses you may incur by using this script!
StarbuxI made this in starbucks .
Bullish hammer trading signal algorithm
using MACD for trend determination and holding period.