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.
Analyse en chandelier
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.
NSDT Institution Trading ZoneA simple script that adds background color to highlight the Institutional Trading Hours during the USA market (8am-4pm Eastern). Timeframes and colors can be modified as needed.
Pivot Support and Resistance Finder [JV] V1Hi Traders.
This is my first attempt of writing an indicator.
Let me start by saying I could never have done this without lmatl and WMX_Q_System_Trading who were and are an incredible source of inspiration.
This indicator shows horizontal Pivot Support and Resistance . It draws up to 4 horizontal lines extending to the right from and adds labels to High and Low Pivot Candles . It also draws the Support / Resistance that is currently forming.
You can select the number of lines on the current timeframe.
There are some options in Settings:
Current timeframe pivot settings
Show and hide levels of the current timeframe
Change colors
Extend Lines
Any suggestions are more than welcome!
I also welcome donations, no matter how small ;-)
Aggregate BTC CandlesThis script creates candles based on an aggregated Index price from various BTC exchange tickers. Since the early years in particular have a lot of exchange 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.
Heikin Ashi Candles - Actual CloseHeikin Ashi Candles - Actual Close is a simple script that instead of displaying Heikin Ashi Close it displays the actual close.
This script is a handy tool for anyone that wants to use Heikin Ashi candles that displays the real close. The coloring of the candles is still based on the Heikin Ashi calculations.
Enjoy.
Renko Bar ChangeI realized it's not in the TV Library so I think it's mandatory to add.
If you wish to access and use for yourself contact me - I reply on Average in less than 4 hours on a 60 day period.
---
Renko Bar Change Indicator Documentation:
Renko Parameters:
Set Box Size either via ATR or your own Float-Value after choosing the correct Renko Style-Option.
Both Renko Style Options are self-explanatory.
Alerts and Plots:
1) Green arrow visualizing a green Renko bar after a red Renko bar
2) Red arrow visualizing a red Renko bar after a green Renko bar
3) Alert for green Renko Bar after red Renko Bar
4) Alert for red Renko Bar after green Renko Bar
RogTrader Bull Bear StrengthsSimplified Bull/Bear Strengths Indicator uses price action, volume flow, and candlesticks to calculate bull and bear strengths, also known as buying and selling pressures.
Green/Red Volume Bars can be misleading at times
This indicator shows the net bull/bear power
Recommended to be used in combination with indicators to find reversal signals.
For example, during an uptrend, a long red bar indicates that strong selloff has started, and bears begin to control the bargains.
[SCL] Better Heikin AshiTo display the Heikin Ashi candle direction on your normal chart, using this script is better than switching between layouts. It includes different display modes so that you can use it alongside other indicators without clashing visually (bar colour/plotted shapes/shapes on flip only), and alerts on changes in direction. Many scripts include some or other of these features; here I've included them all in one for flexibility. One feature that AFAIK is unique is the "predictive close", which shows you where the current candle needs to close in order to change the Heikin Ashi direction.
Heikin Ashi is a different method of calculating candlesticks. It has several advantages:
+ It can help to show the dominant trend in a smoother way than normal candles.
+ Flips in direction can show either trend reversal, or a pause and continuation, which can be a place to join a trend.
Disadvantages of using Heikin Ashi include:
+ Having to change to a different chart layout
+ Difficulties working directly with Heikin Ashi values, because the values of the Open, Low, High, and Close displayed are different to the "real" prices.
This indicator solves this problem by bringing trend information from Heikin Ashi candles (whether they're bullish or bearish) onto your normal candle chart. It displays in the main chart pane.
Renko MTF - Traditional and ATRSomehow there aren't too many renko bars that have the traditional setting built-in so I put one up. This one has the option to choose between Traditional and ATR, the size number corresponds to the option that was chosen. And just in case if anyone wanted, I put up a multi-time frame option to choose the time frame the bars take place. D is for day, W is for week, flat numbers are in minutes, and leaving it blank looks at the current time frame the chart is in. The calculation comes from how Tradingview handles renko bars.
Renko bars don't paint a color unless the market moves a certain amount based on its settings. When the market moves up it turns green, if it moves down it turns red, simple color changes alone can say a lot. They're a good way to try to find trends somewhat objectively and seem to be a good way to eliminate time and can replace other time-based indicators that can whipsaw or lag. The bars have a tendency to repeat themselves so it's a good way to find trends. There aren't too many settings for the box size, most people either just choose 5, 10, 14, etc where as other indicators have many options that differ on different markets. The numbers can be chosen easily enough to pick a sweet spot with just a single input where other indicators such as MACD have multiple inputs to pick the right number that can make it difficult to choose from(although it won't be as precise as a MACD would sometimes but can be worth the objectiveness and consistency and same setting repeatability in different markets in my opinion). Some example strategies could be to use them as an alternative trailing stop, finding trends, a simple color change for entry and exit on top of other strategies, etc. It can do the job of many in an all in one price action type indicator(although not better all the time, it can come close enough). Despite all this, it does seem to depend on which time-frame it's being looked at, how TV does the calculation for it, and how one can use this with the lack of practical information on it out there.
Bitcoin Bullish Percent IndexHello Traders,
This is Bitcoin Bullish Percent Index script. First lets talk about what the Bullish Percent Index and how it is calculated:
"The Bullish Percent Index (BPI) is a breadth indicator based on the number of securities on Point & Figure Buy Signals, Developed by Abe Cohen in the mid-1950s. Because a security is either on a P&F Buy or Sell Signal, there is no ambiguity when it comes to P&F charts. This makes BPI a straightforward indicator with clearly defined signals."
The calculation is straightforward and simple: (Number of securities on P&F Buy signals) / (Total number of securities)
Here you can see what the P&F buy signal is:
In this script I choose 40 cryptos that is correlated ( as I see ) with BTC (including BtcUsdt). in the first part the script creates P&F chart for each security and check if there is Buy or Sell signal and sum the buy signals if there is. in the second part it creates P&F chart by using the P&F buy/sell signals coming from the securities P&F chart. because of complicated calculation the script may need a few seconds to load.
in the first part reversal value is 3 by default but you can set different values as reversal. sometimes I got better results with reversal = 5.
in BPI part reversal = 3 is used. so each box represents 2% (each X or O is a box). And this means it takes at least a 6% move in BPI for a reversal. the Bullish Percent Index favors the bulls when above 50% and the bears when below 50%. The bulls have the edge when over 50% of stocks are on a P&F Buy Signal. BPI is also considered overbought when above 70% and oversold when below 30%. BPI can move between 0 and 100.
Because of 40 securities are used in the script and all different prices, it uses Percentage scaling only. it can calculate the Percentage automatically by using the time frame of the chart or you can set it as you wish.
The Signals coming from BPI:
Bull Alert: BPI is below 30% and then forms a new column of X's (rises)
Bear Alert: BPI is above 70% and then forms a new column of O's that decline below 70%.
Bull Confirmed: BPI is on a P&F buy signal and in a column of X's (rising).
Bear Confirmed: BPI is on a P&F sell signal and in a column of O's (falling).
Bull Correction: BPI is on a P&F buy signal, but currently falling (column of O's).
Bear Correction: BPI is on a P&F sell signal, but currently rising (column of X's).
If you are not familiar with Bullish Percent Index you better search it on the net to get more info, you can find a lot of articles and web sites about BPI.
as I remember I developed the script 6-7 months ago and today I had chance to publish it as it was
Enjoy!
Strat Signal Scanner (5/15/30/60/D) Highlight Add-onStrat Signal Scanner (5/15/30/60/D) - Part 1 Highlight Add-on with Outside Bar Warning Indicator Info
Must be used with the “Strat Signal Scanner (5/15/30/60/D) - Part 1” Indicator only.
Two functions:
1. Add’s the current Candle color to each Timeframe box (Green or Red).
2. Possible Outside Bar Warning when a 2 Bar appears to be failing (Amber Box).
Amber Box - Outside Bar Warning Trigger Conditions:
- a 2UP Red Bar falls >60%* of previous candles range (High to Low).
- a 2DOWN Green Bar rises >60%* of previous candles range (Low to High).
*Customise previous candles range % within Indicator settings.
How to use:
- Add Indicator to chart
- click More (3 dots next to indicator settings)
- click Move - Exisiting pane above.
- Move the Highlight Indicator to line up with the Part 1 Indicator and make sure its in the background to prevent blocking the Part 1 indicator boxes.
- Open Highlight Indicator settings to adjust % if required.
Strat Signal Scanner (60/D/W/M/Q) Highlight Add-onStrat Signal Scanner (60/D/W/M/Q) - Part 1 Highlight Add-on with Outside Bar Warning Indicator Info
Must be used with the “Strat Signal Scanner (60/D/W/M/Q) - Part 1” Indicator only.
Two functions:
1. Add’s the current Candle color to each Timeframe box (Green or Red).
2. Possible Outside Bar Warning when a 2 Bar appears to be failing (Amber Box).
Amber Box - Outside Bar Warning Trigger Conditions:
a 2UP Red Bar falls >60%* of previous candles range (High to Low).
a 2DOWN Green Bar rises >60%* of previous candles range (Low to High).
*Customise previous candles range % within Indicator settings.
How to use:
- Add Indicator to chart
- click More (3 dots next to indicator settings)
- click Move - Exisiting pane above.
- Move the Highlight Indicator to line up with the Part 1 Indicator and make sure its in the background to prevent blocking the Part 1 indicator boxes.
- Open Highlight Indicator settings to adjust % if required.
Jackrabbit.modulus.TrailingThis is a full, true, and pure implementation of trailing buy/sell for the Jackrabbit suite and modulus framework.
This module is not a standalone and relies on previous modules to send a signal data in order to function properly. This module acts on buy and sell data from within the indicator on indicator framework that TradingView supports.
This module adds the ability to trail a buying position to its lowest value or if it breaks a retracement percentage (user defined). It also allows trailing a sell position with an user defined retracement. It can managing buy and selling or just buying or selling.
This module does NOT allow accumulation during the trailing process. If a buy signal is received while the module is already trailing a previous position, if the price is lower then the previous position, the current position is used, otherwise it is ignored. The same holds true for selling. Once the position is bought, accumulation will resume as normal for the next position.
The chart displays (for both buying and selling):
The current price, its retracement value, and the original price.
Note that the buy or sell does NOT actually take place until the price action crosses retracement.
The Jackrabbit modulus framework is a plug in play paradigm built to operate through TradingView's indicator on indicatior (IoI) functionality. As such, this script receives a signal line from the previous script in the IoI chain, and evaluates the buy/sell signals appropriate to the current analysis.
This script is by invitation only. To learn more about accessing this script, please see my signature or send me a PM. Thank you.
CCL Blue Chip Swap Argentina (Contado con liqui)CCL Blue Chip Swap
in spanish: Contado Con Liqui
This indicator shows color bars graph about the CCL price , this is calculated with 5 Argentine tickers that have ADRs (tikers) in USA market. These are GGAL BMA YPFD PAMP BBAR .
: Este indicador muestra un grafico de barras de color del precio de CCL Contado con Liqui.
: El CCL se calcula en base al promedio de 5 activos con ADR : GGAL BMA YPFD PAMP BBAR