NSDT Wick FinderThis script finds wicks that are longer than the candle body and marks them as potential trading zones to be revisited. Lines, shading, and lookback can all be modified.
Full credit for original code goes to @Squam_Gobaloochee. We updated to Pinescript V5 and cleaned up code. We reached out to original for permission to repost publicly and open source.
K線分析
J-BUY & SELLIntroduction
I have been tracking the technical indicator for a long time. In my experience, I have tried various combinations of the existing indicators in the chart but have not been able to get satisfactory results.
The trend analysis method needs a lot of focus and time. Therefore, rather than speculating the future trend, I focused on building a code which will be continuous in terms of indications and remove the speculation out of the strategy. Hence, allow for automation.
Indicator Strategy
This is a simple, yet powerful indicator primarily based on price action and its relationship with SMAs .
Each candle is compared with the moving averages and the output is shown as a buy and sell signal through Up & Down arrows. Up arrow is a buy indicator and Down arrow is a sell indicator.
However, you might see in some case there is no Buy or Sell signals indication on the candle. No worries, please follow the previous signal in these cases.
How to add the indicator into your chart
1. Click the “Indicators” tab in the Trading view chart Tool Bar.
2. In the “Indicator & Strategies” menu, click on Public Library option.
3. Search for the “J-BUY & SELL” in the search box.
4. Add the indicator by clicking on the result.
How to add Buy & Sell alert
In addition to the indicator, you can also set BUY & SELL alerts for any of the stock/ index/ commodities etc.
1. Hover your mouse cursor over the indicator on the chart.
2. Click on the three dots captioned as “More”
3. Choose the option “Add alert on J-BUY & SELL”
4. You can choose the alert “Buy Bar/ Sell Bar or both as per your requirement by pressing the “Create” button.
Change the Color of the Up & Down arrows
For changing the color of the arrows, please “double click” on the arrow and the color as per your choice.
xGhozt Wickless CandlesSimple script showing candles missing an upper or downer wick. As candles tend to have a low and a high, they will most certainly form wicks. It is rare to have wickless candles on longer time frames, so it's more relevant on 1h and above.
What can you do about it?
If you see for example a Bitcoin 4h candle that hasn't form two wicks yet, there are high chances that the missing wick will be formed at one point or another, therefore you could take a trade in the direction of the missing wick. You can set alerts on wickless candles if needed.
The Strat Numbers & CombosThis indicator is an all-in-one " The Strat " script. This script displays the following:
The Strat candle numbers (1's, 2's, & 3's)
The Strat Combo labels along with trigger line
Pivot Machine Gun ( PMG ) dynamic labels
Hammer & Shooter candle labels
The Strat Candle Numbers label each candle, on any timeframe, either a 1, 2, or 3. 1's are inside bars of the previous candles. 2's take out only one side of the previous candle. And 3's go outside both sides of the previous candle.
The Strat Combo labels (which are made of the 1's, 2's, 3's outlined above) display labels when a Strat Combo occurs. The script displays a label, direction arrow, and trigger line for each Strat Combo. This indicator finds the following Strat Combos:
2-1-2 bullish reversal (BLR)
2-1-2 bullish continuation (BLC)
3-1-2 BLR
3-2-2 BLR
1-2-2 rev strat BLR
2-2 BLR
2-1-2 bearish reversal (BRR)
2-1-2 bearish continuation (BRC)
3-1-2 BRR
3-2-2 BRR
1-2-2 rev strat BRR
2-2 BRR
Double inside candles
The Pivot Machine Gun (PMG) labels any 5 or more consecutive candles that make higher lows or 5 or more consecutive candles that make lower highs. A PMG can continue going in its direction or it can reverse and come back through the range. The logic in this indicator dynamically finds each level in a PMG and draws a line for easy identification.
The script also identifies if the candle type is a Hammer, Inverted Hammer, Shooting Star, or Hanging Man. These candle types are highly likely reversal points in price action.The indicator will plot a shape with a color coded icon identifying the candle. The distance between the shape and the candles can be manually adjusted in the inputs section.
This indicator has many style options . The user can independently toggle on/off the Strat numbers, boxes around the Strat Combos, and Hammer and Shooter shapes. Also all of the colors used in this script can be changed from the inputs section, so a user can easily change colors to match their current color scheme.
RSI true swingsRelative Strength Index (RSI) is being used by majority of the traders to get benefitted based on the swings. But these swings are hard to Identify.
This Indicator uses 4 major factors for finding the potential reversal points:
RSI Crossover or crossunder
Relative volume
Overall volume against the moving average volume
Relative closing of the candles
Size of the bars
Please read Instructions carefully before using this indicator
Recommended entry is the OHLC4 of the signal bars.
If signal bar is too large, try to enter in the retracement when another signal comes either through indicator or through types of bars
when signals comes opposite to the trend, then try to wait for the next signal of same type. This creates a RSI-price divergence in confirmation by volume price action
Timeframe can be of your choice
Recommended stoploss should be swing highs or lows
Secondary Chart with OverSized CandlesHi everyone, I'm sharing a simple script I made for a friend. He was looking for a way to add another asset to his chart, and monitor relevant movements \ spot eventual correlation, especially when trading Cryptocurrencies.
We couldn't find a similar script already available so here it is - the code is commented and I hope it's clear enough :)
Notes:
- The parameter scale = scale.left keeps the scales separated and therefore the chart is more organized, otherwise the chart would appear flat if the price difference is too big (e.g. BTC vs XRP)
- It is possible to have the script running in a separate panel (instead of overlay) by moving it to a new pane (when added to the chart) or by removing the parameter overlay = true at the beginning of the code.
- In case you wish to add indicators to this sub-chart (e.g. Bollinger Bands, EMA, etc..) you can do that by adding the relevant code and feed it with the variables OPEN \ HIGH \ LOW \ CLOSE as well as using the same method to retrieve new variables from the target asset with the request.security function.
Hope this comes handy.
Val - Protervus
SVDThis indicator aims to compare between two charts if trader isn't sure which one is more active and powerful, it does NOT show entries or help your chart analysis directly.
The main features of this indicator is to show vitality and range of any given chart.
Volatility: it calculates the average profit of every swing in the range and the final result will be the chart volatility, which indicate how profitable this chart is.
Range: it calculates the profit of the whole range compared to the total price. (E.g. range bottom is 0.1 and range top is 0.2 the range will be 100%)
Extra: indicator shows the total direction of the chart in term of (STRONG UPTREND, UPTREND, SIDEWAYS, DOWNTREND, STRONG DOWNTREND), if you got (Somthing_wrong) please contact me.
How to use: apply the indicator on different charts that you have chosen and the higher (volatility & range) the more profitable the chart is.
inputs:
Lookback length: how long the range is (how many candles are included).
How intense should the Swing be: how many candles should be counted as a confirmation complete swing.
Show counted Swings: if checked as true, will show the swings counted in the volatility calculation.
For any notes on the indicator to be edited, or for another indicator ideas please comment.
HTF Candles & PivotsThis indicator displays HTF candles and pivot points.
The candles are displayed in a box and you can select Open-Close, High-Low or both.
You can show all of the past, or just "today only" or "previous day only".
You can also shift one previous candle to the current one.
The pivot point is the normal one.
There is an option to display CPR (Central pivot range).
Example: Shift previous to current
Manual Backtest - Flat the ChartThis script is an utility tool for manual backtesting.
The main problem in backtesting a discretionary strategy is the bias of knowing the future result of the market, in this way all the market will be crushed into a flat line, this way you can avoid bias.
The way to use this indicator is easy and made by 4 step:
Step 1 : add to an asset you won't backtest and put the auto scale on
Step 2 : go to the asset you will backtest and scroll left until the date you want to start
Step 3 : use the replay function of tradingview (15 min chart won't go back more than 18 month)
Step 4: toggle off the indicator or remove from the chart (untill next asset to backtest)
That's not a complex indicator but is what you need to do a fair backtesting
*SSS 50% [4/8/D/W]** SSS 50% - 4HR, 8HR, Day and Week Timeframe Edition **
This indicator is based on Sara Strat Sniper's - 50% Rule for trading Outside Bars and helps you visual the method quickly.
As per user request this indicator allows you to select: Outside 4HR, 8HR, Daily and Weekly 50% Levels with Previous High and Low Levels, available within the indicators settings.
Please note - Daily 50% warning and high/low levels are set to the indicators default. Feel free to change and save as required. Any issues let me know.
** Indicator Setup Requirements **
For Indicator to correctly display the 50% price level you need to setup your chart correctly. Right-click your chart background, select Settings, select Scales and Tick “Indicator Last Value Label". Now your 50% Price level will be displayed.
Doji-creatorsFinds doji and its breakout. It'll find the doji, detect the breakout and alert the user. Also will tell the possible reward based of rr ratio.
MTF Market Structure Highs and LowsThe indicator marks the last fractal highs and lows (W,D,4H and 1H options) to help determine current market structure. The script was created to help with directional bias but also as a MTF visual aid for stop hunts/liquidity raids.
Liquidity areas are where we assume trader's stop losses would be when buying or selling. Liquidity lies above and below swing points and institutions need liquidity to fill large orders.
Monitor price action as it hits these areas for a potential reversal trade.
Sessions with High/Low DiffThe main purpose of this indicator is to facilitate backtesting, but it may also be useful for traders to easily identify the current
active/open trading sessions on lower-timeframe charts.
This indicator also tracks the session high/low difference and plots it as a label on the last candle of the session once the last
bar of that session has finished printing and a new candle opened. The position and direction of the label is based on the
session open and close - if the session open is greater than the session close (which would equate to the equivalent of a red candle),
the label will be printed UNDER the last candle, and vice versa if the session close is above the session open.
The number printed inside the label is the difference between the session high and the session low, scaled to the minimum tick value of the chart.
Note #1: There is a Pinescript maximum of 500 labels allowed on any chart. While I could have gotten fancy and done some wizardry with label arrays,
I didn't really see a point to it. If labels are enabled for all 4 sessions at the same time, that would still have them available for the past 125
sessions, which would be about 6 months (approx 252 trading days per year, and this would cover 125 of them). If you limit to 2 sessions, you double
your potential look-back to almost a year (250 days out of the 252 average trading days each year), and for a single session, you double it yet again
to just under 2 years.
Note #2: As this indicator tracks open, high, low, and close for each session, it can potentially be enhanced (or forked) to construct "session candles".
I'm not sure what use this would be to anyone, but the pieces are there should someone find a use for it.
While it would be easy to add alerts on sessions opening/closing, I didn't see a purpose or value in that as it would be little more than a
glorified alarm clock. If I get enough demand to add them, I will gladly consider it.
Synthetic Price Action GeneratorNOTICE:
First thing you need to know, it "DOES NOT" reflect the price of the ticker you will load it on. THIS IS NOT AN INDICATOR FOR TRADING! It's a developer tool solely generating random values that look exactly like the fractals we observe every single day. This script's generated candles are as fake as the never ending garbage news cycles we are often force fed and expected to believe by using carefully scripted narratives peddled as hypnotic truth to psychologically and emotionally influence you to the point of control by coercion and subjugation. I wanted to make the script's synthetic nature very clear using that analogy, it's dynamically artificial. Do not accidentally become disillusioned by this scripts values, make trading decisions from it, and lastly don't become victim to predatory media magic ministry parrots with pretty, handsome smiles, compelling you to board their ferris wheel of fear. Now, on to the good stuff...
BACKSTORY:
Occasionally I find myself in situations where I have to build analyzers in Pine to actually build novel quantitative analytic indicators and tools worthy of future use. These analyzers certainly don't exist on this platform, but usually are required to engineer and tweak algorithms of the highest quality with the finest computational caliber. I have numerous other synthesizers to publish besides this one.
For many reasons, I needed a synthetic environment to utilize the analyzers I built in Pine, to even pursue building some exotic indicators and algorithms. Pine doesn't allow sourcing of tuples. Not to mention, I required numerous Pine advancements to make long held dreams into tangible realities. Many Pine upgrades have arrived and MANY, MANY more are in need of implementation for all. Now that I have this, intending to use it in the future often when in need, you can now use it too. I do anticipate some skilled Pine poets will employ this intended handy utility to design and/or improved indicators for trading.
ORIGIN:
This was inspired by the brilliance from the world renowned ALGOmist John F. Ehlers, but it's taken on a completely alien form from its original DNA. Browsing on the internet for something else, I came across an article with a small code snippet, and I remembered an old wish of mine. I have long known that by flipping back and forth on specific tickers and timeframes in my Watchlist is not the most efficient way to evaluate indicators in multiple theatres of price action. I realized, I always wanted to possess and use this sort of tool, so... I put it into Pine form, but now have decided to inject it with Pine Script steroids. The outcome is highly mutable candle formations in a reusable mutagenic package, observable above and masquerading as genuine looking price candles.
OVERVIEW:
I guess you could call it a price action synthesizer, but I entitled it "Synthetic Price Action Generator" for those who may be searching for such a thing. You may find this more useful on the All or 5Y charts initially to witness indication from beginning (barstate.isfirst === barindex==0) to end (last_bar_index), but you may also use keyboard shortcuts + + to view the earliest plottable bars on any timeframe. I often use that keyboard shortcut to qualify an indicator through the entirety of it's runtime.
A lot can go wrong unexpectedly with indicator initialization, and you will never know it if you don't inspect it. Many recursively endowed Infinite Impulse Response (IIR) Filters can initialize with unintended results that minutely ring in slightly erroneous fashion for the entire runtime, beginning to end, causing deviations from "what should of been..." values with false signals. Looking closely at spg(), you will recognize that 3 EMAs are employed to manage and maintain randomness of CLOSE, HIGH, and LOW. In fact, any indicator's barindex==0 initialization can be inspected with the keyboard shortcuts above. If you see anything obviously strange in an authors indicator, please contact the developer if possible and respectfully notify them.
PURPOSE:
The primary intended application of this script, is to offer developers from advanced to even novice skill levels assistance with building next generation indicators. Mostly, it's purpose is for testing and troubleshooting indicators AND evaluating how they perform in a "manageable" randomized environment. Some times indicators flake out on rare but problematic price fluctuations, and this may help you with finding your issues/errata sooner than later. While the candles upon initial loading look pristine, by tweaking it to the minval/maxval parameters limits OR beyond with a few code modifications, you can generate unusual volatility, for instance... huge wicks. Limits of minval= and maxval= of are by default set to a comfort zone of operation. Massive wicks or candle bodies will undoubtedly affect your indication and often render them useless on tickers that exhibit that behavior, like WGMCF intraday currently.
Copy/paste boundaries are provided for relevant insertion into another script. Paste placement should happen at the very top of a script. Note that by overwriting the close, open, high, etc... values, your compiler will give you generous warnings of "variable shadowing" in abundance, but this is an expected part of applying it to your novel script, no worries. plotcandle() can be copied over too and enabled/disabled in Settings->Style. Always remember to fully remove this scripts' code and those assignments properly before actual trading use of your script occurs, AND specifically when publishing. The entirety of this provided code should never, never exist in a published indicator.
OTHER INTENTIONS:
Even though these are 100% synthetic generated price points, you will notice ALL of the fractal pseudo-patterns that commonly exist in the markets, are naturally occurring with this generator too. You can also swiftly immerse yourself in pattern recognition exercises with increased efficiency in real time by clicking any SPAG Setting in focus and then using the up/down arrow keys. I hope I explained potential uses adequately...
On a personal note, the existence of fractal symmetry often makes me wonder, do we truly live in a totality chaotic universe or is it ordered mathematically for some outcomes to a certain extent. I think both. My observations, it's a pre-deterministic reality completely influenced by infinitesimal amounts of sentient free will with unimaginable existing and emerging quantities. Some how an unknown mysterious mechanism governing the totality of universal physics and mathematics counts this 100.0% flawlessly and perpetually. Anyways, you can't change the past that long existed before your birth or even yesterday, but you can choose to dream, create, and forge the future into your desires and hopes. As always, shite always happens when your not looking for it. What you choose to do after stepping in it unintentionally... is totally up to you. :) Maybe this tool and tips provided will aid you in not stepping in an algo cachucha up to your ankles somehow.
SCRIPTING LESSONS PORTRAYED IN THIS SCRIPT:
Pine etiquette and code cleanliness
Overwrite capabilities of built-in Pine variables for testing indicators
Various techniques to organize Settings panel while providing ease of adjustment utility
Use of tooltip= to provide users adequate valuable information. Most people want to trade with indicators, not blindly make adjustments to them without any knowledge of their intended operation/effects
When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section, should you have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members , I may implement more ideas when they present themselves as worthy additions. Have a profitable future everyone!
Indicator: Gap Finder [KL]
About gaps:
A gap is a “jump” in a security’s price between the Open and the Prior Close . Gaps are very common in stocks during opening hours, especially when accompanied by catalysts.
What this indicator does:
This script will identify gaps that remained unfilled for at least one candle.
It is very common for gaps to be filled on the first candle, these gaps are arguably less meaningful, so they are ignored by the indicator to reduce the number of lines drawn.
Applications:
Since most gaps eventually get filled, the question is a matter of when . If going with the trend, a trader will open a long/short position when seeing an up/down gap. When going against the trend, then short/long the stock on up/down gaps and consider taking profits when price returns to where the gap originally occurred.
Originally intended for 1D timeframes, but gaps can occur in all timeframes. Applications are limitless.
xRamiq v1test edilir! guvenli deyildir! Super Trend kullanarak hazirland/
Test Aşamasındadır.
çok küçük bakiyeler kullanın.
Waves Change SignalsAn extension (supporting script) for Waves series (e.g. Waves + ZOOnes). It detects candlestick patterns and:
supports merging few candles into one to get more sensitive candlestick patterns detection
supports filtering in the context of current wave (but it cannot draw the wave by itself)
It supports filtering based on 2 rulesets/wave variants:
Low - More sensitive (trend will change more ofter).
Meddium - Less sensitive ( trend will change less ofter).
Script with limited access, contact author to get authorization
Features:
- Detect candlestick formations
- Merge candles to detect hidden patterns
- Filter results with the current wave state (bullish signals for corrections, bearinsh signals for impulses) with use of Low or Medium waves.
- Limit results to last x patterns.
Script settings:
Trend type - You can switch what kind of waves should be used for filtering.
Limit - You can limit resutls to last X formations.
Include bar merges - You can pich which merge patters should be included. e.g. 3 2 2 means that 7 bars are merged into 3 with the sequence 3 bars as first, 2 bars as second, 2 bars as third.
Color Palette OptionsA quick, easy way to swap out colour palettes. Simple cosmetic, but charts are allowed to be fun too!
Heikinashi Candles Biggest problem that when we use normal heikin-ashi candlestick pattern then all applied indicator values also changes
Like Pivot Point with CPR ,,, EMA,,, SMA including VWAP indicator value
So , this indicator help us plot Heikinashi candles on Normal candles
Please follow below steps:
Add this indicator to chart
Go to setting >> un-tick Body, Border and Wick color
That will hide candles on chart and Plot heikinashi candles on Normal candles without changing any indicator value
Remember use normal candle stick pattern that
Hammer / Shooting Star ScannerAlways missing hammer and shooting star candlestick pattern?
This script will help you to alert hammer shooting star candlestick.
Please leave your comments for improving this script.
*SSS 50% [Intra]SSS 50% Rule Indicator - Intraday 5/15/30/60 Version
This indicator is based on Sara Strat Sniper's - 50% Rule for trading Outside Bars and helps you visual the method quickly.
This indicator allows you to select: Outside 5/15/30/60 minute Warning Levels with Previous High and Low Levels all available within the indicators settings.
Please note - 60 minute warning and high/low levels are set to the indicators default. Feel free to change and save as required. Any issues let me know.
** Indicator Setup Requirements **
For Indicator to correctly display the 50% price level you need to setup your chart correctly. Right-click your chart background, select Settings, select Scales and Tick “Indicator Last Value Label". Now your 50% Price level will be displayed.
Nov 30, 2021
Custom functions added as requested by users to produce cleaner charts.
H Line added for 50% level
Ability to change color for H/L Levels and Labels.
Adjust Line Width and Line Style
Adjust 50% and High/Low Label Offsets
Basic Alert Function added for 50% Level. Add Alert and Select Condition: SSS 50%, followed by your desired Outside Day Warning.
Please note alert functions have been tested and work once the current close price crosses the 50% level. Any issues please let me know and I will update when required.
Fear and Greed Index CandlesticksThis colours the candlesticks based on my 'Fear and Greed Index'.
All calculations are explained in the code.
The index is mainly based upon the components of the popular fear and greed index website. I've annotated the components in the code for you to look at.
If you're interested, you can replace the final variable 'Total' (within the 'barcolor' function at the very end) with any of the final outputs of the subcomponents to see the results of that single part.
Red = Greed
Green = Fear
Enjoy!
Find Master Candle(MC)Description.
1. This indicator finds and displays master candles.
2. Master Candle (MC)? After the MC, the first candle becomes the MC if there is a movement of 4 candles trapped in the master candle.
3. Option setting
3.1. Specify min/max size and pip conversion variables to specify the size of the master candle (MC).
3.2. The size of the master candle (MC) can be specified by the size of the pip.
3.3. The body size of the master candle (MC) can be specified as a percentage of the total candle.
4. trading strategy
4.1. Master Candle Identification
4.2. Enter trading when the master candle is broken
4.3. The target return is basically the same as the size of the master candle (however, you want to find a valid value according to the stock)
※ It is recommended to set the master candle size and target profit range according to the trading time chart.
※ This trading strategy is useful for judging when to break through a certain range, and is useful both for scalping and beyond.
------------------------------------------------------------------------------------------
설명.
1. 이 인디케이터는 마스터 캔들을 찾아서 표시 해줍니다.
2. 마스터캔들(MC)? MC 이후 캔들 4개가 마스터캔들에 갇힌 움직임이 나오는 경우에 첫 캔들이 MC이 됩니다.
3. 옵션 설정
3.1. 마스터캔들(MC)의 크기를 지정하기 위해 최소/최대 사이즈 및 핍 변환 변수를 지정합니다.
3.2. 마스터캔들(MC)의 크기는 핍의 크기로 지정할 수 있습니다.
3.3. 마스터캔들(MC)의 몸통 크기는 전체 캔들의 %비율로 지정할 수 있습니다.
4. 매매 전략
4.1. 마스터 캔들 식별
4.2. 마스터 캔들 돌파 시 거래 진입 ( cf . MC +-5 pips 인 경우 진입)
4.3. 목표 수익은 기본적으로 마스터 캔들의 크기 만큼 (그러나, 종목에 따라 유효한 값을 찾기 바람)
※ 거래 시간대 차트에 따라 마스터 캔들 크기 및 목표 수익의 범위를 정하기 바람
※ 이 거래 전략은 특정 범위의 돌파 시점을 판단하는데 유용하고, 스캘핑 또는 그 이상의 거래에 모두 유용합니다.