Noski - Rob Hoffman_Inventory Retracement BarStrategy taken directly from Rob Hoffman's award winning strategy. Full credit goes to him
Uses the average angle of the ema over the last 20 bars, in combination with Inventory retracement bars (candles that have retraced at least 45%)
(Please note: the angle calculation default value is calibrated for BTCUSD. There is no way currently to code it to be used across multiple pairs. The price to bar ratio has to be adjusted for other trading pairs. Please research price to bar ratio if unfamiliar)
ATR has been included to set take profit and stop loss.
Separate ATR settings for filtering the size of IRB (can filter out candles which are too large or small)
Red background colour is for when ema is at or below the set -ve angle slope. Green is for positive angle. Default is set at -45 and 45 degrees.
Big thankyou to ZenAndTheArtOfTrading and the following two scripts.
Cosmic Angle - by cosmic_indicators
Rob Hoffman's Inventory Retracement Bar - by ucsgears
Code was borrowed and used directly from these scripts
在腳本中搜尋"bar"
Capeya Bar ColorColor bars based on price and volume.
Volume can be set dollar denominated.
Change can be set close to close.
Volume can meet a threshold.
Color is bullish if the change is positive & bar's volume is greater than previous bar's volume.
Color is bearish if the change is negative & bar's volume is greater than previous bar's volume.
TEWY - Breadth Based Bar ColorNSE:BANKNIFTY1!
⚠ Important: Before going into details of this script, in order to best use this indicator it is VERY VERY important to make some changes to the chart settings as mentioned below.
• REMOVE CANDLE BORDERS from Symbol settings
• CHANGE WICK COLOR to white/black/gray based on the chart theme you use, from Symbol settings
Make sure you have these settings done.
Detail about this indicator
1. This indicator is used to identify the trend based on the momentum of the counter selected.
2. This indicator is calculated differently for indices NSE:NIFTY and NSE:BANKNIFTY. As I take high weightage stock under these indices to get overall indices momentum.
3. I have used the rate of change and RSI of it to calculate momentum.
4. I would typically use this indicator to see momentum on the Monthly and Weekly first and daily timeframe to get proper entry.
5. Also please try to stay in the long position more than the short position as we all know that, the imminent nature of the market is to go upward only.
6. Please try to keep base inputs as defaults, though it allows you to change input parameters like changing the length of momentum indicator or bar color options. Below is the description of each input
• Smoothen: It changes source from CLOSE to OHLC4.
• Signal Length: It's the length(no of candles) for which the momentum is calculated. Like for RSI the default period/length is 14 or for Moving Average indicator default period/length is 9, I simply use 20 as the default length
• Timeframe: If you want to calculate momentum based on the momentum of different time frames.
• Change bar Color: Use the toggle to change the color of the bar. You can uncheck it so that no bar color is changed if you need so
• Set Bar Color Dynamically: With this even though the oscillator is in opposite direction to the trend it takes the candle close into consideration and sets bar color accordingly.
Always respect RISKS and follow stop loss.
Let's understand how to take a position using this indicator
• Long position:-
• If the latest candle color is GREEN and its preceding candle color is RED, then go long in the counter with the strict stop loss(SL) 1% below the preceding RED colored candle.
• Once you are in a long position, trail stop loss(SL) below each red candle you see on the chart.
• Exit strictly if initial SL or trailing SL is hit. And re-create long positions once you see the next green candle.
• Short Position:-
• If the latest candle color is RED and its preceding candle color is GREEN, then go short IF RED COLORED CANDLE LOW IS TAKEN OUT. Exit short once you see a green colored candle.
• Exit strictly if you see a GREEN-colored candle and create a long position.
If you are really interested and need access to this indicator please DM me.
I have given a sample illustrational image below, which should help you understand this indicator.
Best of luck
Elder's Force Index Color BarBased on the Elder's Force Index (EFI) , +/- of the EFI and its ema is used to describe the rise, fall or possible reversal of the market, and finally shown by bar color.
The green bar represents a strong bull and the red bar represents a strong bear;
The blue bar indicates that the downtrend is exhausted and may rise. Likewise the yellow bar.
Of course, it is difficult to buy the bottom and sell the top at any time. This indicator needs to be judged together with the pattern or other indicators that predict reversals in order to increase the win rate.
Happy Trading.
根据Elder's Force Index修改而成,取消了幅图指标,仅用bar color来表现上涨,下跌和转折。
绿色k线代表上涨动能充足,红色k线表示下跌动能充足;
蓝色k线表示下跌力竭,可能会上涨;
黄色k线表示上涨力竭,可能会下跌。
当然,任何时候抄底摸顶都是困难的,该指标需要和形态或者其他预测反转的指标一起判断才能增加成功率。
祝交易愉快。
緑は上昇トレンドで、赤は下落トレンドです;
青は下落が尽きて上昇する可能性があることを示すことで、黄色は上昇が終わり、下落の可能性があることを示しています。
成功率を高めるためには、パターンや反転を予測する他の指標と合わせて判断する必要があります。
Happy Trading。
LibraryCheckNthBarLibrary "LibraryCheckNthBar"
TODO: add library description here
canwestart(UTC, prd) this function can be used if current bar is in last Nth bar
Parameters:
UTC : is UTC of the chart
prd : is the length of last Nth bar
Returns: true if the current bar is in N bar
Market Delta Volume for Realtime BarsWhat is it?
Market Delta Volume Tool for real-time bars
A market delta tool that shows, (1) the volume that got transacted on upticks - or the market buy volume; (2) the volume that got transacted on downticks - or the market sell volume (3) the market delta volume (i.e., market buy volume - market sell volume); (4) the total volume (market buy volume + market sell volume + neutral volume); and (4) the volume that got transacted without a change in price - or the neutral volume (total volume = market buy volume + market sell volume + neutral volume)
NOTE: THIS WORKS ONLY ON REAL-TIME BARS, NOT ON HISTORICAL BARS! The dotted line marks the start of real-time data (i.e., the bar from which the indicator started collecting and displaying data). You will see accurate data only for bars to the right of this line.
The longer you keep a chart open with the study enabled, the more data it collects and displays and the better your analysis can potentially be.
Note that the data gets reset every time any of the options is changed, the market is switched, the browser is refreshed, or the script is reloaded.
DATA ISN'T STORED. I.e., every time a new symbol is loaded/or the same symbol is reloaded, data gets refreshed.
Who is it for?
For traders who are used to analyzing buy/sell activity using market delta information. Especially, short-term trader/scalpers who are used to keeping the same chart open through the trading session.
Also for traders to see and study how anomalies in volume can give clues to buyer/seller absorption, initiative buying/selling etc.
Can be used to better understand VSA as well, although not necessary.
Essentially, this gives real-time delta volume information; use it however you see fit.
Narrowest N BarsThe indicator is inspired by Toby Crabel's work.
Originally 2-Bar NR pattern is defined as the narrowest range from high to low of any two day period relative to any two day period within the previous 20 market days.
However, this script allows user to look for N Bar narrowest range within user defined numbers of previous days
Settings are as follows:
1. N Bars - sets number of bars in range
2. Lookback period is self-descriptive)
The last bar in the narrowest range is marked with N
ATR Volatility Bars 1.0This script will be featured in upcoming video ideas about catching liquidations spikes in cryptocurrencies.
The script measures the unique size of each bar compared to the Average True Range (ATR) of the evaluation period. The evaluation period can be set in the inputs. The desired benchmark for what will be highlighted is also set in the inputs as a percentage. The default settings are to evaluate the last 26 bars for ATR and highlight bars that are 300% or larger than ATR.
When a bar meets the criteria of the indicator it will show a label and highlight the bar accordingly. The user may select the indicator to only show Buy or Sell opportunities. The indicator has alert functionality.
Double Inside BarThis indicator provides a statistical report on the Double Inside Bar pattern. Based on the chart's bars, it can improve your edge on any markets and timeframes.
A Double Inside Bar refers to a contraction where price is consolidating while making consecutive lower highs and a higher lows.
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.
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.
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.
Equivolume BarsEquivolume bars. Width is determined by volume. Please note that equivolume bars are rendered independently of the time scale.
Makes use of @LonesomeTheBlue's "Start the Script on Last Nth Bar" in order to prevent time out. As such you are only able to view the most recent bars and no bar replay beyond that range.
Trail with Bar Time [NBL]Hello Everyone its Trailing stop loss Indicator with Bar Time if you want to Trail Your position with Specific Bar or time You can also Trail. Basically, its indicator we are using automation Trading
How to work its indicator?
➤ if you want to Trail Your Position according to Specific Bar or time
Indicator Feature
➤ Long Side TSL hit With Alerts
➤ Short Side TSL hit With Alerts
➤ Both Side TSL hit With Alerts
➤ You can also Select Specific Bar
➤ You Can Also add Trailing with Percentage or Point
➤ You Can Also Select Trailing calculate Bar Source Like Open, Close, High, Low etc More.
Important: This Indicator we are using for Automation Trading if You Want This Indicator Access Please Contact me PM on Tradingview
Start the Script on Last Nth Bar [Experimental]Hello Pine Scripters,
Sometimes we need to run some processes in the scripts on last N bar but currently we don't know bar_index value of realtime bar or number of remaining bars before we reached it. So most of us use "start date" as input and run some processes after "start date".
This experimental script finds last Nth bar approximately. As you can see in the script we (should) use GMT, otherwise as I see the result might not be accurate (we don't know timezone used on the chart)
The idea is to find/use similar bar in the past (using timenow as reference) and then calculate aproximate the time of last Nth bar. the results may not be accurate all the time, also we can not know local holidays etc.
At the moment the script works on 1minute or higher time frames (it won't work on less 1min timeframes)
In the future if the Pine Team add something like "bar_index_realtime" then we will not need such things. by the way many thanks to Pine Team, they are doing great job.
You can use this script in your scripts as you want, no need to ask permission. If you can improve it let me know ;)
Enjoy!
3 Bar Triangle Breakout////Current bar's High is less than the 3rd bar's High///
/// and Current bar's Low to be higher the 3rd bar's Low.////
////This then predicts the market might breakout to new levels ////
///within 2-3 of the next coming bars///
////Entry occurs when have two inside days and close break candle three high or low//
//If need more information recommend google search/////
I have coded when candle conducts breakout the formation above is the setup criteria !!
Hide Extended Hours/non-intraday American BarsOnly works with American bar style.
Not works with Candles.
--------
This script can hide the extended hours/non-intraday bars and leave the intraday bars only, especially for future users, such as ES/NQ/RTY/YM, etc.,.
Now you can find the intraday support/resistance quite easily!
Example, as a ES investor, you can easily find the intraday support/resistance level ,which is almost equal to SPY / SPX , no longer need to check SPY / SPX separately again, saving your time a lot.
--------
IMPORTANT INSTRUCTION
In order to make the script work, you have to bring it to the most top visual layer.
Please do as the following steps:
Add the script to chart
Hover mouse on the script name, and tap the right-most 'more' button (which appears as 3 dots)
Select "Visual Order", then select "Bring to front".
Done!
Also, in order to have a better view effect and make the bars COMPLETELY "Hidden", you can adjust the hidden bar color in the "setting" menu to the exact color of your chart background.
PowerX Strategy Bar Coloring [OFFICIAL VERSION]This script colors the bars according to the PowerX Strategy by Markus Heitkoetter:
The PowerX Strategy uses 3 indicators:
- RSI (7)
- Stochastics (14, 3, 3)
- MACD (12, 26 , 9)
The bars are colored GREEN if...
1.) The RSI (7) is above 50 AND
2.) The Stochastic (14, 3, 3) is above 50 AND
3.) The MACD (12, 26, 9) is above its Moving Average, i.e. MACD Histogram is positive.
The bars are colored RED if...
1.) The RSI (7) is below 50 AND
2.) The Stochastic (14, 3, 3) is below 50 AND
3.) The MACD (12, 26, 9) is below its Moving Average, i.e. MACD Histogram is negative.
If only 2 of these 3 conditions are met, then the bars are black (default color)
We highly recommend plotting the indicators mentioned above on your chart, too, so that you can see when bars are getting close to being "RED" or "GREEN", e.g. RSI is getting close to the 50 line.
Trend Following BarWhile analysing a chart, one of the biggest problem is to see if there is trend or not. While thinking about it, I found the idea to analyse moving averages in channel and their momentum according to channel width.
How it Works?
On each bar it creates a channel by highest/lowest point of a MA. highest point is upper line and lowest point is lower line of the MA channel,
It gets highest and lowest point of last 300 bars, (say Price Channel)
If the width of MA channel is greater than certain rate of price channel then it decides there is trend
After it decided there is trend, it calculates the rate between channel and MA. Bigger result means stronger trend.
According to rate of MA channel and the price channel, bar color becomes lighter/darker. so when you look at the bar color you can see the trend strength.
Some details about my idea:
Options:
You can choose following MA types as source: EMA, SMA, RMA, WMA, VWMA
"Period to Check Trend" is the period to create MA channel. Bigger period cause more sensitivity.
"Trend Channel Rate %" is rate of price channel. Price channel created by using highest/lowest of last 300 bars. I did this to make the script works on all time frames correctly.
"Use Linear Regression" is used to get rid of noise. it may cause 1-2 bars latency.
All comments are welcome!.
Enjoy!
Elephant Bar by Oliver VelezThis script detects an event created by Oliver Velez, basically it is a wide-range candle, its range is noticeably larger than the previous candles, this event indicates a possible continuation of the movement, or the beginning of an extended movement. The candle has to be of good body, as a rule it can be taken that the body must be more than 70%. The stop goes below the minimum of the candle and the signal is given when the next candle followed by the elephant candle exceeds its body, this condition is not programmed so that the alert indicates that an elephant candle was generated and the trader has some time to visualize the graph and wait for the signal. Example below:
NOTE: IT IS VERY IMPORTANT THAT THE TRADER ANALYZE THE CONTEXT OF THE MARKET WHERE THE ELEPHANT BAR IS GENERATED AND DETERMINE ACCORDING TO ITS EXPERIENCE IF THE EVENT HAS A GOOD PROBABILITY OF PROJECTION, YOU MUST NOT TAKE AN ENTRY ONLY BY THIS EVENT, IF YOU DO YOU WILL LOSE ALL YOUR MONEY
.
One of the problems of the elephant bar is that it generates a fairly wide risk unit with respect to other narrow range events, so the risk / benefit ratio is not very large, but it is an event that deserves attention when it occurs in a good location since it generally generates continuation.
If you want to have a lower risk unit and improve the risk / benefit ratio, you can play the “Gift Zone”, when detecting an elephant bar you can wait for a step back inside the elephant bar area and take a position, this will give you a less distance to the stop, but this can lead to the event escaping if there is no recoil.
- The size of the candle is determined by comparing a range of previous candles (you can set the amount at your discretion)
- Search factor: by default 1.3, this means that all bars that have a range greater than the average range of previous candles + 30%, are considered elephant candles (can be configured at your discretion)
- Possibility to configure the percentage of the body that the elephant candle must have.
- Possibility of filtering up to 2 means with direction detection and color change (fully configurable)
- Possibility of filtering by mobile averages
- Alerts
- Additional features
Thumb up if you liked me ..
ATR Squeeze Identifier + Last-Bar TR Stops1) Paints two lines based on previous bar's true range, has option for custom multiplier to make stop a factor of previous bar's TR. Used for quick identification of stop loss placement based on previous bar set-ups.
2) Identifies bar on close which has true range that is smaller than a period-chosen ATR criteria. Additionally, has an input for a raw "ATR Shave" which is used to narrow down bars with even smaller true range. Mostly used to identify potential entry zones where market is being squeezed, and expansion is likely to follow. Plots a character under the bar.
3) Identifies a close which includes and follows 5 consecutive closes which all exhibit smaller than average ATR. Includes customize-able ATR length and "ATR Shave" to narrow down tighter range's. Paints circle at bottom of chart. Mostly used to identify when market has been 'quiet' for some time and entries should be considered for likely expansion.
Inside Bar and Outside Bar Simple indicator, to show outside bars and inside bars
inside sellbar = "I" in red color
inside buybar = "I" in green color
Outside sellbar = "O" in red color
Outside buybar = "O" in green color
----------//---------------
PT-BR
Indicador simples, para mostrar outside bars e inside bars
inside sellbar = "I" na cor vermelha
inside buybar = "I" na cor verde
Outside sellbar = "O" na cor vermelha
Outside buybar = "O" na cor verde
ck - Inner Bars Indicator with Alerts and Trailing Stop v1*** Please check out the matching Strategy to accompany this Indicator to allow you to fully backtest! ***
Inner Bar trading strategy is where the "inside" bar (or candle to the right) within a pair is smaller and within the high to low range of the prior bar, as this pattern tends to be somewhat predictable; especially in "chop" or sideways trading, it is useful to have in your tool box.
Features include:
Complimentary strategy you can add as well as the indicator to backtest and tune your settings before live trading
Trailing Stoploss to wring every cent from a trade
Clear Alert labels have been coded in for use with trading bots, 3commas is recommended.
Enable/Disable Shorts in addition to Longs
Visual chart shapes - Pink Triangle = Long, Purple Triangle = Short, Thin Green Arrow = Profit, Thin Red Arrow = Loss
Realtime Deal Status - Plotlines include Yellow = Entry Price, Green = Trailing Stop Profit, Red - Hard Stoploss
A further feature is that you can disable Shorts (therefore only Longing) for use with exchanges
that only allow you to Long, such as Binance & Coinbase.
Additionally, this Indicator will close a trade before opening the next, so a single exchange
account (BitMEX for example) is all that is required versus having separate accounts to long or
short on the same chart.
This strategy is intended to use $100 of capital, traded at 2.5% per order with 10x lev on Bitmex.
If you like my work, please use my referral links (you will receive discounts!)
3commas trading bots (now with Bitmex support and a lot more!) - 3commas.io
BitMEX - www.bitmex.com
If you have any comments or suggestions, please message me via TradingView.
Based on the core "Inner Bars" concept found at:
backtest-rookies.com
with original inspiration/idea from babypips.com
ck - Inner Bars Strategy v1*** Please check out the matching Indicator to accompany this Strategy to allow you to fully backtest! ***
Inner Bar trading strategy is where the "inside" bar (or candle to the right) within a pair is smaller and within the high to low range of the prior bar, as this pattern tends to be somewhat predictable; especially in "chop" or sideways trading, it is useful to have in your tool box.
Features include:
Complimentary Indicator you can add as well as this strategy to backtest and tune your settings before live trading
Trailing Stoploss to wring every cent from a trade
Indicator only: Clear Alert labels have been coded in for use with trading bots, 3commas is recommended.
Enable/Disable Shorts in addition to Longs
A further feature is that you can disable Shorts (therefore only Longing) for use with exchanges
that only allow you to Long, such as Binance & Coinbase.
Additionally, this Indicator will close a trade before opening the next, so a single exchange
account (BitMEX for example) is all that is required versus having separate accounts to long or
short on the same chart.
This strategy is intended to use $100 of capital, traded at 2.5% per order with 10x lev on Bitmex.
If you like my work, please use my referral links (you will receive discounts!)
3commas trading bots (now with Bitmex support and a lot more!) - 3commas.io
BitMEX - www.bitmex.com
If you have any comments or suggestions, please message me via TradingView.
Based on the core "Inner Bars" concept found at:
backtest-rookies.com
with original inspiration/idea from babypips.com