Bear Bull Ratio (BBR)This indicator calculates the ratio of bearish to bullish candles over a certain window of time. It does this by keeping track of the number or distance (depending on the "Enable True Range Mode" input) between the high and low prices of bullish and bearish candles, respectively, and then dividing the total distance of bullish candles by the sum of the distances of both bullish and bearish candles. The resulting ratio is then plotted on the chart as a percentage. The indicator also plots a smoothed version of the ratio using a weighted moving average and the average of the ratio over the entire length of the chart, for both the "True Range Mode" and "Normal Mode".
Candlestick analysis
Wicks percentagesThis indicator shows the percentage of the upper and lower wicks in reference to the entire candle.
Is recommended to use with white background.
Stockbee Momentum BurstThis is a script to color code bars based on the bullish- and bearish combination.
Bullish Combination
Percent: Price >= 4% from yesterday and Volume today > Yesterday
Dollar: Price >= 0.9 dollar from open
Base Requirements
- Price > Yesterday's close
- Price > Open
- Price is within 30% of high
- Todays price range >= Yesterdays price range
- Yesterday's move <= 2%
- Volume >= 100 000
Bearish Combination
Percent: Price <= 4% from yesterday and Volume today > Yesterday
Dollar: Price <= 0.9 dollar from open
Base Requirements
- Price < Yesterday's close
- Price < Open
- Price is within 30% of low
- Todays price range >= Yesterdays price range
- Yesterday's move >= -2%
- Minimum volume for each of last 3 days >= 100 000
Momentum Filter
These are based on the 10 and 20 EMA crossover, where the former above would indicate upward momentum and below downward momentum. This can help to narrow down the color code to continuation phases. The linked option will override all other momentum filters, bullish candles will be displayed when EMA 10 > 20 and bearish candles when EMA 10 < 20.
Lines and Table for risk managementABOUT THIS INDICATOR
This is a simple indicator that can help you manage the risk when you are trading, and especially if you are leverage trading. The indicator can also be used to help visualize and to find trades within a suitable or predefined trading range.
This script calculates and draws six “profit and risk lines” (levels) that show the change in percentage from the current price. The values are also shown in a table, to help you get a quick overview of risk before you trade.
ABOUT THE LINES/VALUES
This indicator draws seven percentage-lines, where the dotted line in the middle represents the current price. The other three lines on top of and below the middle line shows the different levels of change in percentage from current price (dotted line). The values are also shown in a table.
DEFAULT VALUES AND SETTINGS
By default the indicator draw lines 0.5%, 1.0%, and 1.5% from current price (step size = 0.5).
The default setting for leverage in this indicator = 1 (i.e. no leverage).
The line closest to dotted line (current price) is calculated by step size (%) * leverage (x) = % from price.
Pay attention to the %-values in the table, they represent the distance from the current price (dotted line) to where the lines are drawn.
* Be aware! If you change the leverage, the distance from the closest lines to the dotted line showing the current price increase.
SETTINGS
1. Leverage: set the leverage for what you are planning to trade on (1 = no leverage, 2 = 2 x leverage, 5 = 5 x leverage...).
2. Stepsize is used to set the distance between the lines and price.
EXAMPLES WITH DIFFERENT SETTINGS
1) Leverage = 1 (no leverage, default setting) and step size 0.5 (%). Lines plotted at (0.5%, 1%, 1.5%, and –0.5%, –1%, –1,5%) from the current price.
2) Leverage = 3 and stepsize 0.5(%). Lines plotted at (1.5%, 3.0%, 4.5%, and –1.5%, –3.0%, –4.5%) from the current price.
3) Leverage = 3 and stepsize 1(%). Lines plotted at (3%, 6%, 9%, and –3%, –6%, –9%) from the current price.
The distance to the nearest line from the current price is always calculated by the formula: Leverage * step size (%) = % to the nearest line from the current price.
Tick based chart [DotH]Version 1.0 - 2nd January 2023
Hi All,
This is my first published indicator, although I have written several hundreds for private use.
Description
Tick based chart
I got intrigued while reading about tick based charts on this page (please note this link/website owner is not affiliated with me) , so I decided to see if it would be possible to recreate this type of chart in TradingView, and here's the results.
This is an implementation for displaying a tick based chart in Trading View. There are benefits to using ticks based candles, as each candle represents the same number of "price moves" rather than an unknown number of moves.
Tick based charts are charts with candles that are rendered in the same way as traditional candles. However, instead of rendering a new candle at a specific time period,tick based candles are rendered after a set number of ticks have occured. For example, in a 50 tick chart, each candle that you see represents exactly 50 ticks, i.e. 50 price changes/moves. Having a view of what happens on the tick level, may help some traders evaluate what is happening within very large candles, or even detect a change in trend, volatility or some other metric which otherwise may not be visible using a standard chart.
Please note that this indicator DOES NOT match/synchronize timewise with the main chart in TradingView. You must view it independently. If you need to see what times are represented in the tick chart, you can look at the custom time labels and X-Axis grid lines in it to get an idea what parts of the tick based chart correspond to the main chart.
Limitations/known issues:
Currently the indicator has been restricted to 100 candles. This is for limiting the line and box usage to a max of 300 objects.
On timeframes above 1 minute, the seconds values will always be 0. In order to be able to see seconds values in the chart scale you need to be on a second level chart, which requires a premium TradingView subscription.
Changing the parameters in the settings will cause the chart to empty and start redrawing from its first candle again. This is because the tick chart is being drawn from realtime data, unlike the standard TradingView charts.
TODOs & Bugs:
Add some moving average indicators (SMA, EMA as a minimum)
Add a corresponding tick based volume chart
Create RSI, MACD, BB variations of this indicator
If you have any ideas/suggestions or bug reports, please feel free to let me know, however keep in mind that I do not have too much spare time to add things, so updates are going to be sporadic.
ABOUT CODE REUSE:
The code is free to use/change. However, if you plan to use this code to make a derivative indicator or strategy, it would be nice to know, so let me know if you feel like it!
The Ganesh TrendThe Ganesh Trend is an indicator developed by Ganesh to help Traders to identify potential trend showing candle .This indicator identifies bullish and bearish candle with some specific rules. This gives fair idea of direction of market .It is very helpful if you use it on Nifty 50 index . Candlestick developed by me is my original work . It is very helpful for new traders looking for proper entry and exit . It has stop loss and target as well . red dot shows the stop loss and green dot shows the target . taking 2-3 trades a day is good . Thank You . NSE:NIFTY
JustaBox_NY_LexThis indicator marks two boxes around the opening hour of the chosen session(s). One around the highs and lows and one around the highest open/close and lowest open/close for that hour., its main purpose if for backtesting the DR/IDR strategy but is useful for live trading as it auto adds the boxes and STD levels. The buy and sell signals that show up are not meant for trade entries, they just give an idea of whether there was a signal that day which is a close above or below the IDR (inner box lines), from there loops are started and it tests which STD levels get hit or if the opposite end of the box is crossed it considers it a stop out and closes the loops. The data from these loops can be pulled to email and then excel using the alert system.
This is the first thing i've ever coded, I put alot of work into it but id recommend going thru a few days randomly and checking the data matches up as expected.
This indicator only pulls data from the NY session, I have two others of identical functionality, the only difference being they pull the data from the London and Tokyo sessions respectively, wanted to include all three in one but I reached a limit. Search JustaBox_LDN_Lex and JustaBox_TKO_Lex
When live, once the hour of the chosen session resolves it marks the DR and IDR lines onward for a few hours, adds a 0.5 retracement line in the middle and STD levels above and below at 0.5, 1, 1.5, 2, 2.5, & 3.
There are labels that can be turned off, they show the prices these lines are set at.
Read the tooltips in the menu for more information.
(Might be self explanatory when you pull it but I'll add a key here for the titles of the data(had to keep them short due to character limit) and explain how the test works in the next couple of days but quickly:
Each STD levels has a true, false or NaN state, if its a buy signal for the session the STD levels below the bottom DR are turned off and will return NaN, but if its a sell signal they'll return false if they don't get hit true if they do. Each level has a cross time this is a bar number, you also get a bar number for the last bar in the DR box and one for when you received the buy or sell signal, so you subtract one of these from the STD X number and it will give you number of bars since 10:30 for NY sess or from when you received signal. Multiply that number by 5 to get the number of minutes. Gives prices for boxes, open and close prices of first and last candles in box and price of the NY day open for all sessions)
Position Size ToolUpdated - Version 2
This tool is used to calculate the size of a trade.
Settings - Type in total account size and % of capital that can be risked on each trade.
The table will display:
Column 1 - Stop placement based on low, mid or high value of the current candle.
Column 2 - Percent risk on the trade.
Column 3 - Amount of shares that can be traded (calculated from account size, risk and selected stop placement).
Green color is intended for long position, stop at the low of the candle.
Red color is intended for short position, stop at the high of the candle.
Middle value can shift between either color since its measured from open to close.
Big Poppa Code Strat & Momentum Strategy IndicatorThis indicator is a combination of a few things in order to work with a unique trading style gleaned from Callme100k, jrgreatness, TrustMyLevels , FaithInTheStrat, Rob Smith and Saty Mahajan.
This Indicator is created to help you day trade using, ATR Fibonacci Levels, Price Action and Momentum.
It displays Fibonacci Levels Based on ATR to indicate when a security is 0.236, 0.382 +- the Days Open, +- the Days Open, 0.618 +- the Days Open and 1.0 +- Days Open.
To understand this script you need to understand
Average True Range (ATR)
1 Bar Inside Bar
2 Bar Outside Bar (Break either the top or bottom)
3 Bar Engulfing Bar
Strat Setups - 212, 322, 312
Fibonacci - 0.236, 0.382, 0.618, 1.0
Moving Averages
A Trend is considered bullish when (green)
Current Price is greater than the Fast EMA Value (8)
Fast EMA is greater than PIVOT EMA Value (21)
Pivot EMA is greater than SLOW EMA Value (34)
OR Hull is trending up and the Price is above the Volume Weighted Moving Average and price is above VWAP
A trend is considered Bearish when (red)
Current Price is less than the Fast EMA Value (8)
Fast EMA is less than PIVOT EMA Value (21)
Pivot EMA is less than SLOW EMA Value (34)
OR Hull is trending down and the Price is below the Volume Weighted Moving Average and price is below VWAP
If these conditions are not met then the Momentum is in Conflict (orange)
The Momentum band will match the color of the current trend
The table that is present can be turned off at any time lets you see
1) If Moving Averages are showing bullish, bearish or in conflict
2) If There us Time Frame Continuity, (if 5 min up, are all the other timeframes up also)
3) How much of the ATR have we moved on the day
4) Are we in Call or Put range for the day based on ATR Fib Levels
The Ideal situation for entering a call
1) Momentum is Green
2) FTFC on Green
3) A Strat Actionable Signal is present
4) You are in the call range, 0.236 - 0.618 ATR + the Price
5) The ATR still has room, I.e only 50% of the ATR has been run already
Ideal situation from entering a put
1) Momentum is red
2) FTFC on Red
3) A Strat Actionable Signal is present
4) You are in the put range, 0.236 - 0.618 ATR - the Price
5) The ATR still has room, I.e only 50% of the ATR has been run already
Exit the trade for these reasons you entered (for profit or loss)
1) ATR has no more room
2) FTFC is now in conflict
3) Momentum has shifted
Take Profit when
1) You reach a new ATR Level 0.618, 1.0 , -0.618, -1, etc
Passive Stop Loss
1) Open Price if you are aggressive
2) Next ATR Level Down or Up
Feel free to take profit and leave runners
This script does not give signals, you should do your own research, I am not a financial advisors, I am simply applying principles of seasoned veterans to code. You make all decisions about how you buy, sell and trade. The creator of this script makes no promises and takes no responsibility for your personal trading.
To research the methods described above look up
Rob Smith : The Strat
Saty Mahajan : ATR Levels
Fibonacci
Using the HULL Moving Average
Exponential Moving Averages
VWAP
VWMA
Colorize Large Candles// I have written a Pine Script to re-paint large candles in a different Color.
// You can set the value that you want to use to define what is 'Large', and the script will re-paint any candle whose size is equal to or greater than your value.
// The number can be an integer (8) or a decimal (7.5).
// You can enable the size measurement to be done in one of two ways: 1) either on the Body (Open-to-Close); 2) or on the Wicks (High-to-Low) of the candle.
// The color of the re-painted candle can be set independently for Up and for Down candles. You can also set any Opacity that you want for these candles.
// I usually set the limit for the Visibility to the Second- and Minute-timeframes, as the Script produces too many Colorized Bars when using the Hour- or Day- timeframes.
High Low Color VolumeCompanion to High Low Color Bars, for strategies that don't use open and close levels. Color is determined using change in midpoints between high and low ( hl2 ), with degrees of shading based on threshold levels in the settings. The default threshold is 1.2 standard deviations of the change in hl2.
I use this to get a less noisy visual of volume-driven momentum.
High Low Bars in ColorHigh Low bars de-emphasize open and close levels, but sacrifice color. Because traditional candles use open and close to determine color, a new approach was needed. This script uses change in midpoints between high and low ( hl2 ), with degrees of shading based on threshold levels in the settings. The default threshold is 1.2 standard deviations of the change in hl2 .
Optional "frosting" markers are available for open ("+") and close("x").
Best used in combination with High Low Color Volume .
Volume Candlestick Heatmap Colors [vnhilton]This indicator colours candles based on their volume for a set period of time. The highest volume & lowest volume in this period are set by 2 colours, & any candle with volume inside the range will have a colour based on the gradient created by the 2 colours. Ability to hide the candle body, wick, border if preferred (Hide candlestick body, wick, border, through the settings if applicable). Features 20 pre-set themes + ability to set your own custom theme.
Anamnisar; Aubergine; Between The Clouds; Bichrome
Bora Bora; Candy; Cherryblossoms; Dracula
Dance To Forget; Fresh Turboscent; Friday; Frozen
Miaka; Minnesota Vikings; Misty Meadow; Monochrome
Neon Life; Purple Bliss; Purple Paradise; Sea Blizz
Shore; Sky; Starfall; Superman
Talking To Mice Elf; The Strain; Winter; Vasily
ABC_caluculator for Ichimoku Kinko Hyo(IKH) usersThis tool is using for calculating Target Value(N,V,E prices) by only clicking on a chart.
There is several points which makes it better.
Decrease the number of times of clicking.
Calculator needs a reset button, it's like loop structure. Push the reset and function again.
Plot percentages which it compare closing price and Target Value(N,V,E prices) on a chart.
Plot loss cut points from evaluating risk/returns.
My question is also written down precisely here !!!!!
↓
stackoverflow.com
FBMAEN:
TradingView indicator for FBMA strategy
People oftem ask: “Dmitry, BABA, TSLA, AAPL flies like a rocket! Well, what are we buying!?” - And I say no, the price does not act like a straight rocket upwards or downwards, instead it breathes, inhales moving away from the moving average and exhales returning to it, so we will wait for the first pullback and buy exactly at the value of the moving average.
Your new paradigm: wait for the stock to pull back to the moving average rather than chasing the price
And one more thing... Remember, you don't want to buy a stock when it's going down, you'll start to have doubts. it's against human nature to go long when the price is falling, but that's why this strategy works so well. We buy on the price rollback (pullback to the moving average), but we DO IT WHILE FOLLOWING THE TREND.
The biggest consequence of this strategy, my author's FBMA strategy and this is a game changer (results are in the comments).
So, let's dive into FBMA indicator settings:
Main settings
ATR Period — Period of intergrated ATR Indicator(shows ATR in a small dashboard);
Settings of Moving Averages
Sign Moving Averages? — shows values of moving averages near their lines on the chart;
Fix MAs' signatures overlapping? — automatically MAs' signatures overlapping (specifically for SMAs and EMAs!) ;
Fix MAs' signatures overlapping between SMAs and EMAs? — automatically group overlapping between EMAs' and SMAs' signatures;
Min distance between MAs' signatures (in % of ATR) — minimal distance between MAs' signatures that indicator will push away MAs' signatures from each other if they are overlapped;
Dashboard
Dashboard position — position of dashboard on the chart ( 9 options ).
Settings of MAs
Source;
Period;
Option for showing EMA and/or SMA of chosen period and source;
Line colour ;
Signature colour .
Addons
Show data by selected timeframe? — shows difference of current price opening and opening a "timeframe" time ago;
Shows MAs only if asset has grown by selected growth % in selected timeframe?
Growth, % — percent, which asset has to gain in order for MAs to be plotted;
Timeframe — frequency with which price's current and previous opening are being will be compared;
Show analog MAs' signatures? — shows MAs' value in a small table;
Show cloud between 1st and 2nd MAs? — shows cloud for both EMAs and SMAs simultaneously).
Price Action
This settings are intuitively understandable
Feel free to leave your questions or suggestions in the comments!
* Price Action-section was taken from ChrisMoody's CM_Price_Action and rebuilt.
RU:
Индикатор TradingView для стратегии ПООС
Мне часто пишут в личку: “Дмитрий, BABA, TSLA , AAPL летит ракетой! Ну что покупаем!?”- А я говорю нет, цена не летит по прямой ракетой вверх, она дышит, делает вдохи отдаляясь от скользящей и выдохи возвращаясь к ней, поэтому мы дождёмся первого пуллбэка и купим точно на значении скользящей
Ваша новая парадигма: ждать акцию на пуллбэке к скользящей по тренду, а не гнаться за ценой
И ещё… Помните, вы не захотите покупать акцию в момент, когда она падает, вы начнете сомневаться т.к. это против человеческой природы заходить в лонг при падении цены, но именно поэтому эта стратегия работает так эффективно, т.к. мы покупаем на откате цены (пуллбэке к скользящей), но ПО ТРЕНДУ
Самое большее следствие из этой стратегии, моя авторская стратегия ПООС и это гейм-чейнджер (результаты в комментариях).
Итак, давайте посмотрим сами настройки индикатора:
Основные настройки
ATR Period — период интегрированного индикатора ATR (показывает ATR на небольшой панели);
Настройки скользящих средних
Sign Moving Averages? — показывает значения скользящих средних рядом с их линиями на графике;
Исправить перекрытие сигнатур МА? — автоматически сигнатуры СС перекрываются (специально для SMA и EMA!) ;
Исправить перекрытие сигнатур МА между SMA и EMA? — автоматически группировать перекрытие между сигнатурами EMA и SMA;
Минимальное расстояние между сигнатурами скользящих средних (в % от ATR) — минимальное расстояние между сигнатурами скользящих средних, при котором индикатор будет отталкивать сигнатуры скользящих средних друг от друга, если они перекрываются;
Панель управления
Dashboard position — положение таблицы на графике ( 9 вариантов ).
Настройки МА
Source;
Период;
Опция отображения EMA и/или SMA выбранного периода и source;
Цвет линии ;
Цвет подписи .
Дополнения
Показать данные по выбранному таймфрейму? — показывает разницу текущей цены открытия и цены открытия в прошлом, по времени равному величины параметра "Таймфрейм";
Показывает MA только в том случае, если актив вырос на выбранный % роста за выбранный период времени?
Прирост, % — процент, на который актив должен набраться, чтобы скользящие средние были построены;
Таймфрейм — частота, с которой будет сравниваться текущее и предыдущее открытие цены;
Показать сигнатуры аналоговых МА? — показывает значение МА в небольшой таблице;
Показать облако между 1-й и 2-й скользящими средними? — показывает облако для EMA и SMA одновременно).
Price Action
Эти настройки будут интуитивно понятны
Оставляете свои вопросы и предложения в комментариях, всё учтём!
* Price Action-section was taken from ChrisMoody's CM_Price_Action and rebuilt.
Portfolio Chart by fonotoFeatures:
If you are looking for a chart that can project your portfolio value as a whole over time instead of individual stocks, this can be it. This is an indicator overlaid on the main chart of your index/stock selection allowing you to compare your portfolio performance against the main index/stock visually in chart form.
UI:
The settings has UI to input your portfolio stocks and quantities. The setting also has a divide factor which you can set to divide the portfolio value by this value so Y-Axis is offset to show main index/stock chart and your portfolio chart relatively closer. Portfolio chart works on any chosen timeframe. Colors can be customized in the UI.
Limitations:
1. Number of portfolio stocks is limited to 10.
2. Chart Type is limited to Candle.
3. Exponential Moving Averages are limited to 21, 50, 100, 200 & 500.
Spinn GAPs offIf you need to see the price movement without gaps, especially on very small timeframes, this simple indicator will help you with this. It uses the closing price of the previous candle as the opening price of the current one.
For its correct operation, you need to disable the display of candles in settings.
--
Если вам нужно увидеть ход цены без учета ГЭПов, особенно на очень мелких таймфреймах, этот простой индикатор поможет вам в этом. Он использует цену закрытия предыдущей свечи в качестве цены открытия текущей.
Для его корректной работы нужно отключить отображение свечей стандартными средствами.
Ratio_between_two_symbolsThis script plots the ratio of two symbols to show the relative strength between in order to determine which is the stronger security
WR - BC IdentifierThis indicator is created for user to identify BIG CANDLE "BC" in order to identify momentum in the chart.
Big candle is identify by size of the body candle (body size = |open - close|). The script will compare previous size of 20 candles and will plot "BC" if the body size candles is bigger compared to 20 body candles before.
"BC" in Green color = Bullish Big Candle
"BC" in Red color = Bearish Big Candle
Relative Strength/Weakness ArrowsHello everyone,
This Script is designed to show relative strength or relative weakness. It takes the stock your looking at and compares it to the sector it is in and to SPY. It evaluates strength or weakness on every candle. In this specific script it is only designed for the communications sector(XLC), so all the names I have inputted into the script fall within XLC. It works for all timeframes. It really helps me stay in trades longer as even though stock might be consolidating it can still be weak, making me more confident in holding. Each green arrow shows that the stock is relatively strong compared to SPY and its SECTOR, in this case, XLC. Each red arrow means that the stock is relatively weak to the market and its sector. When there are no arrows on the candles, then the stock is following the market and its sector. Tell me what yall think.
Just add it to your chart, go to any of the stocks within XLC and it will populate arrows based on relative strength and relative weakness. The weakness and strength is based on movement of price using ATR. So if the price of the stock is moving up and so is the sector it will only populate based on how large the move is. So if SPY had ATR of 1 and it moved up .50c that means the stock you're looking at would need to move more than .50c in the same candle if it also had an ATR or 1.
You can add or delete tickers in the code by going to the list of symbols and adding or removing them. Just remember that if you add a stock that doesn't fall within XLC then the arrows wont represent strength/weakness properly.
ICT NY Futures Indices Session Model - YT New York MentorshipThis indicator plots out the time periods and open lines as outlined in ICT's 2022 Mentorship and is designed specifically for the New York futures trading session.
Time zone is set to GMT-4 (NY) by default but can be changed for accommodate daylight saving in the menu.
Please note this indicator is to be used only on the 30min timeframe and below.
Here are its features:
The background color shows the morning session, in two parts (8.30am to 9.30am and 9.30am to 11.30am), then a two hour gap for lunch (ICT calls this "Dead time") and finally, the afternoon session, also to two (1.30pm to 3pm and 3pm to 4pm).
It not only shows the current killzones, but future zones as well.
These times are important; trades can be framed within these zones as taught in the mentorship.
Next are the open lines. These lines are automatically plotted and can be areas for price to react off of; they are the opening price of a candle at these times:
00.00 (New York Midnight, also known as "True Day Open")
8.30am (New York Equities pre-open)
9.30am (New York Equities open)
2.00am (London Stock Exchange open)
And lastly, London's trading session High and Low are projected forward onto the New York trading session.
These two price points are areas of liquidity that were pooled during London, but they can also often set the high or low of the day.
Please let me know if there are any bugs or if you have suggestions for the next update.
Darvas boxReference:
tlc.thinkorswim.com
Logic changed to transition to an active box after one higher low only.
Percent ResearchPercent Research is an indicator that will plot a color / column on the chart in case custom requirements are met.
The requirements are:
- Price : Price requirement (equal or above input).
- Change % Up : Amount the price have moved up in percent (equal or above input).
- Change % Down : Amount the price have moved down in percent (equal or below input).
- Change Interval : Amount of bars the above move happened over.
- Volume : Volume requirement (equal or above input).
- Volume Interval : Amount of bars in a row that each require the above volume.
Example: In case one wants to plot whenever price has made a 20 percent move up or down in a week with minimum 100 000 volume for each of the last 2 days one can use.
Change % Up: 20
Change % Down: -20
Change Interval: 5
Volume: 100 000
Volume Interval: 2
The indicator will plot a color on the chart whenever the requirements are met, which then can be used to look into price action for each colored time period.
The values can be customized dependent on preference, example 100% movers over a month or 20% movers over a week etc.