Same high/low updateHere I made a strategy out of my indicator. So, the trigger is double low/high on 1 week candle chart.
Entrance: close of the next candle if it's low/high higher/lower than previous one. (in most cases it's precise for backtesting)
Stop loss: long:low-one tick, short:high+one tick
Take profit: ATR*Multiplier (you can tune it in properties)
Analisi candlestick
Same high/lowIf you are using support/resistance level-based strategies in your trading then this indicator can help you. I think that the retest level strategy is the best for beginners due to its simplicity of risk/reward calculations and higher abundance on the market. There is a well-known method to recognize a big player (buyer/seller) by candlestick pattern where the last two candles have the same low or same high. Moreover, abnormal candles increase the probability of a retest of a strong level, so my indicator highlights these two situations. In my opinion, a higher timeframe of a candle chart increases the win rate for this indicator (>1h).
So there are several patterns which my indicator can recognize:
1. Same low/high: blue flag up - same low, blue flag down - same high.
2. Mirror levels: high-low - green flag up, low-high - green flag down.
3. abnormal candles: yellow body if >2*ATR (please tune atr in properties, the default value is 5).
4. The red flag indicates the third candle with the same high/low in a row.
Thanks for your attention and have a good trading time!
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. 목표 수익은 기본적으로 마스터 캔들의 크기 만큼 (그러나, 종목에 따라 유효한 값을 찾기 바람)
※ 거래 시간대 차트에 따라 마스터 캔들 크기 및 목표 수익의 범위를 정하기 바람
※ 이 거래 전략은 특정 범위의 돌파 시점을 판단하는데 유용하고, 스캘핑 또는 그 이상의 거래에 모두 유용합니다.
Initial BalanceThis script calculates and draws the initial balance price levels which can be really interesting for intraday activities.
Note: Obviously, you need to wait for the calculation period to finish in order to see your daily levels
The tool includes the following options
Customization of the session used to calculate the initial balance (default 0930-1030)
Show/Hide the calculation period (as a background color)
Show/Hide extra levels (report the IBH-IBL delta above and under the IB area)
Show/Hide intermediate levels (displays 50% price levels in the IB and extra areas)
Show labels (Display levels names as well as their price on corresponding lines)
Levels names:
- IBH (Initial Balance High)
- IBH (Initial Balance Low)
- IBM (Initial Balance Middle)
- IBH x2
- IBL x2
Default colors are green for high levels, red for low levels, and orange for intermediate levels
Extend levels (extends the current levels to left/right/both/none sides of the chart)
Gap Absorption StrategyLike the nature, markets don't like the void, and this is something we can take advantage of by trading gaps on some markets.
This technique is well known, so I wanted to write a tiny script based on this strategy to get a bit more comfortable with it.
IMPORTANT: Default parameters wont give you good trades on every markets, you need to modify these parameters to see which proportions correspond to the stock you're trading.
This script triggers signals on predefined variation of a stock price after a gap, and allows its user to configure TP and SL prices corresponding to a specific percentage of this gap movement.
Note: We can observe that opening gaps are often the most interesting.
Options
Trigger: the price variation you want to trigger on (in % of the price)
Stop Loss : in % of the gap
Take profit : in % of the gap
A small table is displayed in the top right corner of the chart to give you TP/SL/Signal prices for each opportunity
SL (red line) and TP (green line) are also displayed on the chart when a signal is triggered
Information concerning the current opportunity is given at the bottom of the chart
Note: This script is based on the Gap-Size-Indicator that I published a few weeks ago.
Heikin Ashi Candle Startegy for Long PositionThis strategy utilize Heikin-Ashi candlestick chart.
Heikin-Ashi technique is a Japanese candlestick-based technical trading tool that uses candlestick charts to represent and visualize market price data.
Heikin-Ashi candle is essentially taking an average of the movement.
There is a tendency with Heikin-Ashi for the candles to stay red during a downtrend and green during an uptrend.
This strategy only apply for long trading position.
The idea is trader will waiting 3 green candles for validation period (confirmation) before entering long position.
Different timeframe will result different result.
Number of validation period can be changed to see different result
This strategy has parameter for take profit percentage, trailing stop and stop loss.
User can set maximum active position to minimize risk and qty order.
This tool is useful for user who wants to backtest Heikin-Ashi trading strategy.
Script will emit alert when long position is opened and closed.
Warning of Backtesting
Backtesting is backward-looking. As the name implies, you are testing how something would have worked if you traded it perfectly in the past.
Past performance does not indicate future performance and you should not assume it does.
Backtesting assumes you never miss-fire, that you get in and out at the exactly perfect moment each time.
Backtesting assumes you have perfect liquidity, and your limit orders fill at a specific, pre-defined price every time (either the open, close, low, high, or some average of these).
Disclaimer
Do your own research and consider fundamental price of asset.
The indicators provided on this script is for educational purposes only.
Author does not offer advisory or brokerage services, nor does it recommend or advise users to buy or sell particular stocks or securities.
Please examined script and give feedback for further improvement.
Script are open to public, everyone see and clone source code or just apply to chart. Please make comment for improvement.