Multi Time Frame CandlesHello Traders,
This script can show (upto) 3 candles of another time frames without changing chart time frame realtime . You can choose the time frame and number of candles in the options. You have option to change body and wick colors as well.
in this example number of candles is 2:
You can set body and wick colors:
In this example, weekly candles are shown on 1h chart:
Enjoy!
Trendfollowing
RSI TrendsRSI is a momentum indicator, however most people seem to be using it to go against the momentum by trying to identify tops/bottoms using it. Its in my opinion the wrong way to be using it. It can be easily used for trend following which seems like a better use for it.
Uptrend - RSI > 60
Downtrend - RSI < 40
Sideways - RSI between 40 and 60
If however not interested in filtering for sideways trends and convert it to a long-short only strategy that stays in market all the time then it can be simply modified by setting both overbought/oversold thresholds to 50. In such a case uptrend will be above 50 and downtrend will be less than 50.
Note: wait for close for current bar to be confirmed as RSI is calculated at close
TrianglePoint strategyThis is trend following strategy ... when price is trading well above 200 ema and forms a triangle (based on number of bars defined)
BUY
====
when fast ema > 200 ema
check for triangle of last N bars (default set to 9)
EXIT
======
when fast ema crosses down middle term ema
if price reaches above 5% of buy , it changes the color to purple. You can close any time or wait for above signal.
STOP LOSS
=======
stop loss default value set to 5%
Note: No triangle shown on the chart. I will find out how to add the lines to the chart.
Warning
=========
For the use of educational purposes only
Support Resistance - Aging [Example]Hello All,
First all of Thanks to Pine Team for adding Arrays to Pine!
In this script I tried to make example for
1. Finding S/R lines using highest/lowest function
2. Using 1D array as 2D (we keep S/R levels and age)
3. "Age" usage for S/R levels, getting older on each candle and changing colors by their age (maximum age is 127 then it disappears)
You can use "Close"/Open " or " High/Low " as source.
There is an option for the background color, by default it's Black, do not forget to set it accordingly :)
Enjoy!
10ema Basic Swing Trade StrategySTRATEGY INGREDIENTS
* DAILY chart
* 10 ema on daily
* 50 ema on daily
STRATEGY RECIPE SUMMARY
Wait for a CLOSE BELOW the 10 ema on the daily chart ...YESTERDAY. Wait for a CLOSE ABOVE the 10ema TODAY...ensure the price action is ABOVE the 50 ema on the daily chart ...buy at the close if the green arrow indicator is shown. Be sure to get your order filled BEFORE the market closes -- if you are using directional options...b/c you know, the options market doesn't have after hours.
BE AWARE of your own risk tolerance...step stops at appropriate levels...Take responsibility for your own trades. BACKTEST this strategy before using a LIVE MONEY TRADING ACCOUNT.
Reversal closing priceThe reversal closing price (RCP) is a candlestick pattern which follows two simples rules:
the low price of current candle needs to be lower than the low price of the last 2 candles
the closing price of current candle needes to be higher than the closing price of the last candle
This generates a signal for a long position. For a short position, the conditions are inverted:
the high price of current candle needs to be higher than the high price of the last 2 candles
the closing price of current candle needes to be lower than the closing price of the last candle
Since RCP is a trend follower indicator, the strategy is programmed in such a way that long positions are only placed if the short period EMA is above the long period EMA, and short positions are only placed if the short EMA is bellow the long EMA. Both periods are configurable, and should be ajusted for each asset.
This strategy uses a fixed stop loss and take profit, and the it's ratio is configurable. The stop price is one tick lower than the lowest price of X candles prior to the order execution for long positions, while in short positions it's one tick higher than the higher price. The amount of candles to lookback (X) is configurable. Both stop and take profit prices are displayed, the first as a red line, and the second as a green line.
This is the setting that I've found to work best with TVC:SPX , but you may find a better setting. While the RCP is universal, it's placement depends on the trend and it's strenght, something that is very heterogeneous among assets.
I really wish that I was able to place images, but I don't have PRO, so text will have to do.
This strategy was designed by Alexandre Wolwacz, a.k.a. Stormer.
Support Resistance - Dynamic v2Hello Traders!
After the addition of "Arrays" to the Pine, I developed new and improved version of Support Resistance - Dynamic script as version 2. In this script Arrays were used. This can be used as Support Resistance tool, also it will be an example for the people who want to learn Array usage in Pine. Many thanks to Pine Team for adding Arrays!
The script finds the Pivot Points and check them in channels if there can be S/R or not, and draws mid line of the channel as S/R line. you can set number of PPs and channel width in the options. Each channel width is optimized dynamically according to Pivot Points. Also you can choose " High/Low " or " Close/Open " as source for Pivot Points.
There is an option for maximum number of S/R levels. S/R levels are found and sorted dynamically and number of S/R lines with enough strength changes dynamically.
Some other options for coloring and line width. (Solid, Dashed or Dotted)
S/R levels are shown in the Labels and Label colors are changed automatically, if S/R line is below the closing price then it's color is Green (as Support), otherwise its color is Red (as Resistance).
Examples:
Enjoy!
Smoothed CandlesHello Traders,
This is " Smoothed Candles " script to get rid of noises and to get a smoothed chart to figure out breakouts and price movements easily.
There are three scaling methods: User Defined, Dynamic (ATR) and Percentage
Optionally you can add 2 Simple Moving Averages and 2 Exponential Moving Averages
Optionally you can hide the Wicks, example:
You can add moving averages:
Easily find breakouts:
Enjoy!
Higher Timeframe Trend Indicator V3.0What is it?
An indicator that depicts the trend of up to 5 higher timeframes on the same chart without needing to context-switch between charts.
Features
- Supports up to 5 timeframes
- Trends indicated by 5 colored buttons: one for each timeframe
- Varying shades of green: uptrend
- Varying shades of red: downtrend
- White/silver: sideways/neutral
- Configurable length (time period) for each timeframe
- Increase length to capture long term trends; decrease it to capture only short term ones
- Configurable sensitivity for each timeframe
- Sensitivity determines what angle is considered trending and what is not
- Increase sensitivity to capture weak trends
- Decrease sensitivity to filter out weak trends and capture only strong/steep ones
- Sensitivity ranges from 1 (least sensitive) to 3 (most sensitive)
- Move the labels around vertically for better visibility by changing the "Location" and "Offset" parameters
How should one use it?
Use it to quickly browse through charts to understand the context across timeframes, and zero in on only those that have trends aligning on the higher and lower timeframes as per your strategy. For e.g., a chart that is trending up strongly on the 15min and 60min (indicated by dark green colored buttons), and trending down on the 1 and/or 5 min (indicated by red-colored buttons), can be shortlisted for a potential pullback trade. Use your favorite pullback strategy (Supply/Demand, Support/Resistance, Moving Averages, etc.) to hop in on the trend.
How are trends determined?
The indicator uses normalized %change in price of the linear regression line segment of the chosen price sources (close, high, low, MA, etc.) over a specified length to determine trend direction and intensity
Known Issues
Will indicate the trend correctly only for timeframes *higher* than the current (visible) resolution/timeframe of the chart. Might not indicate it correctly for lower timeframes ( i.e., lower than the current (visible) resolution/timeframe of the chart). For this reason, all timeframes lower than the current resolution will be hidden in the present release.
Future releases
- I am still experimenting with various sensitivity levels and the corresponding trend shades to make the tool as accurate and intuitive as possible. These modifications might come in
- Sensitivity levels might be increased.
- Bug fixes, if any
Trend Following with Moving AveragesHello Traders,
With the info "Trend is Your Friend ", you should not take position against the trend. This script checks multipte moving averages if they are above/below the closing price and try to find trend. The moving averages with the length 8, 13, 21, 34, 55, 89, 144, 233, 377 used. these are fibonacci numbers, but optionally you can change the lengths of each moving averages. while it's green you better take long positions, while it's red you better take short positions according to other indcators or tools.
Optionally you have "smoothing" option to get rid of whipsaws. it's enabled by default.
You have option to use following moving average types: EMA, SMA, RMA, WMA, VWMA. by default it's EMA
Also the script has "Resolution" option. with this option you can get the trend for other time frames, in following example 1h was set as for higher time frame on 15m chart:
This should not be used as buy/sell signal indicators as it's tries to find trend but not entry points, you should use other indicators (such RSI, Momentum) or other tools to find buy/sell signals.
Enjoy!
AITI Investa: Trend FollowingScript ini dibuat untuk membantu strategi trend following harian pada saham-saham di IHSG.
Terdiri dari:
1. Petunjuk visual untuk area trend yang sebaiknya dihindari ( bearish trend ), berupa background berwarna merah. Dimana area bearish trend adalah ketika garis fast ema berada di bawah garis slow ema .
2. Batas stop loss / trailing stop, dengan acuan nilai ATR.
Script ini tidak memberikan sinyal buy. Silakan gunakan strategi buy on weakness/breakout sesuai analisa dan preferensi masing-masing. Untuk mencari entry trigger, penulis merekomendasikan untuk menarik garis support/resistance manual dan digabungkan dengan indikator MACD & CCI sebagai konfirmasi.
-AITI Investa
Heiken-Ashi Color Vts// Simple as it says:
// gives you the color of the Heiken Ashi candles in a separate panel.
// I needed this indicator since in TV switching from HA to normal candles resets the chart and I had to go back manually.
// This solves the nasty issue.
// Moreover, nobody enters/exits the trade on the HA values but everyone uses just their color, right?
// Since bearish candles are encoded with value -1 and bullish candles with +1,
// a simple average can be defined (if you don't find it useful, disable it).
// Vitelot-Yanez-Vts, Aug 2020
//
Breakout Trend FollowerThis is a Study mirroring the Breakout Trend Follower Strategy I made. I use this one during live trading and the other for backtesting. It will also give alerts when buy and sell signals are hit.
IntradaySignal #Trading #Candlestick #SignalThis is a simple version of taking bull and bear positions.
Time Frame: Although the time frame decided while making the script was for 1 minute chart, but after checking, even Daily charts work good.
Asset class: The underlying here, is XAUUSD (GOLD) but confirmatory strong positional trades on stocks for intraday purposes.
Condition: The signals are meaningful and are of significant importance when its in trending pattern and not in sideways pattern.
The signals are presented by the background color. when the color is red, start taking short positions, and when the signal is green, go with long position.
StopLoss: Complete reliance on the script might not be rewarding, Prepare your own stoploss and targets. I advise you to take profit and book losses as per "resistance & support" zones.
Three EMA Scalp Signals by kmderhamThis script looks for a set up condition where 5 consecutive candles have broken away from the fast EMA (set to 8 by default) followed by a "trigger" candle that crosses back over the fast EMA but not the medium EMA (set to 13 by default). It then determines the entry point based on the bar high or low (not tail or wick) depending on direction of the trend. Once the entry point is crossed, we can enter the position. Win or loss is determined whether the lower or upper levels are crossed (as per trend). After the position is won or lost and if the entry level is re-crossed before a new set up condition is found then a new entry signal is given.
Please note that this should really be used in conjunction with a higher timeframe "Anchor" chart with a fast and a slow EMA so setups and positions should should correspond to the trend of the higher timeframe chart. This was designed for a 5 minute timeframe and a 60 minute anchor chart.
Trend following 3 EMA & Bullish Engulfing indicator for ForexHello world,
I now took the time and puzzled through my own indicator.
The idea:
Main "strategy" uses 3 EMAs (8, 13 and 21) to attain trend-relevant information.
Then we look for bullish & bearing engulfing candles which indicate and pullback into trend direction and a gain in momentum.
Trading purpose:
One could now enter with next open. SL at low/high of engulfing candle. TP at e.g. 1.25 of that candles size.
Security:
There are two security functions build in.
We check for higher timeframe confirmation.
This is done by checking if current trend is in accordance with the EMA of the next higher timframe.
Standard-deviation is 3 on default. Can be changed in the inputs.
Alerts:
Until now there is just one alertcondition programmed.
It alerts for every engulfing candle (bullish and bearish).
More will follow in further versions.
Inputs:
I build in multiple inputs.
- switch on/off the security EMA's
- define security trend backcheck
- define the higher timeframe (15min/1h, 1h/240, 4h/D, D/W)
Happy to take feedback or contr.
All the best,
c4ss10p314
Dual SuperTrend, Ichimoku and DMI Color Weighted by DGTThis study interprets SuperTrend with Ichimoku Cloud, one of the popular technical analysis indicator, and interprets Directional Movement (DMI), which is another quite valuable technical analysis indicator.
Then combines the interpreted SuperTrend with interpreted Directional Movement (DMI) and Volume Based Colored Bars indicator created by Kıvaç ÖZBİLGİÇ (permission has been granted from the author)
Here are details of the concept applied
1- SuperTrend Line colored based on Ichimoku Cloud
Definition
The Ichimoku Cloud, developed by Goichi Hosoda and published in the late 1960s, is a collection of technical indicators that give it a unique capacity to show support and resistance levels, momentum and trend direction
What Does the Ichimoku Cloud Tells?
The overall trend is up when price is above the cloud, known as Kumo Cloud, down when price is below the Kumo Cloud, and trendless or transitioning when price is in the Kumo Cloud
When Senkou Span A (Leading Span A) is rising and above Senkou Span B (Leading Span B), this helps confirm the uptrend and space between the lines is typically colored green. When Senkou Span A is falling and below Senkou Span B, this helps confirm the downtrend. The space between the lines is typically colored red
Traders often use the Kumo Cloud as an area of support and resistance depending on the relative location of the price. The Kumo Cloud provides support/resistance levels that can be projected into the future. This sets the Ichimoku Cloud apart from many other technical indicators that only provide support and resistance levels for the current date and time
Crossovers, also known as TK Cross among Ichimoku Cloud traders, are another way the indicator can be used. Watch for the Tenkan-Sen Line, or Conversion Line, to move above the Kijun-Sen Line, or Base Line, especially when price is above the Kumo cloud. This can be a powerful buy signal. One option is to hold the trade until the Tenkan-Sen drops back below the Kijun-Sen Line. Any of the other lines could be used as exit points as well.
With this study:
Allow Traders to use the Ichimoku Cloud in conjunction with other technical indicators to maximize their risk-adjusted returns
The Ichimoku Cloud can make a chart look busy with all the lines. To Remedy this a different approach is applied in this study showing the Price and the Kumo Cloud relation as well as TK Crosses displayed. The SuperTrend Indicator is chosen to display Ichimoku Indicator, where the SuperTrend is another trend following indicator.
How it works:
SuperTrend Line is colored as:
Green when the Price is above the Kumo Cloud
Red when the Price is below the Kumo Cloud
Black when the Price is within the Kumo Cloud
And Finally Blue when the Kumo Cloud Is not ready to be drawn or not Kumo Cloud available
Additionally intensity of the colors used in all cases above are defined by values of Tenkan-Sen and Kijun-Sen Line, which allows us to detect TK Crosses
2- Plots Colored Directional Movement Line
Definition
Directional Movement (DMI) (created by J. Welles Wilder ) is actually a collection of three separate indicators combined into one. Directional Movement consists of the Average Directional Index (ADX) , Plus Directional Indicator (+D I) and Minus Directional Indicator (-D I) . ADX's purposes is to define whether or not there is a trend present. It does not take direction into account at all. The other two indicators (+DI and -DI) are used to compliment the ADX. They serve the purpose of determining trend direction. By combining all three, a technical analyst has a way of determining and measuring a trend's strength as well as its direction.
This study combines all three lines in a single colored shapes series plotted on the top of the price chart indicating the trend strength with different colors and its direction with triangle up and down shapes.
What to look for
Trend Strength : Analyzing trend strength is the most basic use for the DMI. Wilder believed that a DMI reading above 25 indicated a strong trend, while a reading below 20 indicated a weak or non-existent trend
Crosses : DI Crossovers are the significant trading signal generated by the DMI
With this study
A Strong Trend is assumed when ADX >= 25
Bullish Trend is defined as (+D I > -DI ) and (ADX >= 25), which is plotted as green triangle up shape on top of the price chart
Bearish Trend is defined as (+D I < -DI ) and (ADX >= 25), which is plotted as red triangle down shape on top of the price chart
Week Trend is assumed when 17< ADX < 25, which is plotted as black triangles up or down shape, depending on +DI-DI values, on top of the price chart
Non-Existent Trend is assumed when ADX < 17, which is plotted as yellow triangles up or down shape, depending on +DI-DI values, on top of the price chart
Additionally intensity of the colors used in all cases above are defined by comparing ADX’s current value with its previous value
3- Volume Based Colored Bars indicator created by Kıvaç ÖZBİLGİÇ
Volume Based Colored Bars colors the bars into volume weighted signals increasing the visibility of the Volume changes. Intensity of the colors of the bars varies according to average value of the volume for given length of bars (default value set to 30 bars)
Disclaimer: The script is for informational and educational purposes only. Use of the script does not constitutes professional and/or financial advice. You alone the sole responsibility of evaluating the script output and risks associated with the use of the script. In exchange for using the script, you agree not to hold dgtrd tradingview user liable for any possible claim for damages arising from any decision you make based on use of the script
MACD Trend Following Strategy How it work ?
Work like normal MACD because this is MACD without any modify but i add color of candlestick and strategy.
The color meaning :
Green= macd > signal and macd>0 (Buy)
Red= macd < signal and macd<0 (Sell)
Yellow= macd > signal and macd<0 (Maybe reversal point)
Blue= macd < signal and macd>0 (Maybe reversal point)
Feature
- Back test range
- Long/Short option
- Modifiable MACD Setting
Breakout Trend Follower StrategyThis strategy goes long when highs are broken and uses a trailing stop that follows swing lows. User can configure a back test date range and choose whether or not to only take trades above a selected moving average.
The desire for me to make this script was to try to capture those extreme breakouts that can occur after a consolidation/equilibrium pattern. This catches those using stop-buys as the entry. Out of all the scripts I have made thus far, this one is the one that has the best results. Time frames might vary due to commission structures, etc. I currently use this strategy on stocks on the 30-min time frame and crypto (with Coinbase's high fees) on the 2-hr time frame.
ADX | DMI Trend StrategyThis strategy takes the ADX Indicator I wrote and applies it to a strategy for back testing purposes.
I've also applied a date filter so you can back test specific date ranges and a moving average filter so you can choose whether to filter your longs/shorts based on a moving average.
Trend Follow with kijun-sen/tenkan sen for 1 Hour SPX
This script determines, plots and alerts on probable trend initiation and continuation points, using tenkan-sen(conversion line of ichimoku), kijun-sen(baseline of ichimoku) and stochastic RSI, for 1 H SPX.
New long/short trend initiates when prices cross above/below kijun sen. The trend continues when prices cross above/below tenkan-sen or stochastic RSI crosses up/down its signal line, while prices are above/below kijun-sen.
It is good to take partial profit between 10-15 points gain and trail the left with stops below kijun-sen line.
While placing the order, using 2-3 points buffer above/below of signal bars is recommended. Additionally, please be careful about clouds and do not place long/short orders below/above clouds.
ADX TriggerThis script fires off a buy alert when the ADX is rising and above a user-defined value (default 25). It fires off a sell signal when ADX starts sloping downward. The lookback period to determine if it is sloping up/down (in bars) is also configurable by the user. The plot highlights green when there is a "go" signal. Thanks to @9e52f12edd034d28bdd5544e7ff92e for the idea.
Ehlers Market State Indicator [CC]The Market State Indicator was created by John Ehlers (Stocks & Commodities V. 38:06 (8–15)) and this is technically part of three indicators in one so I'm splitting each one to a separate script. This particular indicator was designed for the market state which acts as a trend direction and tells you whether the trend is strong in either direction. Keep in mind that when the indicator rapidly switches then the market is choppy and when it is a steady line then it is a very strong trend. Essentially buy when the indicator line is green and sell when it is red.
Let me know if you would like me to publish other scripts or if you want something custom done!
Note: I'm republishing this because the original script couldn't be found in searches so this will fix that.