4 SMAs & Inside Bar (Colored)SMAs and Inside Bar strategy is very common as far as Technical analysis is concern. This script is a combination of 10-20-50-200 SMA and Inside Bar Candle Identification.
SMA Crossover:
4 SMAs (10, 20, 50 & 200) are combined here in one single indicator.
Crossover signal for Buy as "B" will be shown in the chart if SMA 10 is above 20 & 50 and SMA 20 is above 50.
Crossover signal for Sell as "S" will be shown in the chart if SMA 10 is below 20 & 50 and SMA 20 is below 50.
Inside Bar Identification:
This is to simply identify if there is a inside bar candle. The logic is very simple - High of the previous candle should be higher than current candle and low of the previous candle should be lower than the current candle.
If the previous candle is red, the following candle would be Yellow - which may give some bullish view in most of the cases but not always
If the previous candle is green, the following candle would be Black - which may give some bearish view in most of the cases but not always
Be Cautious when you see alternate yellow and black candle, it may give move on the both side
Please comment if you have any interesting ideas to improve this indicator.
ניתוח נרות
Price Action: Inside Bar BoxesThis script automatically draws rectangles around bars inside IB pattern.
Note :: because Pinescript does not allow changes to already drawn charts on historical bars, checkbox "show only last box" doesn't work for arrows
3 Candle EngulfingThree Line Strike Candlestick Pattern (3 candle Engulfing pattern) to help you detect sniper entry point mostly for (forex)
You can use this as an indicator to detect an entry point for your trade.
Please cross-check the Macro and Micro trend and don't go against the trend. Also use other indicators to confirm your entry.
You can set the engulfing minimum pips value (Default is set to 10 pips)
How it works:
Yellow candle with an up green triangle means a long entry
White candle with a down green triangle means a short entry
Financial Label
5 Magic Numbers, C, A & S (for CANSLIM) in 1 label.
This label shows:
1. Latest Quarter Earnings (QR)
2. Annual Earnings (AR)
3. Total Share Outstanding
4. Market Capital
5. Floating Shares
6. Earning per Share (EPS)
7. Price per Earning Ratio (P/E Ratio @ PER)
8. Return On Equity (ROE)
9. Fair Value (FV)
10. Non Tangible Asset (NTA)
This label will show the data only on charts that have financial data only.
Warrants, futures, crypto, etc. will not have any display on this label.
Suitable for all markets including US, Asia, Europe and others.
Thus, no currency symbol ($,¥,€, RM, etc.) will be displayed, only numbers.
Green label means EPS is positive - profitable company.
Red label means EPS is negative - loss making company.
Note:
1. The values might be a little bit different from official data, due to type of data taken & calculations, as we have a few formulas for each data.
2. Please confirm more accurate data from your trusted and official source of data.
Special Time PeriodWith this indicator, you can choose candles in the period you want on your chart.
How ?
• If your chart is 5 minutes, the duration should be greater than 5 on this indicator.
If you do not do it this way, there will be gaps in the price, it will not give the right result.
• If you want to see it in minutes, you must enter a direct numerical value. For example, to see 2 hours, you must enter the number 120. Because 2 hours is 120 minutes.
Like the warning above, if you want to plot a 2-hour chart with this indicator, a maximum of 1 hour should be selected on your main chart.
• Resolution, eg. '60' - 60 minutes, 'D' - daily, 'W' - weekly, 'M' - monthly, '5D' - 5 days, '12M' - one year, '3M' - one quarter
• For example, if you want to see the 2-day chart, you should have a maximum of 1 day chart open on your home screen and write "2D" to the indicator value.
• You will get much better results if the period on your main chart and the period on this indicator are multiples of each other.
• In the image below, the period on the main chart is 30 minutes, but the period on the indicator is 90
• Click on the facing brackets at the top right of the legend and your chart will enlarge.
PBK Trend Band with EntryTrend band with background coloring of the trend.
Use 5, 15 for fast detection on EMAs
Additional arrows show under some favorable conditions.
This is work in progress, I release this version so that some good friend can make use of it.
Longest CandleThe script detects and highlights the longest candle (from high to low) in a user specified lookback period.
Description
The longest candle in a specified range will form very strong predefined support and resistance levels. The concept is based on Aurora Candles.
How To Use
Use the indicator to find the longest candle in a specified lookback period. You can then mark the highs and lows for predefined S/R areas. Each trader can adjust the lookback period and colour.
Access the indicator
• Contact me on TradingView
ROS [Range of Swag]Creates any multitimeframe level and marks opens, highs lows and midpoints
Comes with labels (hidable)
Works on Bar-by-bar replay
Customizable color!
The default 3 ranges are weekly, monthly, and quarterly in that order.
If you want to change the labels change it in the code... or just hide them.
Big thanks to @spacemanbtc @Kriswaters for the code (levels and session breaks) respectively.
Will be looking to improve it
Elephant - Shooting Star CandlesThis script aims to show elephant and shootingstar candles. Body for elephant are at least 70% of the whole candle. Shootingstar have a body of 35% times the lenht of the full candle. Both are searched with 1.3 Standard Deviations as noise within 100 bars. Colors are ploted if closes above/below 200 SMA
15m Candle ToolShows historical 15min candles for the 1m, 3m , and 5m time frames.
Counts down the time until the current 5m, 15m, and 1H candles close.
Recommended use on the 1m, 3m , and 5m TimeFrames!!!
Legend:
Vertical Lines (Left to Right)
-15m Candle wick (solid line) *
-Close of current 5m candle (red dotted)
-Close of current 15m candle (blue dashed)
- Close of current 1H candle (green solid)
Horizontal Lines (Top to Bottom)
- Previous 15m high (top of wick) *
- Subdivisions of the low to high of the previous 15m candle (.25, .50, .75) (WHITE LINES, .50 is extended)
- inter candle average of the highs within the previous 15m candle (solid green)
- average of the inter candle highs and lows (grey dashed)
- inter candle average of the lows within the previous 15m candle (solid red)
- Previous 15m low (bottom of wick) *
Previous Candle Body *
* = Changes color based on the bar color.
TWP Next Bar Close Countdown█ OVERVIEW
This script displays the time remaining for your charts current timeframe.period or a higher timeframe with the ability to create alerts that ping on the opening of the new bar that you have selected. It can be very easy to get bogged down in the charts when day trading on smaller timeframes and forgetting that it is the wave of longer timeframe traders that are setting the tone. This script was born out of this pitfall that I was noticing in my own trading.
█ CONCEPTS
The script uses a series of functions to get produce the time remaining and texts for the top and bottom rows within the table display.
█ FEATURES
1 — Resolution
• Auto / Manual selection
• There is tooltip explains how the automatic time selection operates (see below)
AUTO_TIMEFRAME_TOOLTIP = "When the Auto option is selected, the timeframe of the indicator is chosen automatically based on the chart timeframe. The Timeframe dropdown is ignored. The automated timeframes are:
'10 minutes' for any chart timeframes below '1 minute'
'1 hour' for any chart timeframes starting from '1 minute' up to '5 minutes'
'4 hours' for any chart timeframes starting from '5 minutes' up to '60 minutes'
'1 day' for any chart timeframes starting from '1 hour' up to '4 hours'
'1 week' for any chart timeframes starting from '4 hours' up to '1 day'
'1 month' for any timeframes starting from '1 day' up to '1 week'
'3 months' for any timeframes starting from '1 week' up to '1 month'
'12 months' for any timeframes above '1 month'"
2 — Text
• Size selection
• Color selection
3 — Display
• Frame color selection
• Display position selection
4 — Alerts
• Market session selection
█ HOW TO USE
• Add it to your chart, select your timeframe, change up your colors, and enjoy yourself
█ NOTES
• We have no control over when realtime updates occur. A realtime bar can open, and then no realtime updates can occur until the open of the next realtime bar. The time between updates can vary considerably. For more please check out Pine's execution model and bar states.
• As a reminder, I did make this script for myself so if you find that you are using a 2-hour alert or countdown the formatting for the words may not be succinct as they should be. We will write that loss off to my growing pine skills
█ LIMITATIONS
• You will not be able to retrieve the time from a timeframe smaller than what is currently selected for the chart.
TWP Chart Period Breaks█ OVERVIEW
This script plots historical and one future vertical line at the higher timeframe.period time mark of your choosing along with the ability to create alerts that ping on the opening of the new bar on the timeframe and during the market session that you have selected. This script adds body to the default "session breaks" that Tradingview provides within the chart settings. It can be a hassle visually keeping track of time when trading but particularly when day trading. Timing is so important and I needed some visual assistance aka some guard rails for my mind to operate in, in order to better execute my trades. I hope this helps you too.
█ CONCEPTS
The script takes some simple steps to plot vertical lines onto your chart with some extra goodies to go the extra yard.
█ FEATURES
1 — Resolution
• Auto / Manual selection
• There is tooltip explains how the automatic time selection operates (see below)
AUTO_TIMEFRAME_TOOLTIP = "When the Auto option is selected, the timeframe of the indicator is chosen automatically based on the chart timeframe. The Timeframe dropdown is ignored. The automated timeframes are:
'10 minutes' for any chart timeframes below '1 minute'
'1 hour' for any chart timeframes starting from '1 minute' up to '5 minutes'
'4 hours' for any chart timeframes starting from '5 minutes' up to '60 minutes'
'1 day' for any chart timeframes starting from '1 hour' up to '4 hours'
'1 week' for any chart timeframes starting from '4 hours' up to '1 day'
'1 month' for any chart timeframes starting from '1 day' up to '1 week'
'3 months' for any chart timeframes starting from '1 week' up to '1 month'
'12 months' for any chart timeframes above '1 month'"
2 — Show Future Period Line
3 — Number of Historical Lines Back
4 — Line Style
• Line color selection
• Line width selection
5 — Alerts
• Market session selection
█ HOW TO USE
• Add it to your chart, select your timeframe, change up your colors, add your alerts (if necessary) and enjoy yourself!
small channel in 5minThis indicator designed for 5min time-frame.
it detects a candlestick pattern in one hour time-frame and draw a channel based on the detected pattern, where two candles and are covered by the third one , in 5 min time-frame.
the bottom, middle and top of the channel are colored by green, gray and red respectively. this channel may help user to use it as a possible support and resistance region.
(the pattern is defined in line 11 to 13.)
enjoy it
Bar StatisticsThis script calculates and displays some bar statistics.
For the bar length statistics, it takes every length of upper or lower movements and calculates their average (with SD), median, and max. That way, you can see whether there is a bias in the market or not.
Eg.: If for 10 bars, the market moved 2 up, then 1 down, then 3 up, then 2 down, and 2 up, the average up bars length would be at 2.33, while the average for the down length would be at 1.5, showing that upper movements last longer than down movements.
For the range statistics, it takes the true range of each bar and calculates where the close of the bar is in relation to the true low of it. So if the closing of the bar is at 10.0, the low is at 9.0, and the high is at 10.2, the candle closed in the upper third of the bar. This process is calculated for every bar and for both closing prices and open prices. It is very useful to locate biasses, and they can you a better view of the market, since for most of the time a bar will open on an extreme and close on another extreme.
Eg.: Here on the DJI, we can see that for most of the time, a month opens at the lower third (near the low) and closes at the upper third (near the high). We can also see that it is very difficult for a month to open or close on the middle of the candle, showing how important the first and the last day are for determining the trend of the rest of the month.
Pivot Points on SR linesAnalyzing price movements for a few years taught me one thing - markets always reverse bouncing off some horizontal Support/Resistance level. The only exception to this rule is when market pops new ATH (All Time High), which certainly happened in so-called "price discovery" run - this asset has never been in this space before, so no Support/Resistance could have been formed, while the rally had to stop at some point anyway.
In all other cases, analyzing past market movements, you will be able to find a place where the market reversed or gathered before. The difficulty is to understand (or guess?) from which S/R level market will reverse right now, because there are many of them. Even if this is probably not possible to make such guess correctly and always, it is good to know when potential reversal shown by whatever indicator you're using happened on SR line or in the middle of nowhere. That last case would turn out to be fake to your worst regrets. Ability to filter-out all those fake pivots is a value my indicator delivers.
Example? It is very often considered an entry signal when Stochastic %K and %D lines cross each other, especially in overbought/oversold area. It could work quite well in sideways markets, but when a trend begins, Stochastic would report CONSECUTIVE counter-trend signals, draining your trading balance to zero quickly. But this trend took place in price-discovery area (not necessarily when going for the new ATH ), so all those counter-trend signals happened not at S/R levels. Hence, they should be ignored.
Big triangles mark pivot point which happened on the S/R line. Small triangles - in the middle of nowhere.
How good is it? I compared it with one of my previous scripts, the "PivotPoints with Momentum confirmation" (), this new script confirms only 1/3 of pivots in the old script on 1m EURUSD chart. Filtering out 2/3 of potentially bad entries is a good result, I'd say :)
This script also fires alerts - alert is triggered as soon as PivotPoint is noticed, on a candle close.
I strongly recommend NOT using it not using this indicator as a standalone indicator. There is so much information you should take into consideration as well - market bias, volume , higher timeframe trend... To make it convenient to join PivotPoints information with other indicators, I have "exported" one plot so you can include it in your own - just use input.source in your own code to have it return 1 for PivotLow ( aka Long entry) and -1 for PivotHigh ( aka Short entry).
Pivot Points on SR lines DEMOAnalyzing price movements for a few years taught me one thing - markets always reverse bouncing off some horizontal Support/Resistance level. The only exception to this rule is when market pops new ATH (All Time High), which certainly happened in so-called "price discovery" run - this asset has never been in this space before, so no Support/Resistance could have been formed, while the rally had to stop at some point anyway.
In all other cases, analyzing past market movements, you will be able to find a place where the market reversed or gathered before. The difficulty is to understand (or guess?) from which S/R level market will reverse right now, because there are many of them. Even if this is probably not possible to make such guess correctly and always, it is good to know when potential reversal shown by whatever indicator you're using happened on SR line or in the middle of nowhere. That last case would turn out to be fake to your worst regrets. Ability to filter-out all those fake pivots is a value my indicator delivers.
Example? It is very often considered an entry signal when Stochastic %K and %D lines cross each other, especially in overbought/oversold area. It could work quite well in sideways markets, but when a trend begins, Stochastic would report CONSECUTIVE counter-trend signals, draining your trading balance to zero quickly. But this trend took place in price-discovery area (not necessarily when going for the new ATH ), so all those counter-trend signals happened not at S/R levels. Hence, they should be ignored.
Big triangles mark pivot point which happened on the S/R line. Small triangles - in the middle of nowhere.
How good is it? I compared it with one of my previous scripts, the "PivotPoints with Momentum confirmation" (), this new script confirms only 1/3 of pivots in the old script on 1m EURUSD chart. Filtering out 2/3 of potentially bad entries is a good result, I'd say :)
This script also fires alerts - alert is triggered as soon as PivotPoint is noticed, on a candle close.
I strongly recommend NOT using it not using this indicator as a standalone indicator. There is so much information you should take into consideration as well - market bias, volume , higher timeframe trend... To make it convenient to join PivotPoints information with other indicators, I have "exported" one plot so you can include it in your own - just use input.source in your own code to have it return 1 for PivotLow ( aka Long entry) and -1 for PivotHigh ( aka Short entry).
Pivot Reversal Strategy + alerts via TradingConnector to indicesSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 14 and 22.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
Consecutive Up/Down Strat + alerts via TradingConnector to ForexSoftware part of algotrading is simpler than you think. TradingView is a great place to do this actually. To present it, I'm publishing each of the default strategies you can find in Pinescript editor's "built-in" list with slight modification - I'm only adding 2 lines of code, which will trigger alerts, ready to be forwarded to your broker via TradingConnector and instantly executed there. Alerts added in this script: 12 and 15.
How it works:
1. TradingView alert fires.
2. TradingConnector catches it and forwards to MetaTrader4/5 you got from your broker.
3. Trade gets executed inside MetaTrader within 1 second of fired alert.
When configuring alert, make sure to select "alert() function calls only" in CreateAlert popup. One alert per ticker is required.
Adding stop-loss, take-profit, trailing-stop, break-even or executing pending orders is also possible. These topics have been covered in other example posts.
This routing works for Forex, indices, stocks, crypto - anything your broker offers via their MetaTrader4 or 5.
Disclaimer: This concept is presented for educational purposes only. Profitable results of trading this strategy are not guaranteed even if the backtest suggests so. By no means this post can be considered a trading advice. You trade at your own risk.
If you are thinking to execute this particular strategy, make sure to find the instrument, settings and timeframe which you like most. You can do this by your own research only.
Super D2Momentum Indicator based on previous candle structure over past 40 periods
- Blue is momentum score
- Green = 15 ema
- Red = 50 sma
- orange = 100 sma
The indicator looks at the previous candles differences between open, close, high, and low to determine momentum. A high close relative to open or low indicates very strong momentum for example.
TICK and Price Action Indicator for NQ 5 minuteThis indicator for 5 minute NQ charts utilises TICK index and price action.
Where TICK opens beyond +1000/-1000 this is an overbought/oversold signal.
Similarly, when TICK closes below -200 it is a sell signal, and above +200 it is a buy signal.
This indicator colours the NQ bars based on the closing/opening values of the previous TICK.
It also draws arrows where price action (close above previous high, close below previous low) is in concordance with TICK behaviour.
Start of week CandlesI was checking some concepts about weekly profiles and Monday range.
This scripts highlights monday and tuesday in forex/futures and mondays in stocks. The weekly direction is mostly defined monday and tuesday, if tuesday crosses monday high or low, following days will continue same direction.
Gann Square of 9Gann's Square's are some of the best known tools created by Gann. His most well known square was his Square of 9.
The reason for this was because of the symmetry 9 had with itself. Gann was able to balance both price and time with this symmetry.
- 9 is the last single-digit and largest number
- You can add anything to 9 and it will give you a natural number
- (9 + 3 = 12); 1 + 2 = 3... (9 + 9 = 18); 1 + 8 = 9... etc.
- Multiplying any number by 9 will have the natural number be 9
- (9 * 6 = 54); 5 + 4 = 9... (9 * 3 = 27); 2 + 7 = 9... etc.
For these reason, Gann claimed that 9 has everything within itself.
Here I have created an on-chart square of 9 including the cardinal and ordinal cross points colored. In the settings you are able to customize the starting value of the table as well as the period movement. In most cases, 81 is not high enough to be useful in charting cases, so I'd recommend printing out your own Gann Square of 9 that goes as high as you need it to go.
THIS IS NOT TRADING ADVICE ; please use your own technical analysis before making any decisions based off of public indicators. Learn more about Gann's Squares before attempting to use them as this script was not meant to give you answers, only the table.
Trend lines + Pivot Levels + Candlestick PatternsThis is a pure PRICE ACTION indicator that will show you possible trend lines, pivot lines and candlestick patterns at once.
it has been designed to determine upper and lower trend lines in the chart and you can set candlestick patterns on them with alerts!
it means that you add the indicator to the chart and set the alert and done!
whenever a pinbar or engulf or breakout(in both directions) happens, you will be notified by alerts.
you also have pivot lines on the chart by this indicator. you can set the candlesticks on pivots instead of trend lines, so if you are a fan of support and resistance you can have this one, it depends on you.
all of the pivots and trend lines and also the candle sticks are customizable, so you can exactly select the pinbar, engulfing or breakout candle that matches with your mindset. for example you can set a pinbar that long shadow is 4 times or 3 times greater than the body, it's on you.
you can also customize trendlines or pivot lines, if you are scalper you can set it to small trend lines and if you are day trader or long term trader you can set it to the number that fits with your strategy.
trends and pivots will be updated automatically and there is no need to set it every time.
Be PROFITABLE!
$kMagician /*