캔들스틱 분석
PriceScalperThis is a simple script that will visually show where buy and sell points occur based upon configurable price action. I wrote this purposefully to evaluate stablecoins and other narrow or fixed ranged markets where algorythms don't generally do well.
Putple triangles, pointing up, are buy signals.
Purple triangles, pointing down are sell signals
Alert conditions of BUY ASSET and SELL ASSET are provided for convience.
3rd High Low This is simple script to mark when higher high (or lower low) is made on continuously third day.
There likelihood of short term reversal next day. As usual, it is just likelihood and not certainty.
Inside Bar Visualizer PineV4I didn't find a study for Inside bar as I wanted. Therefore I wrote a one with PineV4. This may help you to see inside bars.
It can recalculate and works with either (opens-closes) or (highs-lows)
Cheers! :)
Custom position sizerThis is a simple script to aid with determining position size.
Inputs are the intended entry price, desired risk (expressed as % of account at risk), account value, and leverage factor.
To use the script;
1. Identify and update the entry price (yellow line on the chart)
2. Update with desired risk
3. Update with account size
4. Adjust the leverage value until the stop loss (red line on chart for long positions, green line for short positions) reaches the desired value/location on the chart
The label will then update to show the required position size for the trade.
Heiken-Ashi CandlesSimple script to view Heiken-Ashi candles below a normal candles chart.
Could also be useful for using HA calcs in strategy scripts on normal candles chart for proper backtesting.
I adapted this to v4 from original v2 script by @samtsui. If you like please remember to give him a Thumbs Up for his original version! ->
Heiken Ashi BF Heiken Ashi candles help us to identify a trend.
This strategy simply enters a long when the Heiken Ashi candles turn green and a short when they turn red.
Because of the way BTC price moves in medium term trends, this simple strategy seems effective.
There is a rate of change function applied to avoid some of the choppy sideways action (thanks again to kiasaki for the code)
There is a 2% fixed stop loss applied and an optional take-profit setting. You can change both in the settings.
As you can see from the code, this strategy does not enter trades based on the Heiken Ashi closes, rather the actual price close. This is an important distinction since the HA closes are based on an average of the OHLC values so attempting to enter at that price may not always be possible. There are some "strategies" that use this information to try and con people by appearing to have awesome entries that are actually not attainable in all cases.
Green = Long
Red = Short
White = No trade
Candle Patterns AlertCandlestick pattern alerts for strategies "Candle Patterns Strategy" and "Candle Patterns Strategy - 2".
In order not to receive unnecessary signals, in the "Manage alerts" option should be selected "Once per bar close".
Calendar Spread - OldinvestorSimply choose what two securities (symbols) you want to compare. The study will subtract Open, High, Low, and Close of second input from the first. You may also move the plot line wherever you choose. It may be necessary to move the plot line in order for some charts to look right.
Engulfing Scanner v1This indicator helps you to quickly identify bullish and bearish engulfing patterns.
Works on currencies only (pips required).
Chop FilterIt is common knowledge that most traders lose money by leaving trends too early and not letting profits run. Chop Filter attempts to paint over wrong-colored candles which might psychologically cause traders to bail off the trend. It also tries to detect potential trend reversals (experimental).
How it works. Chop Filter highlights wicks with a shaded background based on close relative to a volume-weighted moving average (vwma). If it closes up, or if there are higher lows, it shades the background blue. If it closes down, or there are lower highs, it colors the background red. Finally, it shows a big arrow indicating the direction prices are headed, based on the vwma. The arrow helps me to consider where prices might go, and play out different scenarios, rather than being a true prediction. In fact, it is often wrong when there is a lot of volatility, which can also be a good thing.
I find the shaded background has a calming effect that reduces stress. It also helps identify trends in the wicks that are otherwise difficult to see.
There are some other options to play with, such as highlighting narrowing or widening price action in yellow or optionally showing the vwma .
Have fun!
ZigZag Plus [xdecow]A ZigZag Like based on candle close.
A lot of options that can be hide in options.
Triangle/bright - reversal confirmation candle
Circle/dark - higher/lower candle breakout
Square/light - Insidebar
[RESEARCH] Chart Type IdentifierA viable and workable concept of chart type identification using Pine Script.
Was wollen wir trinken , sieben Tage lang
Was wollen wir trinken, so ein Durst!
Was wollen wir trinken, sieben Tage lang
Was wollen wir trinken, so ein Durst!
[RESEARCH] Heikin-Ashi Chart IdentifierA deterministic approach to identify Heikin-Ashi chart type.
The script checks the next statements about HA:
HA chart does not have any gaps in a classic sense
Every new HA open price is calculated using a specific recurrence formula. This fact also means that initial HA open price is used to calculate all the next and so on (a construction of Infinite Impulse Response filters)
The script works correctly being applied to other chart types:
Classic Candlestick
Range Bars
Line Break
Traditional Renko
ATR Renko
Traditional Point-and-Figure
ATR Point-and-Figure
Kagi
For special ones: this code allows you to check whether your script is being executed with Heikin-Ashi candles or not inside your script.
Ev sistr 'ta Laou!
[RESEARCH] Kagi Chart IdentifierA heuristic approach to identify Kagi chart type.
This tool allows to identify:
ATR Kagi charts (see ^)
Traditional Kagi charts
Works correctly with other chart types:
Classic Candles
Heikin-Ashi
Line Break
PnF
ATR Renko
Traditional Renko
Range Bars
Do not forget @everget
TD - HA Trend ReversalVery script to identify Doji's for trend reversal and alerting. I intentionally left out identification of other candle types to make it simple for people who are using HA candles in particular.
[RESEARCH] Renko Chart IdentifierDespite I am not a big fan of Renko I spent some time to solve a common problem of chart type identification using absolutely obvious technique: Renko bricks have the same size. That's all. Not a cutting-edge maths.
This tool allows to identify:
ATR Renko charts (see ^)
Traditional Renko charts
Here is example for Traditional Renko:
It also works correctly with other chart types:
Classic Candles
Heikin-Ashi
Kagi
PnF
Range Bars
Remember @everget !
And pay attention to the license before use)
Dark Cloud Cover Pattern Trading Setupthis study is another script based on the candlestick pattern . there are a few filters implemented to be applied to the output result to clear out noises. it sounds like finding real Dark Cloud Cover instances are too rare (interesting though!).
Dark Cloud Cover
it is a bearish reversal candlestick pattern where a down candle (typically bearish) opens above the close of the prior up candle (typically bullish) and then closes below the midpoint of the up candle. The five criteria for the Dark Cloud Cover pattern are:
An existing bullish uptrend.
An up (bullish) candle within that uptrend.
A gap up on the following day.
The gap up turns into a down (bearish) candle.
The bearish candle closes below the midpoint of the previous bullish candle.
all these criteria are implemented in code to produce a more accurate result.
please provide me with your valuable comments,
thanks for your attention,
Piercing Line Pattern Trading Setupthis study is the first one of a series of scripts based on the candlesticks pattern which will be published over time. There are several such scripts out there that can be found on TradingView but they seem to be inaccurate with a lot of noises and messy hard to understand code. In this script, I've tried to have a clean and easy to get
of the pattern itself and the method for detecting it with enough parameters to filter out the noises.
Piercing Pattern
A piercing pattern is a technical trading signal that is formed by a closing down day with a good-sized trading range, followed by a trading gap lower the following day with a bullish candlestick that covers at least half of the upward length of the previous day's bearish candlestick body, finishing with a close higher for the day. A piercing pattern often signals the end of a small to moderate downward trend. A piercing pattern can serve as a potential indicator for a bullish reversal. This pattern is formed by two consecutive candlestick marks. The first candlestick is bearish signifying a down day and the second is bullish signifying an up day. When a trader is watching for a bullish reversal any red candlestick followed by a green candlestick could be an alert. There are a few things that set a piercing pattern apart from a general red candlestick green candlestick pattern. In a piercing pattern, a green candlestick follows a red one with a significant gap in the red candlestick close and green candlestick open. On the second-day green candlestick, the candlestick’s body must also lengthen to cover at least half of the previous day’s red candlestick . Generally, the gap down and substantial increase to the closing price are good signs for a reversal. In a piercing pattern, the second-day green candlestick will close at or above the midpoint of the previous day’s red candlestick.
please provide me with your valuable comments,
thanks for your attention,
Candle Patterns StrategyThe script allows you to test popular candlestick patterns on various instruments and timeframes. In addition, you can configure risk management (if the value is zero, it means the function is disabled), and you can also specify the time of the trading session (for example, so that the positions are not transferred to the next day).
The author is grateful to JayRogers and Phi35, their code examples helped a lot in writing the strategy.
Candelsticks Pattern {LB}In questo script ho aggiunto i migliori candelstick pattern (che conosco) e che reputo diano indicazioni più chiare riguardo la tendenza quantomeno giornaliera. Consiglio quindi l'utilizzo di questo script su timeframe giornaliero in modo da avere un idea della direzione da seguire per poi passare a timeframe più bassi per entrare più nel dettaglio e favorire la propria strategia di ingresso.
Alcuni di questi pattern indicano la direzione da seguire, se Long o Short, altri invece indicano il tipo di pattern che, se rotto al rialzo indica una direzione long e viceversa, se rotto al ribasso indica direzione short, parliamo ad esempio del pattern 2Doji o del pinBar (vedi immagine sopra).
Infine resta da dire che non tutti i pattern inseriti in questo script verranno individuati su ogni grafico, ad esempio, su un grafico di un mercato azionario è più facile che ci siano dei pattern come il Bearish Engulfing in quanto il cosidetto pattern per verificarsi ha bisogno di aprirsi al di sopra del massimo della candela precedente e chiudersi al di sotto della candela precedente, quindi un apertura in gap, cosa che nel forex è difficile da trovare. Come questo come altri tipi di pattern come l'Outside di Larry Willliams, il BHL (Belt Hold Lines), morning star e via dicendo.
In totale questo script contiene 10 pattern. Condivido in open in modo che possiate farli vostri e migliorarli in base alle vostre esigenze come ho fatto io con alcuni di questi. Se vi è piaciuto questo script lasciate un bel like e se avete dei dubbi o volete contattarmi per del supporto sono pronto ad aiutare.
Saluti e buon trading a tutti.