Heikin Ashi Candle Startegy for Long PositionThis strategy utilize Heikin-Ashi candlestick chart.
Heikin-Ashi technique is a Japanese candlestick-based technical trading tool that uses candlestick charts to represent and visualize market price data.
Heikin-Ashi candle is essentially taking an average of the movement.
There is a tendency with Heikin-Ashi for the candles to stay red during a downtrend and green during an uptrend.
This strategy only apply for long trading position.
The idea is trader will waiting 3 green candles for validation period (confirmation) before entering long position.
Different timeframe will result different result.
Number of validation period can be changed to see different result
This strategy has parameter for take profit percentage, trailing stop and stop loss.
User can set maximum active position to minimize risk and qty order.
This tool is useful for user who wants to backtest Heikin-Ashi trading strategy.
Script will emit alert when long position is opened and closed.
Warning of Backtesting
Backtesting is backward-looking. As the name implies, you are testing how something would have worked if you traded it perfectly in the past.
Past performance does not indicate future performance and you should not assume it does.
Backtesting assumes you never miss-fire, that you get in and out at the exactly perfect moment each time.
Backtesting assumes you have perfect liquidity, and your limit orders fill at a specific, pre-defined price every time (either the open, close, low, high, or some average of these).
Disclaimer
Do your own research and consider fundamental price of asset.
The indicators provided on this script is for educational purposes only.
Author does not offer advisory or brokerage services, nor does it recommend or advise users to buy or sell particular stocks or securities.
Please examined script and give feedback for further improvement.
Script are open to public, everyone see and clone source code or just apply to chart. Please make comment for improvement.
Análisis de velas
Tarot : Major ArcanaThis script generates a Major Arcana Tarot card for each candle at its close.
The candle is divided into 22 sections, each section corresponding to one of the Major Arcana.
When a candle closes, it closes in one of those 22 sections and that generates the card.
You could read green candles as upright and red candles as reversals.
Uses
----
Use this to pull a daily card on your chart.
Ask a question on the one-minute chart before the candle closes and wait for your answer.
Use it to forecast the upcoming market.
Anything else!
Enjoy.
Fibonacci levels MTFHello All,
I got some requests for a script that shows Fibonacci Levels of Higher Time Frame Candles. so I made/published this script. I hope it would be useful for you.
Options:
You can set Higher Time Frame, by default it's 1 Day.
Optionally it can use Current or Last Candle of higher time frame to calculate/show its Fibonacci Levels.
It can show higher time frame candles at the background optionally. You can change its colors.
You can enable/disable/change each Fibonacci levels and their colors.
You can enable/disable Fibonacci Labels that is shown at the right ride and see only Fibonacci lines/levels
example, Fibonacci levels with higher time frame candles:
P.S. if you have ideas to improve this script, drop a comment under the script please
Enjoy!
Trailing Stop AlertsThis script is designed as an ATR-based trailing stop tool to assist in managing open positions.
Once you're involved in a profitable trade, if you add this script to your chart you'll be prompted to select a bar to begin trailing from.
You can then adjust the candle lookback distance for swing high/lows (7 by default), the ATR multiplier (1.0 by default), and the direction to trail (Long/Short).
You can also adjust the ATR period in the settings menu if you want to (14 period by default).
Once the script is added to your chart, it will begin drawing your trailing stop and you can then set up alerts.
Alert Options:
Any alert() function call : Will trigger an alert for both conditions (trailing stop updated, trailing stop hit)
Alert Conditions : Trailing Stop Update will trigger whenever the stop is updated, Trailing Stop Hit will trigger whenever the stop is hit.
Note: the alerts will only fire once per bar close and the trailing stop will not update on realtime bars.
TAPLOT Wick PlayWick play is a candle stick long setup popularized by 2020 US Investing Champion Oliver Kell
Wick Play is a setup in which:
Strong stock with momentum to the upside closes off the highs of the day in yesterdays session.
Today's session opens in the candle "wick" of yesterdays bar.
If stock holds in the wick and doesn't trade in the body of yesterdays candle, it is a sign of strength.
Trigger happens on day 3 when price moves over the high of the wick inside day.
It is important to note that this setup should not be traded in isolation. Not every wick play is buyable.
This is to be used in the context of strong stocks like True Market Leaders and with buying momentum behind them.
Indicator places an up arrow under the candle setup. It also colors the candle itself. All configurable through indicator settings.
Cheers!
EMA Confirmations & RejectionsWant to know how the bulls and bears are doing? Use this to see the attempts made for making big moves and their outcomes to feel more confident in your entry or exit and know when the tides are turning. Do not read a single arrow or cross on the chart and think it means one thing. Take in the big picture and detect patterns and frequency of good or bad signals to determine the likelihood of the future being bullish or bearish. For example, more green arrows than orange arrows in a consolidation period would suggest a break to the upside is more likely.
There are 4 different signals this indicator can print:
1. A green arrow indicates a move of strength to the upside has begun. Could be a bull trap or the start of a long lasting bullish move.
2. An orange arrow indicates a move of strength to the downside has begun. Could be a bear trap or the start of a long lasting bearish move.
3. A blue cross is printed above if the break was to the upside, or below if it was to the downside. Indicates a failed attempt to change the trend and bullish price action is more likely in the next few candles.
4. A red cross is printed above if the break was to the upside, or below if it was to the downside. Indicates a failed attempt to change the trend and bearish price action is more likely in the next few candles.
The location of the cross is more important than the colour. Above means pressure downwards, and below means pressure upwards.
Pro Tip: Green arrows below 50 on the RSI are more meaningful than when above. This also works for orange arrows when above 50.
Favorite Signals w/EMA FilterThe script combines my favorite signals then filters them with three EMAs.
Via the Style tab, you can choose to either have the signals color the bar and/or plot a shape above/below.
All signals can be turned off via the Inputs tab, which will remove the bar color and/or shape (if not already off in the Style tab) as well as remove the pattern from the alerts function.
Remember when using TV alerts, if you change the script settngs, you must create a new alert if you wish to be alerted for the changes you've made.
LONG/SHORT SIGNALS INCLUDED FOR:
- TD8s
- TD9s
- Hammer
- Shooting Star
- Bullish Harami
- Bearish Harami
- RSI Divergences
EMA FILTER LOGIC LONGS:
- Price < Fast EMA & Med EMA > Slow EMA = Possible Long Entry
- Price > Fast EMA & Med EMA > Slow EMA = Possible Reversal, Tighten Stop or Reduce Position
EMA FILTER LOGIC SHORTS:
- Price > Fast EMA & Med EMA < Slow EMA = Possible Short Entry
- Price < Fast EMA & Med EMA < Slow EMA = Possible Reversal, Tighten Stop/Reduce Position
Big up to @spdoinkal, @HPotter, @LonesomeTheBlue, for writing the originals scripts for the signals above.
Enjoy!
Bar Percent CompleteThis is an example script for checking how far the current bar has progressed towards it's completed state. This works for any time frame, eliminating extra logic calls and conversions for each timeframe.period. It is not intended to be a standalone indicator, but rather as a resource for additional logic triggers on the real time bar of a pine script.
The main caveat is that pine script calculations occur on a per-tick basis. This means that the completion percentage can exceed the percentage threshold before any logic is executed. This happens when the next tick occurs after the threshold. The relevance then will depend on the activity of the underlying asset. Longer time frames on low activity assets will likely be more relevant than their shorter time frame counterparts.
Price Action [Morty]This price action indicator uses the higher timeframe SSL channel to identify trends.
The long entry signal is a bullish candlestick pattern when the price retraces to EMA20 in an uptrend.
The short entry signal is a bearish candlestick pattern when the price retraces to the EMA20 in a downrend.
Currently, this indicator shows engulfing patterns, pin bar patterns, 2 bar reversal patterns and harami patterns.
It also shows a volatility squeeze signal when the Bollinger bands is within the Kelter channels.
The buy and sell signal can also be filter by the ADX indicator greater than a threshold.
You can set your stoploss to the previous low/high when you go long/short.
The risk/reward ratio could be 1 to 1.5.
This indicator can be used in any market.
Plot Real Open and Close - SamXI built this indicator as a personal request from a friend. He often trades using Heiken Ashi charts, but wanted a way to easily cross-reference real-price open and close values for the same timeframe on the same chart (as HA candles are by design lagging, they can take a few periods to catch up to a large move). This can also be used to help guide support and resistance zones using real-price data points should you so choose.
There are 2 major ways to configure this indicator to display real-price open and close:
As a Bar or Hollow Candle style chart overlay
As on-chart shapes (allowing individual control over which data to show - open, close, or both)
Outside DayThis strategy is taken from Perry Kaufman's book "Trading System and Methods".
You can enter on the direction of the candle, or opposite to it. I find that the opposite tends to yield better results in volatile assets, allowing a better reward to risk ratio. There is no stop loss in this strategy, only a fixed take profit and a time limitation.
Candlestick Trailing AllocationA simple indicator that calculates the sum of 'Up'(green), 'Down'(red), and 'Doji'(near Doji) candlesticks and portrays the same in an allocation format in percentage. And since it is allocation-based, the total will never exceed 100% of the defined Length period.
The equation is Green + Red + Doji = Total Candles; where total candles = length
When calculating the allocation part, the doji candles are subtracted from the sum of green and red, and the new value is divided by the length period.
For example, the green line = (sum of all green candles - doji / 2) / length; the reason to divide doji by 2 is to eliminate the redundancy it can cause.
When the green line crosses above the red line, the number of green candles is more than red in the defined length period. Similarly, when the red line crossed above the green, there were more red candles than green in that period.
The Doji line shows if any doji or near doji candles have appeared. It acts as a form of resistance against the green and red candles.
There's also the option to change the value of the doji's weight. Default is at 0.1.
The indicator does not show trend nor momentum, even though it may replicate some of its behavior from time to time. It is purely showing the allocation of the number of candles classified as green, red, and doji within the length provided.
BlockBlock indicator is based on breakdown.
When a candle closes above previous highest high or below previous lowest low a block is made.
When a candle closes below previous highest high or above previous lowest low the block continues and just high and low are updated.
This indicator is very useful for supply and demand strategy.
Have much profit with this indicator.
NSDT Bearish-Bullish CandlesThis is another interesting take on candlesticks . These Bearish-Bullish Candles do not show the wicks. Instead, the upper wick is made into a Red body and the lower wick is made into a Green body. If you match the candle body color in the chart settings (or turn off the candles completely), you get a unique way of seeing how Bearish or how Bullish a candle is because the wick will now match the body size and color.
This indicator is very similar to our NSDT Special High-Low Candles.
Wick Bodies [vnhilton]I noticed that changing the colour of the wicks through TradingView settings changes the colours of both the top and bottom wicks. I also noticed that the thickness of wicks couldn't be changed either so they remained very hard to see when zoomed out of charts. Wicks have the potential to show zones where price rejects from - this is useful for identifying potential support and resistance zones.
I created an alternative solution to this problem by creating bodies for the wicks. It's recommended that you hide the wicks so it shows candles as bars split into 3 segments (top segment representing top wick; middle segment representing candle; bottom segment representing bottom wick). Colours are customizable. Also includes borders for the wick bodies.
Reversal zone finderThis script would find potential reversal price zones according to RSI over bought or sell condition and big reversal candle.
It works better in range markets and lower time frames like 5M and especially in Support/Resistance zones.
Suit for scalping in forex or crypto markets.
* Use it as a trade assistant not a trade signal!
Higher Time Frame Chart OverlayHello All,
This script gets OHLC values from any security and Higher/Same time frame you set, then creates the chart including last 10 candles. it shows Symbol name, Time Frame, Highest/Lowest level of last 10 candles and Close Price at the right side of the chart as well. Closing price text color changes by the real-time candle of the related symbol and time frame. The all this was made using the Tables in Pine and the chart location doesn't change even if you change the size of main chart window.
Almost everything can be change as you want. You can change/set:
- Colors of Body and Top/Bottom Wicks separately
- The Height of each Cell
- The Width of Body and Wicks
- The Background and Frame color
- Enable/disable Status Panel (if you disable Status Panel then only candle chart is shown)
- Location of Status Panel
- Text color and Text size
- The Background color of Status Panel
Some examples:
The info shown in Status Panel:
You can change The Height of each Cell and The Width of Body and Wicks
You can change colors:
You can change location of the chart:
If you add the script more than once then you can see the charts for different symbols and time frames: (This may slow down your chart)
If you right-click on the script and choose "Visual Order" => "Bring to front" then it will be better visually:
P.S. Using this script may slow down your chart, especially if you add it more than once
Enjoy!
VCC Impulse 101Title = VCC Impulse 101
Version = v1.2.0
Author = Vic Cebedo
A cryptocurrency Buy and Sell signal indicator.
BUY SIGNAL (green background) is triggered if Buy Score (black line) reaches (4) Points.
1 Point is added to Buy Score if:
- The Closing Price is above all Moving Averages (7, 21, 50, 100, and 200), and
- If the 200MA is above the other Moving Averages (7, 21, 50, 100).
1 Point is added to Buy Score if:
- MACD is greater than MACD Signal, and
- MACD is greater than zero, and
- MACD Signal is greater than zero, and
- MACD is greater than previous value.
1 Point is added to Buy Score if:
- SMI is greater than zero, and
- SMI is greater than previous value.
1 Point is added to Buy Score if:
- RSI is greater than 50.
The SELL SIGNAL (red background) is triggered if EITHER Ethereum Sell Score (purple line) OR Bitcoin Sell Score (red line), reaches (-3) Points.
2 Points is deducted from the Ethereum Sell Score if:
- The number of Ethereum Short positions is greater than the Longs.
1 Point is deducted from the Ethereum Sell Score if:
- The Ethereum RSI is greater than 75.
2 Points is deducted from the Bitcoin Sell Score if:
- The number of Bitcoin Short positions is greater than the Longs.
1 Point is deducted from the Bitcoin Sell Score if:
- The Bitcoin RSI is greater than 75.
CandleEvaluationLibrary "CandleEvaluation"
Contains functions to evaluate bullish and bearish, engulfing, and outsized candles. They are different from the built-in indicators from TradingView in that these functions don't evaluate classical patterns composed of multiple candles, and they reflect my own understanding of what is "bullish" and bearish", "engulfing", and "outsized".
isBullishBearishCandle()
Determines if the current candle is bullish or bearish according to the length of the wicks and the open and close.
int _barsBack How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.
returns Two values, true or false, for whether it's a bullish or bearish candle respectively.
isTripleBull()
Tells you whether a candle is a "Triple Bull" - that is, one which is bullish in three ways:
It closes higher than it opens
It closes higher than the body of the previous candle
The High is above the High of the previous candle.
int _barsBack How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.
returns True or false.
isTripleBear()
Tells you whether a candle is a "Triple Bear" - that is, one which is bearish in three ways:
It closes lower than it opens
It closes lower than the body of the previous candle
The Low is below the Low of the previous candle.
int _barsBack How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.
returns True or false.
isBigBody()
Tells you if the current candle has a larger than average body size.
int _length - The length of the sma to calculate the average
float _percent - The percentage of the average that the candle body has to be to count as "big". E.g. 100 means it has to be just larger than the average, 200 means it has to be twice as large.
returns True or false
isBullishEngulfing()
Tells you if the current candle is a bullish engulfing candle.
int _barsBack How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.
int _atrFraction The denominator for the ATR fraction, which is the small amount by which the open can be different from the previous close.
returns True or false
isBearishEngulfing()
Tells you if the current candle is a bearish engulfing candle.
int _barsBack How many bars back is the candle you want to evaluate. By default this is 0, i.e., the current bar.
int _atrFraction The denominator for the ATR fraction, which is the small amount by which the open can be different from the previous close.
returns True or false
CH-I: Trend - Higher Timeframe BodyI took the script for the built-in indicator for candle bodies of a higher timeframe (www.tradingview.com) which has a fixed border width and style and added the possibility to customize both the border width and the border style or to even disable the display of any border at all, which makes the presentation of those boxes more flexible.
GSI (Gap Size Indicator)The purpose of this indicator is to give a quick view of a gap size between two candles, and to detect any gap bigger than the trigger setting.
Options
Mode: Select the display mode (% or Value)
Variation Trigger: Defines the minimum gap size to give a signal, for both positive and negative sides. This option depends on the Mode setting
Show trigger lines: Enable/Disable the display of the Variation Trigger setting lines
Color signals only: When enabled, bars crossing the trigger value are still colored, but other are gray
Show signals only: When enabled, will only show bars corresponding to gaps crossing the trigger value
Notes
Basic alerts on Bullish , Bearish and All gaps are available.
Feel free to suggest any improvement.
Order BlocksThis is experimental Indicator is to help identifying Order Blocks.
It uses not confirmed higher order pivots as Higher Highs (HH) and Lower Lows (LL), finds high/lows that created most recent LL/HH and in case if this high/low are broken it notes candle that broke structure, market structure broke line (MSB) and demand box (candle that created liquidity for the move that broke structure).
Concepts and parts of code used in this study:
1) @rumpypumpydumpy - Higher Order Pivots
2) @MarkMiddleton2020 - Order Blocks