MultiTimeFrame Fractals D W M [xdecow]This indicator shows fractals in different timeframes. With the possibility of coloring the bars with any combination of current, daily, weekly and monthly timeframes.
The return points are calculated as follows:
high > last 3 highs and close above highest low
low < last 3 lows and closes below lowest high
The direction of higher timeframes fractals tend to be more durable and reliable. This indicator helps to find the fractal alignment of different timeframes, so that you can look for trade opportunities in the same direction as the higher timeframes and improve your chances.
ローソク足分析
Simple Moving Average - ATR Trailing StopThe old adage goes "Cut losers fast and let the winners run"
With this in mind, this will plot a dynamic trailing stop by subtracting any multiplier of the Average True Range (ATR) from the SMA of your choice.
Candlesticks ANN for Stock Markets TF : 1WHello, this script consists of training candlesticks with Artificial Neural Networks (ANN).
In addition to the first series, candlesticks' bodies and wicks were also introduced as training inputs.
The inputs are individually trained to find the relationship between the subsequent historical value of all candlestick values 1.(High,Low,Close,Open)
The outputs are adapted to the current values with a simple forecast code.
Once the OHLC value is found, the exponential moving averages of 5 and 20 periods are used.
Reminder : OHLC = (Open + High + Close + Low ) / 4
First version :
Script is designed for S&P 500 Indices,Funds,ETFs, especially S&P 500 Stocks,and for all liquid Stocks all around the World.
NOTE: This script is only suitable for 1W time-frame for Stocks.
The average training error rates are less than 5 per thousand for each candlestick variable. (Average Error < 0.005 )
I've just finished it and haven't tested it in detail.
So let's use it carefully as a supporter.
Best regards !
ConditionZeroThis study is a proof of concept analysis of situations that can lead to divide with zero or divide by zero conditions. Such situations can lead to mathematical errors, and can increase the potential for false alerts.
One common formula that is prone to this situation is:
pct=(high-close)/(high-low)
This is used to calculate percentage change of a candlestick.
Common outcomes are 0/0, 0/x, x/0, where x is a non zero value.
Visualizing this situation allows for more robust script development and deployment.
There are no user configurations.
Deadband cross detection for BTC (XBT)Description: meant to be used with BTCUSD (or XBTUSD ) on 3 mins to 1h candles charts.
Idea is to provide a tool to detect break-out's from a dead band around an EMA, and to detect back-in's to the dead band.
Detection is fundamentally based on how much %, at least, a certain candle body has ruptured the dead band (adjustable).
Long and short flags are placed on the chart, as well as the deadband. Can be used to generate alers.
With minimal modifications, can be convert to a Strategy script.
Following are ideas to play around if you want. Room for improvements:
- convert constants into inputs, and diversify thresholds assimetrically
- play around with wether or not using pyramiding (here pyramiding is blocked)
- look at several bars in a sequence, not only current
ANN Next Coming Candlestick Forecast SPX 1D v1.0WARNING:
Experimental and incomplete.
Script is open to development and will be developed.
This is just version 1.0
STRUCTURE
This script is trained according to the open, close, high and low values of the bars.
It is tried to predict the future values of opening, closing, high and low values.
A few simple codes were used to correlate expectation with current values. (You can see between line 129 - 159 )
Therefore, they are all individually trained.
You can see in functions.
The average training error of each variable is less than 0.011.
NOTE :
This script is designed for experimental use on S & P 500 and connected instruments only on 1-day bars.
The Plotcandle function is inspired by the following script of alexgrover :
Since we estimate the next values, our error rates should be much lower for all candlestick values. This is just first version to show logic.
I will continue to look for other variables to reach average error = 0.001 - 0.005 for each candlestick status.
Feel free to use and improve , this is open-source.
Best regards.
Trendy Bar Trend ColorTrendy Bar Trend Color
Inspired by trend candlestick charts on other trading platforms. Changes bar colors to stay in trend much like Heikin Ashi candles without the ATR price distortion. This is done by comparing the HL2 and/or Open-Close values of current candlestick to the prior candlestick.
Long Tail Candle by Oliver VelezThis script detects an event created by Oliver Velez, it is a wide-range candle with a small body and a long tail (hammer-type candle), its range is noticeably larger than previous candles, as a rule it can be taken that the body should be maximum of 30% of the total range of the candle with a long tail. The stop goes under the tail and the signal is given when the next candle followed by the long tail candle exceeds its body, do not program this condition so that the alert indicates that a long tail candle was generated and the trader has some Time to visualize the graph and wait for the signal.
The default configuration is very basic, each trader must adjust to their needs.
- Trend filters can be activated.
- Alerts available.
Thumbs up
Candle TheoryDescription: The theory behind this script is that if within the last 10 candles, if the majority of them are green and the average length (wick to wick) of those majority green candles is greater than the average length of the minority red candles then it will signal that this is a bullish move within the market and signal you to buy. The opposite is true for bearish moves.
Inputs:
Length - this allows you to decide how many candles to look back, default/recommended is 10
Show First Signal In Series Only - using this indicator without this checked will show many more signals in a row. This allows you to just get a signal for the first candle that is the predicted bullish or bearish move
[PX] M/W/D LevelHey guys,
this script shows monthly, weekly and daily OHLC data represented as horizontal level.
I tried to make it as user-friendly as possible. Therefore, you can add different colors and styles for each level, as well as turn them on and off.
With the "Label Offset" -parameter you are in control where the label text should appear. You can shift it from left to right and vice-versa. To shift it to the left choose a negative value. To shift it to the right use a positive one.
This best setting for me personally is the "Candle Selection" -dropdown. This allows you to decide wether you want to show the previous candles OHLC-data or the current live OHLC-data.
!!CAUTION!! If you use the "Current Month/Week/Day" -selection be aware that values shown are "live"-data of the current candle. Therefore, values will change the same way your chart keeps changing on live data.
The "Previous Month/Week/Day" -selection on the other hand is historical data and therefore only changes once we reached a new month/week/day.
If you like my work, consider leaving a like :)
Happy trading!
Normailzed CandleThis indicator normalizes Day's candle with Open. Idea is to see the daily movement in the context of the Open of the Day.
Larry Williams talks about Open being the most important price of the day. Hence, this indicator.
The Green line is average Open-to-High for occurrences of Red days. The Red line is average Open-to-Low for occurrences of Green days.
Average are not perfect calculations since occurrences(of Red or Green) will vary within the time-span used for averages.
These can used to gauge likelihood of the intra-day price reversal. If the price exceeds green/red line, there is higher likelihood of the price closing above/below open.
The blue lines are average Open-to-close for Green and Red occurrences.
Be careful on days where consecutive 3rd Highest High or Lowest Low day is made and also on the next day after such day. Prices may turn direction at least for a short while.
The precursor to this script of the Candle Infopanel script. That script was just numbers in panel and this is a graphical representation. I
Some of the calculations from original script are commented here because it would make visuals clutters (and probably the left-out calculation are not critical to making trade decisions!)
SBER HA Smooth ContainerSBER's modified Heikin Ashi Smoothed Container
Uses EMA 16 and Heikin Ashi Candles.. For NIFTY and its stocks only.
Heiken Ashi Triangles at the Top and Bottom of ScreenHeiken Ashi Triangles at the Top and Bottom of Screen
The image below shows the comparison to actual Heiken Ashi candles
(Though changing from candles to Heiken Ashi tends to smooth the triangles a little)
Bull Bear BarsHighlights when the movement of a candle is supported by a major increase in volume. Thus one could reasonably assume that a follow thru is likely to occur.
Blue= bullish
Yellow = bearish
I personally use this as an entry system. I enter only if the blue high or yellow low is surpassed by the very next candle , if not, then i do not enter. Thus trading with momentum and greatly avoiding choppy market conditions.
***Example*** In the chart above, during $XBT’s month long November 2019 Downtrend.. I am showing my bull long entries (without showing the obvious winning bear entries!) and found that only once did the price fail to advance less than 1% before any significant drawdown occurs (As shown on the chart by thumbs up & thumbs down symbols.)
***When using this indicator it is important to keep in mind that Blue bullish bars can and will appear at the top of upswings likewise, yellow bearish bars can and will appear at the bottom of downswings.. which could potentially signify trend reversals.
This knowledge can also can be used to ones advantage (” buy when everyone is selling, sell when everyone is buying.”)
This is a common occurrence because retail traders are often late to the party before they catch on to a trend resulting in buying heavily at the top and selling heavily at the bottom providing liquidity to earlier entrants to exit and as per usual the price then reverses on the mass of late bloomers.***
This indicator can be used in many different ways so goodluck in finding the method that best suits your style and be careful out there. Cheers
BONUS: Also has the ability to set alerts!
Urban TowersI translated a scalping system by Navin Prithyani into pine and want to share it with you.
Navin has a lot of resources for the system online including an extensive +60m video explaining the ins and outs.
Including links is against the house rules, so you'll have to DYOR.
Quick Criteria Overview:
---
- Can see through EMAs
- Entry above the signal candle
- Stop below the signal candle
- Targets include 1:1, trailing stop, and psychological levels
Why not give it a whirl? Back test it and share your results.
This is a fairly mechanical scalping system to be used on lower time frames.
I have programmed alerts into the system so you don't have to stare at your screen all day.
Happy profits y'all, enjoy the scalper.
Peace.
Tabajara simple versionIndicator Tabajara from the brazilian trader André Machado.
Simple version with moving averages SMA 20 and SMA 200.
If fast moving average (20) is ascending, positive candles will receive green color.
Descending fast moving average (20) makes negative candles receive red color.
In other cases the candles will be gray (positive) and black (negative).
The slow moving average (SMA 200) shows the primary trend.
It´s also possible using the indicator with exponential moving averages.
3BCSP - JWFThis is a real-time indicator to illustrate 3bar / 3 candle stick patterns
the current pattern index is displayed as a decimal index with it's reverse counterpart index (buy/sell) after the slash aka
( index / reverse index )
BEST Ultimate Engulfing ScreenerHello traders
Continuing deeper and stronger with the screeners serie. I keep getting requests private messages and requests saying that screeners aren't possible with TradingView.
My answer is always... "Reallyyy ??" (I never find a better answer than that...)
I'll publish a few screeners just for everyone to understand what can be done with Pinescript. We don't have to wait for TradingView to allow screener based on custom indicator - we can build our own ^^
I - What is an engulfing pattern
Let's start with a screener to check for a very famous candlestick pattern called engulfing
Engulfing candles tend to signal a reversal of the current trend in the market. This specific pattern involves two candles with the latter candle ‘engulfing’ the entire body of the candle before it.
The engulfing candle can be bullish or bearish depending on where it forms in relation to the existing trend
Source and more info here
These engulfing candles indicate a strong shift in direction, and when combined with observation of the price-trending direction that precedes it, this shift creates the opportunity for a trading strategy.
II - How did I set the screener
I added an optional filter being Price vs SMA. The idea is to select only the engulfing whenever the price also breaks an SMA - this usually translates a stronger move - but could sometimes give the signal too late (#meh #trading #ain't #easy)
The visual signals are as follow:
- square: whenever the engine detects an engulfing and an SMA breakout
- triangle: the engine only detects an engulfing
- dash: none of the above
Then the colors are:
- orange when bullish
- yellow when bearish
- aqua/dash when none of the above
Cool Hacks
"But sir... what can we do with only 5 instruments for a screener?" I agree not much but...
even if I allow only 5 instruments per indicator - nothing prevents you from adding multiple times the same indicator and changing the selected instruments for each. I also show why the SPX500 gave a yellow triangle (bearish engulfing) and how to match it with the screener.
=> imgur.com
Wishing you all the BEST trading
Dave
Bull Bear 180 by Oliver VelezThis script detects an event created by Oliver Velez is called Bull / Bear 180, in the following images the event is detailed:
- The size of the control bar can be set compared to a number of previous bars
- The minimum % of the control bar body can be set
- You can filter by trend
- Possibility of seeing fast and slow media with direction detection and color change
- Various graphic settings
- Event alerts
To enjoy!
A thumbs up if you like me!
The Multi-day Central Pivot RangeThe indicator is a Multi-day CPR.
It shows CPR range as per yesterday's HLC and also CPR range for last n number of trading sessions.
For example: If you mention the value as two in Multi-day CPR (blue color) then it calculates the CPR using HLC of the last two trading sessions.
Also, the daily CPR is designed in such a way to highlight Virgin CPR (purple color) separately from the normal CPR(fuchsia color) .
Candles (acronyms)Same script as "Candles" by TraderMentality but with acronyms for candle shape names.
The Golden PivotsThe Golden Pivots indicator is a combination of the following:
1. Central Pivot Range
2. Floor Pivots
3. Camarilla Pivots
4. Monthly, Weekly, Daily Highs and lows
5. Candlestick Setups
All the pivot calculations are based on Secret of Pivot Boss book by Frank Ochoa.
One can also view tomorrow's central pivot range by today end of the day.