K線分析
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.
Previous Two Day High and LowThis Script is used to find High Low for previous two days.
H1 is previous day high.
L1 is previous day low.
H2 is day before previous day high.
L2 is day before previous day low.
This H1, L1, H2 and L2 line can be used to determine support and resistance for symbol.
Configurable Yield CurveThis script draws the US Yield Curve (one month to 30 years). It can be configured to show earlier values using the "Yield values from x bars before" parameter. A value of five and chart time zone "1 day" will show the Yield Curve as it was five days ago. In addition, style settings of the Yield Curve line and the labels can be configured. The drawing engine is also optimized to reduce local and server-side computations.
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)
NYCOB Kill Zone StrategyI have now turned the NYCOB Kill zone into a stand alone strategy!
Fully customizable in regards to time of entry and levels of entry but the standard settings are the best all around.
Original NYCOB Kill Zone text below
This script plots the H and L of the first 2 hours of the NYC session and shades the space between in which i deem the NYC Order Block
It also maps out the First two hours on the chart as well so you can understand when the OB has formed
Over the past 3 years of trading cryptocurrency i have noticed a phenomena that has occurred nearly every day
The H or L will 90% of the time will be posted in the first two hours of this session
knowing this means you understand if you just wait til this time you can better your odds at not getting stop hunted due to poor entry
A few things to take from this study are these.
1. after the OB is formed
2. whichever side gets taken out first (H/L) will 90% define the bias for the day. I have found that using the m13-m15 TF will add some more confirmation with 1-2 closes outside of range H/L/
3. After general bias has formed 2 things can happen
A) PA just takes off and there is really nothing you can do about it unless you had other studies that told you that will happen
B) PA will dip back INTO the OB and create the OTE which is any retracement below the .5 Fibonacci of the shaded OB
4. Typically OTE happens after the session has ended
5. If you used OTE off of the past days NYCOB then you can use the new (forming or just formed) NYCOB to CONFIRM your initial bias presented from the previous days OTE and bias.
6. When PA cannot close outside the NYCOB it presents a range to range play where PA will visit the opposite side of the range to chase liquidity,
7. When the NYCOB is TIGHT then deviation is more likely to result in price expansion, when the NYCOB is WIDE then deviation tends to present more range to range plays.
8. After bias is formed and OTE has been made your stops should always be outside the NYCOB. I use the m30 or H1 ATR to get a slight cushion from the OB to ensure i dont get stop hunted.
Standard TP are all set at the same level but you can adjust them accordingly
Shout out to Elevate-Trading family member Boederzeng for helping me with the code!
TrendSystem by DhruvThis Script take moving average, RSI and Awesome Oscillator in to consideration to get the idea about the trend of underlying symbol.
LepikkokynttiläSimple indicator highlighting Lepikkokynttilä.
You can tweak wick sizes, body size relative to candle size and colors.
Heikin Ashi+RSI+EMA Strategy 2.0 v4 [Cryptocurrency] by GodtrixHi,
I know a lot of people are looking for a more sophisticated and customizable strategy tool, I'm facing the same problem too, so I created one for myself and decided to share it for free trials and if you think this tool do what you wanted, you can contact me for the subscription "Premium" version.
I'll keep it simple with point forms, if you have any further inquiries or questions, please feel free to message me. Thank you.
Best profit plan with this strategy is you trade on Future leverage while you hold on to your coin, so that when price goes up, your coin value goes up, and at the same time, you trade with your leverage to earn even more, easily doubling up your total profit.
Benefits:
Fully customizable and you can easily personalized it and FINE TUNE it according to the market or coin you trading on.
The strategy is based on REAL PRACTICAL trading skills, so it works in real-world.
I fixed the "repainting" issue so the backtest it shows you IS ACCURATE when you run for real-time.
We all know one indicator is not going to help you win your trades, so this strategy combines ALL three: EMA for long+short term trend, HA for short term trend, RSI for entry/exit
This strategy is designed for LONG trade (Buy low, Sell high), not for SHORT trade.
This is not day trading, it is more to mid-term trading, where there's only few trades per month
Mainly is coded to work with 3Commas bot auto trading, so you only need to key in your Bot ID & Email Token.
Bot trading NOTE:
You need to replace the Alert Message with this: {{strategy.order.alert_message}}
One Alert will work for both Buy and Sell Order
If you using other Bot service, you can enter Custom Command too, so it works on any bot service.
Lastly,
regarding the setting advice, I would say you try playing with different settings and your objective is to achieve a backtest result that has:
1) Profitable is > 80%
2) Losing trades is nearly 0 or below 25% of your winning trades. Trick is using far stop loss %
3) Net Profit be almost same or more than "Buy & Hold Profit"
If you interested in our subscription version, message me for price.
Best Luck & a million dollar profit to you,
Godtrix BITSTAMP:BTCUSD BINANCE:DOTUSDT
4H Closes [Intromoto]This script is one level from the "closes" script, but as an individual script, this allows more historical closes to be observed at once.
Shows 4 hour closes from the exact candle, regardless of time frame.
Number of lines plotted is limited by tradingview/pinescript, show will only show a certain number i.e recent weekly levels.
Lines can be styled by user: Thickness, solid vs dotted vs dashed, range of colors, label size and X location.
The "line.new" function requires that you 'show' the indicator where the close occured, in order to have the line show. The labels are there regardless and will remind you of the level, with or without the line. This is also true if you change chart resolution. You may have to 'search' for the close to have the line show up.
DM for access.
Thanks!
6H Closes [Intromoto]This script is one level from the "closes" script, but as an individual script, this allows more historical closes to be observed at once.
Shows 6 hour closes from the exact candle, regardless of time frame.
Number of lines plotted is limited by tradingview/pinescript, show will only show a certain number i.e recent weekly levels.
Lines can be styled by user: Thickness, solid vs dotted vs dashed, range of colors, label size and X location.
The "line.new" function requires that you 'show' the indicator where the close occured, in order to have the line show. The labels are there regardless and will remind you of the level, with or without the line. This is also true if you change chart resolution. You may have to 'search' for the close to have the line show up.
DM for access.
Thanks!
Empirical MomentsBINANCE:BTCUSDT I thought I’d make an indicator for the “fast trader”. This indicator compares the changing high prices with the close prices and in doing so, detects positive “anomalies” (the outlier drift). It gets more complicated than that; the practical indicator is the “empirically weighted drift”, which is a weighted average of the former with its derivatives up to the third order I.e. the “outlier yank”. The empirically weighted drift crossing above and below zero with long and short actions, respectively is used as the strategy. With this strategy, current backtesting for the 15 minute BTCUSDT on the Binance market yields a Sharpe ratio of 1.47 and profit factor of 1.12. Publishing the strategy as well.
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
Arpan_Candles_OL-OH-IBThis script simply shows OL (Open=Low) , OH (Open=High) and IB (Inside Bar) . I personally use OL and OH to take quick scalping trades with very low risk.
OL candle indicates that candle's Open and Low prices are same and a Long trade can be taken with a stoploss below candle low.
OH candle indicates that candle's Open and High prices are same and a SHORT trade can be taken with a stoploss above candle high.
Candles with navy blue colour indicates an Inside Bar . An inside bar is a common pattern where the high and low of one candle occur inside the high and low of the prior candle. Inside bar shows a contraction in volatility and are often a continuation pattern. Previous candle (prior candle to inside bar) is known as "Mother candle" and trades can be taken on breakout from "Mother candle" , in the direction of breakout and keeping a stoploss below/above "Mother candle".
This script can be used in any time frame. Smaller time frames generate more signals compared to higher time frames.
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
Yearly TimeframeENG
It shows annual highs and lows with lines, annual closings and openings with crosses.
ITA
Mostra massimi e minimi annuali con le linee e le aperture e chiusure annuali con le croci.
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.
Initial Balance (IB)This script marks the initial balance and extends the high and low lines. Times are calculated using the time zone parameter and non-trading times, like weekends and holidays, are handled correctly.