Swing Reversal IndicatorSwing Reversal Indicator was meant to help identify pivot points on the chart which indicate momentum to buy and sell. The indicator uses 3 main questions to help plot the points:
Criteria
Did price take out yesterday's high or low?
Is today's range bigger than yesterday? (Indicates activity in price)
Is the close in the upper/lower portion of the candle? Thus, indicating momentum in that direction
This indicator was built to help me find pivot points for directional options trading however can be used for equities and forex swing trading and other strategies. Used in conjunction with a BB extreme can provide good setups.
Alerts are available for both the long and the short positions and the indicator will repaint as price moves.
The character Plotted can be changed in the settings
The size of the candle area can be changed as well if you want to tighten/loosen the trigger points based on the third question above.
Candlestick-Analysen
Inside BarThis indicator provides a statistical report on the Inside Bar candlestick pattern. Based on the chart's bars, it can improve your edge on any markets and timeframes.
The Inside Bar pattern refers to a candle that makes a lower high and a higher low.
The report is broken down into the different following sections: retracement , invalidation , continuation and breakout .
Each of them provides hindsights about the pattern price behavior and brings answers to questions such as: How often does price retrace? Does the pattern often invalidate? If it doesn't then does it break in the pattern's direction? How far does price go? What are the odds of a false breakout?
While there are many ways to make use of the metrics, my favorite use case is for developing directional and daily/weekly biases while refining my stop/entry/target positioning.
Miscellaneous
Highlights patterns on the chart;
Supports bar to bar analysis and replay functionalities;
Provides counts on the `Data Window` panel for debugging or computing your own metrics;
Settings
Show/hide for toggling different sections;
Report coloring and offset on the x axis;
Gaining Access
This is a private indicator and is available only for my Patrons. You can reach my Patreon page below from the link in my signature.
CSPDMost Advanced & Accurate CandleStick Pattern Detector
Looking All Over of All Markets for All Important Powerful Reversal | Corrective Patterns (25 type)
Filtering the Results with Optional Features like Oscillator, Bollinger Bands, Volume Confirmation, Prior and Following Candles Confirmation which are Fully Customizable.
With this you can detect:
Hammer | Shooting star
Inverted Hammer | Hanging
Long legged Doji | Dragonfly Doji | Gravestone Doji
Bullish tweezers | Bearish tweezers
Bullish inside bar | Bearish inside bar
Bullish three line strike | Bearish three line strike
Bullish engulfing | Bearish engulfing
Piercing line | Dark cloud cover
Bullish abandoned baby | Bearish abandoned baby
Morning star | Evening star
Three white soldiers | Three black crows
*Bullish kayo | *Bearish kayo
Features:
Prior and Following candles Confirmation
You can set prior and following candle as basic prerequisites for marking candles as pattern to make sure you are at the top or bottom of the trend.
Volume confirmation
You can active volume increasing confirmation for some of pattern with adjustable increase % relative to prior candle | candles.
Oscillator Confirmation
Active oscillator confirmation. Select your approved oscillator from list (Stochastic, RSI, StochRSI, MFI, StochMFI) then enter desired value for marking candles as bullish | bearish pattern.
Bollinger Bands Confirmation
Active BB confirmation. Configure your Bollinger Bands. Now only see the patterns which reached or crossed from Bands. Also you can enable BB clod to have your BB indicator at the same time.
Adjustable Flexibility and Precision
You can set tolerance% for Osc and BB Confirmation - each one separately - for more control.
Self-adaptability
The properties of markets change over time, for example the amplitude of fluctuations and the intensity of movements. The script is designed in such a way that you can examine the price history as a benchmark for changes in market properties to adopt determinants. Also you can control those manually.
Self-regulatory
The user has the ability to change input factors depending on their point of view.
Behind the pattern recognition algorithms, there are relationships and similarities in their appearance that cause them to be influenced by each other. Simultaneously with changing the determining factors of each pattern by you, script automatically adjusts other details in accordance with your changes.
Alerts
You can set for type of pattern or each one of pattern have been detected.
Fully Costumizable
All of these options can be change and adjust.
Note 1.
The patterns are based on extensive study of reference and famous sources and the experience of me and my friends in trading and analysis with price action methods.
Note 2.
Due to the Pine limitations in the number of outputs | plots for each script, our attempt has been made to select the best and most important patterns.
Note 3.
So far, many scripts have been written in this field, but our experience with all of them and even the build in version was not satisfactory, and this was the initial motivation for making the script.
We strive to improve progress and elimination of shortcomings and we will continue to make this better.
Note 4.
Through personal experience and based on the principles of market and candlestick psychology, we discovered a new type of pattern and named it as Kayo.
kayo is a two candle pattern which formed when:
1.We have a pivot point with prior candles as left bars and following candles as right bar. Pivot candle called as second candle.
2.In a bullish kayo, first candle must closed descending and second candle must closed as ascending. For bearish kayo vise versa.
3.In a bullish kayo, second candle's lower wick must be longer then upper wick.
4. A pattern marked as kayo when its conditions do not correspond to any of the other patterns(include the confirmation that user added), ie it has the last naming priority over the other patterns.
Note 5.
When you active confirmation options for patterns like hammer, engulf and etc which they conditions are like kayo in some extent, if they can't pass the confirmation steps, they can be marked as kayo pattern.
Note 6.
If you active volume confirmation for Three white soldiers | Three black crows, the confirmation get passed if the volume of forth or third candle increased as value as entered relative to volume EMA3 of 3 candles.
Note 7.
In a bullish pattern all highs of following candles MUST be higher than prior highs and all lows of following candles MUST be higher than prior lows. For bearish patterns vise versa.
This type of confirmation depends on High and Low NOT close!
Gift to price action lovers!
Support us with your like and comments. let us know your experience, points and idea to make this better together.
Engulfing/Outside BarThis indicator provides a statistical report on the Engulfing/ Outside Bar candlestick pattern. Based on the chart's bars, it can improve your edge on any markets and timeframes.
Knowing there are many definitions about the Engulfing/ Outside Bar pattern, here we're strictly referring to one bar's body engulfing one other AND making a higher high and lower low.
The report is broken down into the different following sections: retracement , invalidation , continuation and breakout .
Each of them provides hindsights about the pattern price behavior and brings answers to questions such as: How often does price retrace? Does the pattern often invalidate? If it doesn't then does it break in the pattern's direction? How far does price go? What are the odds of a false breakout?
While there are many ways to make use of the metrics, my favorite use case is for developing directional and daily/weekly biases while refining my stop/entry/target positioning.
Miscellaneous
Highlights patterns on the chart;
Supports bar to bar analysis and replay functionalities;
Provides counts on the `Data Window` panel for debugging or computing your own metrics;
Settings
Option for filtering patterns that close outside previous bar;
Show/hide for toggling different sections;
Report coloring and offset on the x axis;
Gaining Access
This is a private indicator and is available only for my Patrons. You can reach my Patreon page below from the link in my signature.
Outside BarThis indicator provides a statistical report on the Outside Bar candlestick pattern. Based on the chart's bars, it can improve your edge on any markets and timeframes.
Knowing there are many definitions about the Outside Bar pattern, here we're strictly referring to one bar's extremes beyond one other.
The report is broken down into the different following sections: retracement , invalidation , continuation and breakout .
Each of them provides hindsights about the pattern price behavior and brings answers to questions such as: How often does price retrace? Does the pattern often invalidate? If it doesn't then does it break in the pattern's direction? How far does price go? What are the odds of a false breakout?
While there are many ways to make use of the metrics, my favorite use case is for developing directional and daily/weekly biases while refining my stop/entry/target positioning.
Miscellaneous
Highlights patterns on the chart;
Supports bar to bar analysis and replay functionalities;
Provides counts on the `Data Window` panel for debugging or computing your own metrics;
Settings
Option for filtering patterns that close outside previous bar;
Show/hide for toggling different sections;
Report coloring and offset on the x axis;
Gaining Access
This is a private indicator and is available only for my Patrons. You can reach my Patreon page below from the link in my signature.
Pivot Support / Resistance Finder [JV] Hi Traders,
this is the result of the many feedback messages I received about this first draft of this script. It has significant updates:
The use of Arrays.
Using PineCoders Coding Conventions for Pine: www.pinecoders.com
Display up to 6 Support / Resistance levels.
Line colors and Labels change according to their status (Support or Resistance).
Moved Labels to the future for better overview of the Prices / Levels.
There are many configurable options. Feel free to explore them all.
If you should notice a bug or something of a kind, feel free to contact me.
All feedback is very welcome as well.
Request might be considered but don't take them for granted please.
Pivot Points
Pivot Points are considered to be levels which may become significant levels (Support / Resistance) in the future. They can be interpreted in various ways, but fact is that price, when it comes close to a previous Pivot Point, can mess with your head. Prices often returns to previous Pivot Points, more than once even a few times, as shown below.
I hope you find this useful.
Happy Trading!
Engulfing BarThis indicator provides a statistical report on the Engulfing candlestick pattern. Based on the chart's bars, it can improve your edge on any markets and timeframes.
Knowing there are many definitions about the Engulfing pattern, here we're strictly referring to one bar's body that get engulfed by one other.
The report is broken down into the different following sections: retracement , invalidation , continuation and breakout .
Each of them provides hindsights about the pattern price behavior and brings answers to questions such as: How often does price retrace? Does the pattern often invalidate? If it doesn't then does it break in the pattern's direction? How far does price go? What are the odds of a false breakout?
While there are many ways to make use of the metrics, my favorite use case is for developing directional and daily/weekly biases while refining my stop/entry/target positioning.
Miscellaneous
Highlights patterns on the chart;
Supports bar to bar analysis and replay functionalities;
Provides counts on the `Data Window` panel for debugging or computing your own metrics;
Settings
Option for filtering patterns that close outside previous bar;
Show/hide for toggling different sections;
Report coloring and offset on the x axis;
Gaining Access
This is a private indicator and is available only for my Patrons. You can reach my Patreon page below from the link in my signature.
NSDT Special High-Low CandlesThis is an interesting take on candlesticks. These special High-Low Candles do not show the Open and Close levels, so there are no wicks. However, you still see the the High and Low of the entire candle, giving you the full range.
Since this is an indicator, be sure to hide the chart candles to avoid overlap. Or choose offsetting colors to see the traditional candles under the indicator candles.
[TrustedSignals] Doji ScalperTrustedSignals Dojji Scalper is our most basic trading algorithm. It is based on Candle Patterns that show potential market reversal points.
The script has 3 different types of signals, which can be individually turned on and off:
- Doji signals, based entirely on the Doji candle pattern and 2 Strong and Weak candle reversal patters
As a bonus, we have included RSI based Support and Resistance bands that, if used correctly can further confirm all the entry signals
All chart signals can be set up as live alerts!
Candle Body SizePlot bar size compare to SMA 50 bars back
1. Big Bar Size can be used as Support resistent level.
2. Working fine for futures market
Fat Fingers studyIt often happens that prices moves to fast below or above the previous price levels. A very large wick up or down the candle are formed then.
These wicks are Fat fingers because they are very large in comparison wiith the other wicks.
Fat fingers study is a simple but effective way to detect these fat fingers.
HOW TO USE:
Set the percentage of the wicks for upward movement or downward movement.
Note!
These values are different for each market.
Markets:
It can be used to all markets.
Trendy Bar Trend Color LiteLite version of the original Trendy Bar Trend Color
This will only color the candlestick body of your chart
Can be used with solid, hollow, renko, or any other chart type
Custom coloring for Highs, Lows, and consolidation is removed
10% CandlesThe 10% Candles indicator tags all candles which have a 10% or more gain/loss
gains are calculated based on the open and high for green candles
losses are calculated based on the open and low for red candles
you can change the percentage in settings, default value is 10%. this would be the minimum gain/loss percentage
0.1 => 10%
0.2 => 20%
hover over the triangle to see the actual gain/loss percentage
Aggregate CandlesThis script creates candles based on an aggregated Index price from various exchange tickers. A lot of exchanges have specific flash crash wicks, missing data, erraticness compared to other exchanges particularly in their first few months, this is an attempt to clean up the price history, be it for TA ( trendlines , S/R etc.) or use in algos or other indicators, without reliance on one exchange. It uses the new Array functionality to generate median and averages, and is entirely original work. This particular version is a generic version of the BTC version. Please read the header before use, and if you do wish to use the code, please ask permission first.
Stock Adjustments: None, Splits, DividendsUtilizes Pine Script's built-in function to display trading data without stock splits or dividends adjustments affecting its price.
The three main options are 'none', 'splits', and 'dividends'.
'none' displays the data and stock splits nor dividends affect price.
'splits' accounts for splits without dividends affecting price.
'dividends' accounts for dividends adjustments without splits affecting price.
A stock splits calendar may be viewed at NASDAQ's website here:
www.nasdaq.com
A dividend calendar may be viewed here:
www.nasdaq.com
BAR for VSABars in which the open is equal to the previous close.
Bars are colored according to the indicator Volume on bar VSA - indicator V2
(Made for analysis by ICA ).
Бары в которых открытие равно предыдущему закрытию.
Бары раскрашиваюся согласно индикатору Volume on bar VSA - indicator V2
(Сделано для анализа по ВСА).
Coloring an inside barThis script colors the candles covered in the previous candle. The candle is colored. You can make many adjustments yourself.
Daily GAP StatsI did not write the script from scratch but rather started editing code of an existing one. The original code came from a script called GAP DETECTOR by @Asch-
First up: I am a trader, not a programmer and therefore my code most likely is inefficient. If someone with more expertise would like to help and optimize it - feel free to get in touch, I am always happy to learn some new tricks. :)
This script does 2 things:
- It shows daily gaps stats based on user inputs
- It shows color coded labels on gap days with additional information in tooltips ( important: make sure to read 'known issues/limitations' at the end )
User Inputs
==========
Although the input dialog is pretty straight forward, I do a quick rundown:
- Length: max lookback time
- Gap Direction: self explanatory
- Show All Gaps | Cont Only | Reversal Only | Off:
This refers to the way labels are displayed on gap days (again: make sure to read known issues/limitations!)
- Show All Gaps: does what it says
- Cont Only: only shows gaps where price continued in the gap direction. If you filter for gap ups and chose 'Cont only' you will only see labels on gap days where price closed above the open (and vice versa if you scan for gap downs).
- Reversal Only: you will only see labels for closes below the open on gap up days (and the opposite on gap down days)
- Off: self explanatory
- Gap Measure in ATR/PCT: self explanatory, ATR is calculated over a 10d period
- Gap Size (Abs Values): no negative values allowed here. If you filter for gap downs and enter 3 it means it will show gaps where the stock fell more than 3 ATR/PCT on the open.
- RVOL Factor: along with significant gaps should come significant volume. RVOL = volume of the gap day / 20d average volume
- Viewing Options: Placing the stats label in the window is a bit tricky (see knonw issues/limitations) and I was not sure which way I liked better. See for yourself what works best for you.
Known Isusses/Limitations:
=======================
- Positioning of the stats table:
As to my knowledge, Tradingview only allows label positioning relative to price and not relative to the chart window. I tried to always display the gap stats table in the upper right corner, using 52wk high as y-coordinate. This works ok most of the time, but is not pretty. If anybody has some fancy way to tag the label in a fixed position, please get in touch.
- Max number of labels per script:
TradingView has a limitation that allows a maxium of ~50 labels per script. If there are more labels, TradingView will automatically cut the oldest ones, without any notification. I have found this behaviour to be rather inconsistent - sometimes it'll dump labels even if there are a lot fewer than 50. Hopefully TradingView will drop this limitation at one point in the future.
Important: The inconsistent display of the gap day labels has NO INFLUENCE on the calculations in the gap stats table - the count and the calculations are complete and correct!
Pivot Support and Resistance Finder [JV] V2Dear Traders,
This script is a follow-up to my previous Pivot Support and Resistance Finder.
After so many positive feedback, for which I thank you all, I started rebuilding it to implement some requested features.
The biggest change is that by default, the indicator now shows zones instead of lines.
Support Zone: from low to close
Resistance Zone: from close to high
I removed the 5 lines, instead showing the most recent levels and the forming (fast) levels.
However, if you change the occurrence in the options, you can still see previous levels:
0 = Current Level
1 = Previous Level
2 = Level before the Previous Level
...
More important configurable options:
Pivot Length
Pivot Quick Length (used to draw forming levels
Option to draw using bar closes, wicks or both (area)
Hide / Display to forming level
Show past levels.
I hope this is clear enough.
For any questions, remarks, suggestions, feel free to contact me.
Happy Trading!
Multi Price Action & Candlestick Patterns - Horizontals R/SNote:
This is a script that synthesizes a number of popular price action and candlestick patterns along with a trading strategy based on horizontal support and resistance. Scripts are used for learning and research purposes.
Useage:
Support and resistance are two important areas in Price Action analysis and trading. After confirming the support and resistance zone line, waiting to confirm the appropriate candlestick pattern and execute the trade, set a reasonable stop loss and take profit, This is critical for compliance with your money management rules.
Notation:
In the script, price action and candlestick pattern are denoted as follows:
- Bullish Engulfing (BU) & Bearish Engulfing (BE)
- Hammer (HM)
- Hanging Man (MM)
- Morning Star (MS)
- Evening Star (ES)
- Tweezer Top (TZT)
- Tweezer Bottom (TZB)
- Shooting Star (SS)
- Bullish Pinbar (PBBBU) & Bearish Pinbar (PBBE)
- Doji Gravestone (GS)
- Doji Dragonfly (DF)
- Doji - Long legged (LL)
- Spinning Top (ST)
Settings:
- Number of left candle to compare lowest/highest: Compare the high/low price of the current candle with the highest/lowest price of previous candles.
- Number of left candle to calc avg body: Compare the average price of the current candle with the average price of previous candles
- S/R Left Bars: The number of bars left hand side of the Pivot
- S/R Right Bars: The number of bars right hand side of the Pivot
- S/R Volume Threshold - The threshold value (%) for the volume oscillator
The code is open and commented - please feel free to use, share, comment & provide feedback.
Good luck!
Feel free to get indicator or strategy trading signals at yummyprofit.
Doji swing strategyThis is a simple strategy based on Doji star candlestick
This strategy is suited for big time frames, like 4h -1Day and so on.
It places two orders: long at doji star high or previous candle high and short at doji star low or previous candle low.
It can also be applied volume average, in order to filter between trades .
This strategy works very well with high time frames like Weekly TF because it eliminates the noise in doji formation.
It also has inside a risk management made of SL/TP , or if not prefered it can exit based on a exit condition.
If you have any questions, please let me know !
Pinescript v4 - The Holy Grail (Trailing Stop)After studying several other scripts, I believe I have found the Holy Grail! (Or perhaps I've just found a bug with Tradingview's Pinescript v4 language) Anyhow, I'm publishing this script in the hope that someone smarter than myself could shed some light on the fact that adding a trailing stop to any strategy seems to make it miraculously...no that's an understatement...incredulously, stupendously, mind-bendingly profitable. I'm talking about INSANE profit factors, higher than 200x, with drawdowns of <10%. Sounds too good to be true? Maybe it is...or you could hook it up to your LIVE broker, and pray it doesn't explode. This is an upgraded version of my original Pin Bar Strategy.
Recommended Chart Settings:
Asset Class: Forex
Time Frame: H1
Long Entry Conditions:
a) Exponential Moving Average Fan up trend
b) Presence of a Bullish Pin Bar
c) Pin Bar pierces the Exponential Moving Average Fan
Short Entry Conditions:
a) Exponential Moving Average down trend
b) Presence of a Bearish Pin Bar
c) Pin Bar pierces the Exponential Moving Average Fan
Exit Conditions:
a) Trailing stop is hit
b) Moving Averages cross-back (optional)
c) It's the weekend
Default Robot Settings:
Equity Risk (%): 3 //how much account balance to risk per trade
Stop Loss (x*ATR, Float): 0.5 //stoploss = x * ATR, you can change x
Stop Loss Trail Points (Pips): 1 //the magic sauce, not sure how this works
Stop Loss Trail Offset (Pips): 1 //the magic sauce, not sure how this works
Slow SMA (Period): 50 //slow moving average period
Medium EMA (Period): 18 //medium exponential moving average period
Fast EMA (Period): 6 //fast exponential moving average period
ATR (Period): 14 // average true range period
Cancel Entry After X Bars (Period): 3 //cancel the order after x bars not triggered, you can change x
Backtest Results (2019 to 2020, H1, Default Settings):
AUDUSD - 1604% profit, 239.6 profit factor, 4.9% drawdown (INSANE)
NZDUSD - 1688.7% profit, 100.3 profit factor, 2.5% drawdown
GBPUSD - 1168.8% profit, 98.7 profit factor, 0% drawdown
USDJPY - 900.7% profit, 93.7 profit factor, 4.9% drawdown
USDCAD - 819% profit, 31.7 profit factor, 8.1% drawdown
EURUSD - 685.6% profit, 26.8 profit factor, 5.9% drawdown
USDCHF - 1008% profit, 18.7 profit factor, 8.6% drawdown
GBPJPY - 1173.4% profit, 16.1 profit factor, 7.9% drawdown
EURAUD - 613.3% profit, 14.4 profit factor, 9.8% drawdown
AUDJPY - 1619% profit, 11.26 profit factor, 9.1% drawdown
EURJPY - 897.2% profit, 6 profit factor, 13.8% drawdown
EURGBP - 608.9% profit, 5.3 profit factor, 9.8% drawdown (NOT TOO SHABBY)
As you can clearly see above, this forex robot is projected by the Tradingview backtester to be INSANELY profitable for all common forex pairs. So what was the difference between this strategy and my previous strategies? Check my code and look for "trail_points" and "trail_offset"; you can even look them up in the PineScript v4 documentation. They specify a trailing stop as the exit condition, which automatically closes the trade if price reverses against you.
I however suspect that the backtester is not properly calculating intra-bar price movement, and is using a simplified model. With this simplfied approach, the trailing stop code becomes some sort of "holy grail" generator, making every trade entered profitable.
Risk Warning:
This is a forex trading strategy that involves high risk of equity loss, and backtest performance will not equal future results. You agree to use this script at your own risk.
Hint:
To get more realistic results, and *maybe* overcome the intrabar simulation error, change the settings to: "Stop Loss Trail Points (pips)": 100
I am not sure if this eradicates the bug, but the entries and exits look more proper, and the profit factors are more believable.
Bullflag Candlestick pattern
A bull flag is essentially a small consolidation near the top of an upthrust. If we picture it as a candlestick pattern, it should have a big green candlestick + a small body red/green candle near the top of the top big green candle.
This script essentially help you identify these.