BT Leading Candle IndicatorThe oscillator display consists of 3 lines (K, D and J - hence the name of the display) and 2 levels. K and D are the same lines you see when using the stochastic oscillator. The J line in turn represents the deviation of the D value from the K value. The convergence of these lines indicates new trading opportunities. Just like the Stochastic Oscillator, oversold and overbought levels correspond to the times when the trend is likely to reverse.
Function
BT Leading KDJ Candle Indicator use candles to indicate KD relationship. E.g. yellow candles for bull (K>=D) and fuchsia candles for bear (K=D and fuchsia for K KDJ K value
d --> KDJ D value
buysig --> KD buy signal in green triangle
selsig --> KD sell signal in red triangle
leadingline --> colorful leading line for KDJ
Pros and Cons
Pros:
1. Candle height can indicates the strength of trend and different colors are used for indicating KD relationship
2. a leading line is added as aux method to confirm KDJ signal
Cons:
1. It may satruate for extreme conditions of long and short as described in the chart, which is inherent KDJ shortcoming.
2. Not accurate for long and short entries and need filtering out noise and fake signal.
Remarks
More direct to observe and confirm trend with the leading line.
Read me
In real life, I am a prolific inventor. I have successfully applied for more than 60 international and regional patents in the past 12 years. But in the past two years or so, I have tried to transfer my creativity to the development of trading strategies. Trading view is the ideal platform for me. I am selecting and contributing some of the hundreds of scripts to publish in Trading view community. Welcome everyone to interact with me to discuss these interesting pine scripts.
The scripts posted are categorized into 5 levels according to my efforts or man hours put into these works.
Level 1 : interesting script snippets or distinctive improvement from classic indicators or strategy. Level 1 scripts can usually appear in more complex indicators as a function module or element.
Level 2 : composite indicator/strategy. By selecting or combining several independent or dependent functions or sub indicators in proper way, the composite script exhibits a resonance phenomenon which can filter out noise or fake trading signal to enhance trading confidence level.
Level 3 : comprehensive indicator/strategy. They are simple trading systems based on my strategies. They are commonly containing several or all of entry signal, close signal, stop loss, take profit, re-entry, risk management, and position sizing techniques. Even some interesting fundamental and mass psychological aspects are incorporated.
Level 4 : script snippets or functions that do not disclose source code. Interesting element that can reveal market laws and work as raw material for indicators and strategies. If you find Level 1~2 scripts are helpful, Level 4 is a private version that took me far more efforts to develop.
Level 5 : indicator/strategy that do not disclose source code. private version of Level 3 script with my accumulated script processing skills or a large number of custom functions. I had a private function library built in past two years. Level 5 scripts use many
Cerca negli script per "candle"
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.
Blended CandlesHave been looking at YouTube and found a few videos about Blended Candles. Couldn't find a script here so I decided to script something myself.
I have also added a couple of EMA's, saves having to put them in individually.
You can Look Back as far back as you want but I find that each time frame looks better if you keep it to multiple of the next
IE : 1 min - look back 5 (5 min) up to 15 (15 min)
5 min - look back 3 (15 min) up to 12 (1 hour)
15 min - look back 4 (1 hour) up to 16 ( 4 hours)
1 hour - look back 4 (4 hours) up to 8 (8 hours - 1 trading session)
4 hour - look back 2 (8 hours - 1 trading session) up to 6 ( 1 Day)
1 day - look back 5 ( 1 week)
Shooting stars, Hammers and Doji's are very easy to recognize
Long wicks on top - Bearish
Long wick on bottom - Bullish
Support and Resistance is easier to spot as well :-)
Hope this helps someone - defiantly helps me time entries
Comments welcome and Happy Trading
Basing CandlesBasing Candles using custom candles.
First, change default chart from candle to line or something other than candle to make this meaningful
Average Candle LengthThis script is designed to show you the average candle size in pips (wick to wick) for however many bars you choose (20 is default).
The idea is that if the average candle size for the last 20 bars is, let's say 25, you would probably not want to set your stop loss less than 25 because it is more likely to get hit.
if you find this script helpful, tips and donations are always appreciated (venmo @rick-munoz) :)
IO_CWL IndexCandlestick body and Wick Length Index (CWL)
Shows a trend chart of candle body length and wick length.
Green -> Candle body
Red -> Candle Wick
-- Invsto
First Candle High Low LevelsDescription
The "First Candle High Low Levels" Pine Script indicator is designed to highlight the high and low levels of the first candle of the day on your TradingView chart. It works across different timeframes and specifically handles the Indian stock market trading hours (9:15 AM to 3:30 PM IST). The script draws a box from the start to the end of the trading session, visually marking the price range defined by the first candle of the day. Traders can customize the box's border color, fill color, and line width.
Features
Customizable Timeframe: Users can select the desired timeframe for the first candle (e.g., 5-minute, 15-minute, etc.).
Custom Box Appearance: Options to adjust the border color, fill color, and line width of the drawn box.
Auto Reset for Each New Day: The high and low of the first candle are reset daily to mark the start of the next trading day.
Accurate Market Session Handling: The box is drawn from the start of the first candle to the end of the trading session (3:30 PM IST).
Usage
Adding to Chart: Apply the script by copying it into the Pine Script editor in TradingView. Once added, the script will automatically draw a box representing the high and low of the first candle of the day.
Select Timeframe: You can adjust the First Candle Timeframe input to define which timeframe candle will be used for marking the high and low. For example, if you choose a 5-minute timeframe, the high and low of the first 5-minute candle will be used.
Customization:
Adjust the Border Color and Box Fill Color through the input settings to match your chart's style.
Modify the Box Line Width to make the box lines more or less prominent.
First 12 Candles High/Low BreakoutThis indicator identifies potential breakout opportunities based on the high and low points formed within the first 12 candles after the market opens on a 5-minute timeframe. It provides visual cues and labels to help traders make informed decisions.
Features:
Market Open High/Low: Marks the highest and lowest price of the first 12 candles following the market open with horizontal lines for reference.
Breakout Signals: Identifies potential buy or sell signals based on the first 5-minute candle closing above the open high or below the open low.
Target and Stop-Loss: Plots horizontal lines for target prices (100 points by default, adjustable) and stop-loss levels (100 points by default, adjustable) based on the entry price.
Visual Cues: Uses green triangles (up) for buy signals and red triangles (down) for sell signals.
Informative Labels: Displays labels with "Buy" or "Sell" text, target price, and stop-loss price next to the entry signals (optional).
Customization:
You can adjust the target and stop-loss point values using the provided inputs.
How to Use:
Add the script to your TradingView chart.
The indicator will automatically plot the open high, open low, potential entry signals, target levels, and stop-loss levels based on the first 12 candles after the market opens.
Use the signals and price levels in conjunction with your own trading strategy to make informed decisions.
Heikin Ashi CandlesLibrary "heikin_ashi_candles"
This library is programmed to calculate the Heikin Ashi candles using the standard formula of Heikin Ashi Candles.
Notice the Heikin Ashi chart type isn't 100% like the results from this calculation.
You can import this library in your code to use it as a smoothing method for your strategy which operates on the standard chart type.
_close()
_open()
_high()
_low()
_ohlc4()
_hlcc4()
_hlc3()
_hl2()
Hollow, Filled Candle IndicatorColored, Filled and Hollow candles similar to Stock charts candles.
Hollow Black - close > prior close and close > open
Filled Black - close > prior close and close < open
Hollow Red - close < prior close and close > open
Filled Red - close < prior close and close < open
HFX Kung Fu Pips Candlestick Identifier by Trader ZThis indicator identifies the following candle stick patterns:
Bullish and Bearish Engulfing
Hammer/Hanging Man, Shooting Star
Tweezer Tops and Bottoms
Doji Star
Doji Gravestone
Made for trading Forex Binary Options but can be used in any market. When the candlestick pattern emerges the script will label the pattern. A helpful visual tool for your analysis.
Enjoy!!!!
BB and Engulfing Candle PatternHey this is my second script. This a combination of Bollinger Bands and detection of Engulfing Candles. This study also filters out and displays Bull, Bear, and False signals, using the long term 200 EMA Trend. Let me know what you think!
Finnie's RSI Waves + Volume Colored CandlesUsing RSI and 4 exponential moving averages, I created this indicator so that you can spot inconsistencies between price action and RSI. There's a lot of misunderstanding surrounding RSI, most people think if something's 'oversold' buying is a guarantee win. This definitely isn't the case as there's many more variable to consider. In addition, with this indicator, candles are colored based off of volume.
INDICATOR USE:
1. Determine trend
2. Find relative support/resistance
3. Once at support/resistance look for entries:
-RSI crossing over the Short EMA (CYAN) is your fist buy/sell signal
-Short EMA (CYAN) crossing Medium EMA (YELLOW) is your second
-RSI crossing Long EMA (PINK) is your final and most accurate signal
4. Once you've made an entry, you can follow step 3. in reverse for an exit
COLORED CANDLES:
Dark Green candles = Strong Bullish volume
Light Green = Average Bullish volume
Dark Red candles = Strong Bearish volume
Light Red = Average Bearish Volume
Orange/blue means volume is conflicting with price action
I plan to add a Colored DOT over each crossover as a visual buy/sell signal if anyone has any suggestions that'd be great :)
Heiken-Ashi CandlesSimple script to view Heiken-Ashi candles below a normal candles chart.
Could also be useful for using HA calcs in strategy scripts on normal candles chart for proper backtesting.
I adapted this to v4 from original v2 script by @samtsui. If you like please remember to give him a Thumbs Up for his original version! ->
Engulfing Candles DetectorHello traders
Credit to HPotter for that script
I took his script and added alerts to it. 2 lines lol
But anyway, useful to detect reversals by coloring bullish/bearish engulfing candles :)
Enjoy
David
Combined MTF Camarilla Pivots (HA + Candles)This is a fairly basic (but hopefully useful) indicator that combines three time-frames of Camarilla pivots into one.
Default time-frames are:
Weekly
Monthly
Yearly
Time-frames can be modified as you wish, they are just set to these as I generally only trade higher intervals (just note that formatting labels will not change - but you can update these as needed).
The Camarilla pivots displayed are as follows:
R3, R4, R5, R6
Pivot line (Middle/Base)
S3, S4, S5, S6
R1/S1 & R2/S2 are excluded to make way for R5/S5 & R6/S6 - as these are more useful for the majority of traders. The formula for levels 5/6 are always up for debate, as no official formula has ever been released. I've used what I consider a mid, or consensus calculation.
By default all historical pivot levels are displayed, as there can be some benefit to mapping these forward once the relevant period has ended. If people find it's too cluttered I'll look into having an option to display the current period only.
Unfortunately, TradingView doesn't allow labels on plots (seems like such a basic feature to be missing, but there you go), so you'll have to learn the colours/linewidths.
Oh, and there's a checkbox to enable pivots to be calculated on Heiken-Ashi prices/candles rather than default prices/candles. This heavily modifies the location of the Camarilla Pivots, but I've found that in certain situations you can get some great results.
Let me know your thoughts/comments/suggestions.
Cheers
DD
Small candle indicatorI've modified the original script by WiscoDish to show candles as green while they are smaller than the median of the past 10 candles. Once they become larger than the median they'll change to gray.
I've also added a horizontal median line so you can see how close the candle is to the median candle size.
This is very useful if you're stalking a trade and waiting for the candle to close small.
Retrospective Candlestick ChartWhen i was in Japan with some traders colleagues we talked about traditional charting tools from this country and how they changed the way we look at our charts today. Then suddenly one of the japanese traders i have met earlier said "Why not making another charting tool ? Smoother than Heikin-Ashi and including all the information a trader may need but easier to interpret".
So i had the idea of averaging the input and the output of the respective close / open / high and low price using a recursive exponential window functions, each values will be closer to their true value if they are volatile, if they are not then those values will look smoother, the length input represents the reactivity of the candles, high values represents smoother results but less reactive.The goal of those candles is to make all the information easier to interpret by a trader.
500 input length , the price look smoother, supports and resistances are easier to make.
The interpretation of highs and lows are important, the Retrospective Candlestick Chart save you time by showing only huge movements.
Ichimoku Signal + Candle Color + Candle Pattern1. Ichimoku Signal:
Bullish Signal:
- UP-S: A strong bullish signal occurs when the Tenkan Sen crosses from below to above the Kijun Sen and the cross is above the Kumo.
- UP: An neutral bullish signal occurs when the Tenkan Sen crosses from below to above the Kijun Sen and the cross is in the Kumo.
- UP-W: A weak bullish signal occurs when the Tenkan Sen crosses from below to above the Kijun Sen and the cross is bellow the Kumo.
- Fly: A strong bullish signal when Chikou Span raise above the Kumo.
Bearish Signal:
- DN-S: A strong bearish signal occurs when the Tenkan Sen crosses from above to bellow the Kijun Sen and the cross is bellow the Kumo.
- DN: An neutral bearish signal occurs when the Tenkan Sen crosses from above to bellow the Kijun Sen and the cross is in the Kumo.
- DN-W: A weak bearish signal occurs when the Tenkan Sen crosses from above to bellow the Kijun Sen and the cross is above the Kumo.
- Dig: A strong bearish signal when Chikou Span fall bellow the Kumo.
2. Candle Color based on RSI (from NazcaProjections)
- Yellow represents Super OverBought
- Lime Green represents OverBought
- Green represents Slightly OverBought
- Red represents Slightly OverSold
- Dark Red represents OverSold
- Gray White represents Super OverSold
3. Candlestick Patterns Identified: Doji , Evening Star , Morning Star , Shooting Star , Hammer , Inverted Hammer , Bearish Harami, Bullish Harami, Bearish Engulfing , Bullish Engulfing
Heiken Ashi Candles
This is a script to place Heiken Ashi candles on your chart alongside another candle type or more importantly, using the variables from this script, you can build a strategy using Heiken Ashi candles that will depict true/proper entries and exits in a strategy when using the backtest feature.
We hope this helps!
VWAP CandlesTried making candles of Vwap instead of normal price to see if something interesting would happen. Something interesting did happen as you can see.
Looks best in 4h because of reasons unknown. In lower timeframes it looks kinda stupid (moves the same as nrmal vwap). Day or above it looks the same as normal candles.
Gaps seem to work as s/r? or at least I've seen price react to those levels.
I've also seen a vwap reversal candles show (like dojis, pin bar), while price candles look normal. Could potentially give you a reversal warning?
You can also plot indicators like bollinger bands etc on the vwap candles. Just press the little plus.
Min Forrige Daily CandleBruges til at se forrige daily candle. Daily high, low og close. Kan bruges til teknisk analyse.
Heiken Ashi Candles - CustomizableHeiken Ashi Candles – Customizable Overlay
This TradingView indicator displays accurate Heiken Ashi candles directly on your price chart, perfectly synced with TradingView’s built-in Heiken Ashi source. It’s ideal for traders who want to backtest or analyze Heiken Ashi structure without switching chart types. The indicator also includes full customization of candle body and wick colors for both bullish and bearish candles—perfect for tailoring your chart visuals to your preferences.