Pinbar (30-50 Rule)My first script to identify pin bars with a predefined rules, any feedbacks are welcome.
Rules
Bullish Candle
1. Body of the candle should be above the 50% of the day's price range
AND
2. Either the open or the close should be above the 30% of the day's price range
if both the above conditions are met then a bullish arrow is produced with "B".
Bearish Candle
1. Body of the candle should be below the 50% of the day's price range
AND
2. Either the open or the close should be below the 30% of the day's price range
if both the above conditions are met then a bearish arrow is produced with "S".
Thanks
Hope this indicator helps you identify trading entries.
ローソク足分析
Experimental Entry Interface (Buy Arrows with TP & SL)This script provides high probability entry points and includes Take Profit and Stop Loss targets.
It attempts to predict when the market conditions are set to move up, and prints long positions.
In addition to Long Entry Arrows, it will print Take Profit / Stop Loss targets.
This indicator is highly adjustable. Hence the name 'Experimental' in the title. Experiment with it to find the results you want.
Designed for use on the 1H timeframe in Forex, but could possibly be useful elsewhere. Do your own testing.
This indicator can repaint. It is best used with alerts set for once per bar close, so that your alerts do not repaint and your trades are solid.
Not ever signal is a winner. Backtest thoroughly. Adjust accordingly.
Arrows
Four sets of colored arrows are included.
💵 💶 Green and Blue Entry Arrows are formed when the market is in an uptrend, and has a momentary pullback.
💴 💷 Yellow and Purple Entry Arrows are formed when the market is just starting to recover from being severely oversold.
Backtest Mode
Turn on Backtest Mode to easily see if an entry ended up as a winner or loser. A Take Profit and Stop Loss line will be drawn to show results.
Take Profit & Stop Loss Targets
You have two options for this.
Price will show you where your TP/SL exits should be placed. These values will show up under the arrow, based on your Risk/Reward ratio.
Pips are much more simple, and will only show you the market entry point and how many pips up/down to place your SL/TP. Warning: This is fixed at a 1:1 RRR .
Risk/Reward Adjustment
Each entry arrow color allows custom risk/reward ratio adjustment.
Dollar Amounts Displayed
Change your account value and leverage to see how much you would have won on each trade.
How to trade with it?
(Forex, 1H) Open the settings, and turn on all the arrow entries. Turn on Backtest mode to see how past trades would have played out. Turn on TakeProfit/StopLoss Targets to see where to set your targets, for each arrow. Set an alert to notify you once per candle close when there is an Entry. Trade happy!
Bill Williams Alligators are also included, if you want. Not necessary though. Some of the calculations depend on them for trend direction analysis.
Real Candles Heikin Ashi (HA) Candle functionsThis script plots both real and HA candles regardless or which are used on the chart in TV settings.
(and has the functions for you to use.)
Lots of people seem to misunderstand backtesting (or scam people) based on HA candles.
Backtesting with HA candles leads to impossible trades. ALWAYS backtest with real candles.
That doesn't mean you might not want to look at HA candle values to make trading decisions.
Add the code below to calculate HA candles from real and use that in your HA trading algo,
but test it on real charts.
Kay-Rules: Candlestick PatternsThis indicator will mark 5 different candlestick patterns:
(1) bullish & bearish engulfing
(2) hammer & shooting star doji
(3) dragonfly & gravestone doji
(4) morning & evening star doji
(5) bottom & top tweezer
You may follow candlestick trading strategy by Rayner Teo here
Support and Resistance plotterThe script uses high/low/higher high/lower low for Support and Resistance identification but takes into account only pivots with wick making low/high opposite to candle body. Such candles point to hard market swings into during candle timeframe.
Price usually come bake to such levels and make double top/bottom, divergences on different osc or starts a new trend if this level is broken.
If Support lvl and Resistance lvl meets the movement of price in the direction from this combined lvl is much accelerated.
examples
intraday trading perioddisplay the intraday trading period (08:30 - 15:00) on chart with high transparent white background.
you can edit the time period by yourself in the pine editor mode.
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