*All Candlestick Patterns* Tiny VersionThis is just the *All Candlestick Patterns* script with tiny labels. Also an excuse to test the script publication .. but you will find this version much less annoying
캔들스틱 분석
Body/Wick to Range Osc.This script is meant to be a form of pure candlestick analysis.
Terminology in the description used below is as follows:
- numcands = Number of candles specified by the user to be used for sampling in each moving average.
This script plots moving average (SMA/EMA specified by the user ) of the percentage of the high-low range that the previous {numcands} candles the upper wicks, lower wicks, and the body take up.
The user may specify if the absolute value of the body percentage is to be used (true by default). To account for this, a horizontal line is also plotted at 0 to show when the body percentage moves above or below 0.
The values that all of these moving averages plotted will oscillate between 0 and 1 (-1 and 1 for the body percentage if the absolute value of candles is not used).
Other notes: The user may select the colors used (colorblind support, as the defaults are red and green). Cross overs and cross unders are accounted for in alertconditions (as is if the body % moves above and below 0% if absolute values are not used).
An interpretation of the use of this script may be: If the upper wicks begin to take up a larger portion of the high-low range, it may signal downward selling pressure (and vise-versa for lower wicks). However, this may be open to interpretation based upon the specified {numcands} used.
USD Prices for Uniswap Token/WETHUniswap instrument prices are in WETH. This indicator translates the series to USD prices and plots the series as candles or as a line. Data is translated by using corresponding series data for ETHUSD. The reference ETHUSD price is from Coinbase.
Any token listed as a ETH/WETH pair could be specified as an input parameter. The default instrument value is set to UNISWAP: DPIWETH, an index created by indexcoop and tracking the DEFI basket.
The script is simple and easy to understand. It allows for quick conversion and comparisons and something we had to do in a custom way prior to this script. The crypto and DEFI community would benefit from it immensely. There is even a feature request for something like this on the tradingview subreddit.
Trend ResumptionWe again keep it really simple.
This indicator just plots the combination of RGRR and GRGG candlesticks. (R = Red / Bearish, G = Green / Bullish)
When either pattern occurs, trade the combined high and combined low of recent 2 RR or recent 2 GG candles. I.e.,
Buy above GG's high with SL at GG's low.
Sell below RR's low with SL at RR's high.
Refer the shared chart for example. The signals were plotted on both the sides, and wherever triggered - gave rewards.
Only 1 at 05-Apr, 10:50 a.m. did not trigger, but that must then be ignored. Do not hurry to enter the trade, wait for breakout / breakdown above combined high / low.
NSDT MA Colored CandlesA simple script that will change the color of the candle if it closes over/under the designated Moving Average. This makes it very easy to identify trends based on your selected Moving Average line length. You can choose EMA, SMA, or WMA and of course the length is adjustable as well. To see these candles, be sure to go into the Chart Settings and uncheck the candle Borders, Colors, and Wicks.
MJ Important Candlestick Patterns + Smart TrendThis script detects 6 important candlestick patterns defined by the author and puts chart labels on your chart for your attention. It also includes a smart trend checking algorithm to detect trends.
The six candlestick patterns covered are:
Bullish Engulfing
Bearish Engulfing
Piercing Line
Dark Cloud Cover
Bullish Harami
Bearish Harami
*** Smart feature of this indicator is that it can detect uptrends or downtrends before alerting you regarding the bullish or bearish reversal candlestick pattern. This is achieved by comparing the typical price (high+low+close divided by 3) of today's candle versus three days ago.
3 Types of Doji StarDoji types:
1. Standard Doji
2. Dragonfly Doji
3. Gravestone Doji
Input:
1. EMA
2. Proportion (%) of Dragonfly & Gravestone Doji
Join data and union of 2 hystorical markets
How to create a union from two contiguous Tradingview tickers (series)
Francesco Marzolo March 18, 2021
Go to the older ticker of the two, for example CME: SP1! and open it on Tradingview.
On the graph thus created, add this script.
In the indicator settings select the same ticker as the chart in Symbol1
while in Symbol2 the ticker from which to retrieve the most recent data, for example: SPX500
The operation this script does is examine each bar of the two tickers, where there is a value for the second it holds this one, where it does not exist in second ticker it keeps the value of the first one. This new series is called Merge. So now in the chart there will be 4 series:
- that of the original chart without script
- the same series loaded via script (Symbol1)
- series 2 of "new" data (Symbol2)
- the Merge series that "prefers" the Symbol2 data if present, otherwise it shows Symbol1
So now you have to change the visibility of the 4 series to see the differences:
- turn off the visibility of the chart indicator
- turn off the Symbol1 series in the script properties (old data only)
- switch off the Symbol2 series as well (only new data)
- switch on the Merge series (new data if existing, old if not present in the new ticker)
EL Fly Candle (spinning top) by Epullemanhighlight spinning top candle with alerted volume > vol sma 20 and stoch above 50
Visual Candlestick Blender (Analysis Tool), by @BlueJayBird- This is a analysis tool.
Brief Description
- It generates candlestick containers for current timeframe, using OPEN/HIGH/CLOSE/LOW data from higher time frames.
- Current version supports up to 4 CVB at the same time. Usually using only 2 is enough.
- Vertical extended divisions for 1h, 4h, 1D and 1W using background lines are included too.
* Report any bugs or feedback you have.
NOTE. At current unclosed candlestick , some weird line painting it is expected. It is not a bug, it is a Trading View feature that I haven't been able to solve yet. To solve this, setting the VCB off and then on should be enough.
Renko + CandlesThis indicator has been designed to show you both candle chart and Renko chart in one place.
I think most of you are familiar with candle chart which is working with the time and price movements but Renko chart is based on price differences and is not related to the "time" parameter.
so if you see a Renko brick is appear up(or down) to the previous brick it means that a certain and fixed price movement has been occurred (which mostly calculate by ATR). and also this indicator works in any time frame.
Remember because we want both charts we have time parameter in this indicator, and if the price doesn't move up or down a certain percentage from previous bars, it will plot a renko bar beside the previous one.
you can use this indicator to see if the price moves up or down.
Or you can determine the important support and resistances with much less noises.
it can be used as a confirmation for you to keep your positions or exit.
go ahead and discover it...
If you have any questions, don't hesitate! ask in the comments section below.
EMA Cross 9,21,50,80,200 + Inside barEste script faz o seguinte:
1. Plota 5 EMAs (9,21,50,80,200)
2. Faz crossover da 9x21 e 21x50
3. Colore inside bar em amarelo (é possível ainda colorir diferentemente bullish e bearish inside bar)
LepikkokynttiläSimple indicator highlighting Lepikkokynttilä.
You can tweak wick sizes, body size relative to candle size and colors.
Digit Sum - NumerologyThis script calculates the digit sum of a chosen source.
Only possible thanks to MichelT String to Number Script.
Pinescript - Common String Functions Library by RRBCommon String Functions Library by RagingRocketBull 2021
Version 1.0
Pinescript now has strong support for arrays with many powerful functions, but still lacks built-in string functions. Luckily you can easily process and manipulate strings using arrays.
This script provides a library of common string functions for everyday use, such as: indexOf, substr, replace, ascii_code, str_to_int etc. There are 100+ unique functions (130 including all implementations)
It should serve as building blocks to speed up the development of your custom scripts. You should also be able to learn how Pinescript arrays works and how you can process strings.
Similar libraries for Array and Statistical Functions are in the works. You can find the full list of functions below.
Features:
- 100+ unique string functions (130 including all implementations) in categories: lookup, testing, conversion, modification, extraction, type conversion, date and time, console output
- Live Output for all/selected functions based on User Input. Test any function before using in script.
- Live Unit Test Output for several functions based on pre-defined inputs.
- Output filters: show unique functions/all implementations, grouping
- Console customization options: set custom text size, color, page length
- Support for Pages - auto splits output into pages with fixed length, use pages in your scripts
- Several easy to use console output functions to speed up debugging/output.
WARNING:
- Compilation Time: 1 min
Notes:
- uses Pinescript v3 Compatibility Framework
- this script is packed to the max and sets a new record in testing of Pinescript's limits: 500 local scopes, 4000+ lines, 180kb+ source size. It's not possible to add more ifs/fors/functions without reducing functionality
- to fit the max limit of local scopes = 500 all ifs were replaced with ?: where possible, the number of function calls was reduced, some calls replaced with inline function code
- ifs are faster (especially when lots of them are used in a for cycle), more readable, but ifs/fors/functions increase local scopes (+1) and compiled file size, have max nesting limit = 10.
- ?: are slower (especially in for cycles), hard to read when nested, don't affect local scopes, reduce compiled file size, can't contain plots, for statements (break/continue) and sets of statements
- for most array functions to work (except push), an array must be defined with at least 1 pre-existing dummy element 0.
- if you see "String too long" error - enable Show Pages, reduce Max Chars Per Page < Max String Length limit = 4096.
- if you see "Loop too long" error - hide/unhide or reattach the script
- some functions have several implementations that can be faster/slower, use internal code/ext functions
- 1 is manual string processing using for cycles (array.get) and ext functions - provided in case you want to implement your own logic, may sometimes be slower
- 2 is a 2nd alternate implementation mostly done using built-in functions (array.indexof, array.slice, array.insert, array.remove, str.replace_all),
attempts to minimize local scopes and dependency on ext functions, should generally be faster
- 3 is a 3rd alternate (array.includes, array.fill) or a more advanced implementation (datetime3_str) with lots of params, giving you the most control over output
- most functions have dependencies, such as const names, global arrays, inputs, other functions.
P.S. Strings of Time may be closed unto themselves or have loose ends; they can vibrate, stretch, join or split.
Function Groups:
1. Char Functions
- repeat(str, num)
- ascii_char(code)
- ascii_code(char)
- is_digit(char)
- is_letter(char)
- digit_to_int(char)
- is_space_char(char)
2. Char Test and Lookup Functions
- char_at(str, pos)
- char_code_at(str, pos)
- indexOf_char(str, char)
- lastIndexOf_char(str, char)
- nth_indexOf_char(str, char, num)
- includes_char(str, char)
3. String Lookup Functions
- indexOf(str, target)
- lastIndexOf(str, target)
- nth_indexOf(str, target, num)
- indexesOf(str, target)
- numIndexesOf(str, target)
4. String Conversion Functions
- lowercase(str)
- uppercase(str)
5. String Modification and Extraction Functions
- split(str, separator)
- insert(str, pos, new_str)
- remove(str, pos, length)
- insert_char(str, pos, char)
- remove_char(str, pos)
- reverse(str)
- fill_char(str, char, start_pos, end_pos)
- replace(str, target, new_str)
- replace_first(str, target, new_str)
- replace_last(str, target, new_str)
- replace_nth(str, target, new_str, num)
- replace_left(str, new_str)
- replace_right(str, new_str)
- replace_middle(str, pos, new_str)
- left(str, num)
- right(str, num)
- first_char(str)
- last_char(str)
- truncate(str, max_len)
- truncate_middle2(str, trunc_str, pos, max_len)
- truncate_from2(str, trunc_str, pos, max_len, side)
- concat(str1, str2, trunc_str, max_len, mode)
- concat_from(str1, str2, trunc_str, max_len, side, mode)
- trim(str)
- substr(str, pos, length)
- substring(str, start_pos, end_pos)
- strip(str, mask, target, is_allowed)
- extract_groups(str)
- extract_numbers(str, d1, d2, mode)
- str_to_float(str, d1, d2)
- str_to_int(str)
- extract_ranges(str, d1, d2, d3, type)
6. String Test Functions
- includes(str, target)
- starts_with(str, target)
- ends_with(str, target)
- str_compare(str1, str2)
7. Type Conversion Functions
- tf_check2(tf)
- tf_to_mins()
- convert_tf(tf)
- period_to_mins(tf)
- convert_tf2(tf)
- convert_tf3(tf)
- bool_to_str(flag)
- get_src(src_str)
- get_size(size_str)
- get_style(style)
- get_bool(bool_str)
- get_int(str)
- get_float(str, d1, d2)
- get_color(str, def_color)
- color_tr2(col_str, transp)
- get_month(str)
- month_name(num, format)
- weekday_name(num, format)
- dayofweek_name(t)
8. Date and Time Functions
- date_str(t, d)
- time_str(t, d)
- datetime_str(t, d1, d2)
- date2_str(t, d, type)
- time2_str(t, d, type)
- datetime2_str(t, d1, d2, format1, format2)
- date3_str(t, template)
- time3_str(t, template)
- datetime3_str(t, template)
9. Console Output & Helper Functions
- echo1(con, str)
- echo2(x, y, con, str)
- echo3(v_shift, con, str, msg_color, text_size)
- echo4(x, y, con, str, msg_style, msg_color, text_size, text_align, msg_xloc)
- echo5(x, y, con, str, msg_style, msg_color, text_size, text_align, msg_xloc)
- echo6(x, y, con, str)
- echo7(v_shift, con, str, msg_color, text_size)
- echo8(x, y, con, str, msg_style, msg_color, text_size, text_align, msg_xloc)
- echo9(x, y, con, str, msg_style, msg_color, text_size, text_align, msg_xloc)
- new_page(str, line_str, trunc_str, header_str, footer_str, length, page_count, page, mode)
engulfing bullishengulfin bullish
The support and resistance lines of the previous candle are drawn. You can choose the lines in any length you want
B3_HH_LL_Break Bar PainterThis is a simple Highest High or Lowest Low Breakout Painter.
Defaults in the order that they may color bars - checks top color first:
where n = your input length
BLACK = Outside Bar HHLL(n)
RED = Lower Low LL(n)
GREEN = Higher High HH(n)
BLUE = Inside Bar HHLL(n)
You may customize the colors in the indicator's settings-cogwheel on the chart.
Enjoy!
d^.^b
Double DojiStrategy Kiss = 'Keep It Simple, Stupid' or 'Keep It Simple, Smart'
The script simply identifies 2 consecutive Doji candles, and calculates Target on both the sides for given Reward : Risk factor.
The High-Low to Open-Close ratio is set to default value 20. The Reward : Risk ratio is of default value 2.
Both can be set to values of your choice.
Accuracy best on Daily chart. Can be tried on any timeframe though.
Trading Rules: Buy at higher / Short at lower of the 2 candles, with other as Stop Loss.
If a Stop Loss is hit, go for reverse trade. If again a SL is hit, switch to other instrument.
Important: If trading in Futures and target is achieved, hedge the position by buying an option (subject to liquidity).
Reason is, the trend may condition to any extent and you would definitely not want to miss out the whole action.
Check the shared example. For a risk to 175 points, reward is 2200+ points (more than 12.5 times).
ICMCBased on basic Nimblr TA, Momentum Candles combined with Breakout/Breakdown can detect a change in trend direction.
Nimblr mainly categorizes candlesticks into Momentum (Body > 50%) and Indecision (Body < 50%) candlesticks.
⁕ shows Momentum Candles, others are Indecision Candles
↑ shows Breakout
↓ shows Breakdown
Yellow lines show the current Indecision candle and white lines the past Indecision candle.