SuperTrend Multi Time Frame Long and Short Trading Strategy
Hello All
This is non-repainting Supertrend Multi Time Frame script, I got so many request on Supertrend with Multi Time Frame. This is for all of them ..I am making it open for all so you can change its coding according to your need.
How the Basic Indicator works
SuperTrend is one of the most common ATR based trailing stop indicators.
In this version you can change the ATR calculation method from the settings. Default method is RMA.
The indicator is easy to use and gives an accurate reading about an ongoing trend. It is constructed with two parameters, namely period and multiplier. The default values used while constructing a Supertrend indicator are 10 for average true range or trading period and three for its multiplier.
The average true range (ATR) plays an important role in 'Supertrend' as the indicator uses ATR to calculate its value. The ATR indicator signals the degree of price volatility .
The buy and sell signals are generated when the indicator starts plotting either on top of the closing price or below the closing price. A buy signal is generated when the ‘Supertrend’ closes above the price and a sell signal is generated when it closes below the closing price.
It also suggests that the trend is shifting from descending mode to ascending mode. Contrary to this, when a ‘Supertrend’ closes above the price, it generates a sell signal as the colour of the indicator changes into red.
A ‘Supertrend’ indicator can be used on spot, futures, options or forex, or even crypto markets and also on daily, weekly and hourly charts as well, but generally, it fails in a sideways-moving market.
How the Strategy works
This is developed based on SuperTrend.
Use two time frame for confirm all entry signals.
Two time frame SuperTrend works as Trailing stop for both long and short positions.
More securely execute orders, because it is wait until confine two time frames(example : daily and 30min)
Each time frame developed as customisable for user to any timeframe.
User can choose trading position side from Long, Short, and Both.
Custom Stop Loss level, user can enter Stop Loss percentage based on timeframe using.
Multiple Take Profit levels with customisable TP price percentage and position size.
Back-testing with custom time frame.
This strategy is develop for specially for automation purpose.
The strategy includes:
Entry for Long and Short.
Take Profit.
Stop Loss.
Trailing Stop Loss.
Position Size.
Exit Signal.
Risk Management Feature.
Backtesting.
Trading Alerts.
Use the strategy with alerts
This strategy is alert-ready. All you have to do is:
Go on a pair you would like to trade
Create an alert
Select the strategy as a Trigger
Wait for new orders to be sent to you
This is develop for specially for automating trading on any exchange, if you need to get that automating service for this strategy or any Tradingview strategy or indicator please contact me I am have 8 year experience on that field.
I hope you enjoy it!
Thanks,
Ranga
波浪分析
Inside Candle and mother candle range with alert++>>This script allows you the inside bar candle and the cnadle is shown in white.
The range of the mother candle is identified and tracked until it breaks.
Once the first range is over ridden then the next similar pattern will be occured and the tracking will be done for the mother candle latest occurrence.
It also has the alert mechanism where you can go and the alert for the indicator in Alerts.
5 min is the most preferrable time frame and while saving the alert Note to save the time frame of the chart. For which ever time frame is saved the Alert will be triggered for the same .
And when th inside bar is triggered it throws an alert condition. this alert condition has to be configured in your alerts and will be buzzing on the screen.
Oct 20
Release Notes: updated with Mother candle top and bottom lines of previous occurrences and tracks the current latest Inside bar mother candle
Release Notes: this script allows you the inside bar cnadle and the cnadle is shown in white. highlighter is configurable and line colors as well.
Davin's 10/200MA Pullback on SPY Strategy v2.0Strategy:
Using 10 and 200 Simple moving averages, we capitalize on price pullbacks on a general uptrend to scalp 1 - 5% rebounds. 200 MA is used as a general indicator for bullish sentiment, 10 MA is used to identify pullbacks in the short term for buy entries.
An optional bonus: market crash of 20% from 52 days high is regarded as a buy the dip signal.
An optional bonus: can choose to exit on MA crossovers using 200 MA as reference MA (etc. Hard stop on 50 cross 200)
Recommended Ticker: SPY 1D (I have so far tested on SPY and other big indexes only, other stocks appear to be too volatile to use the same short period SMA parameters effectively) + AAPL 4H
How it works:
Buy condition is when:
- Price closes above 200 SMA
- Price closes below 10 SMA
- Price dumps at least 20% (additional bonus contrarian buy the dip option)
Entry is on the next opening market day the day after the buy condition candle was fulfilled.
Sell Condition is when:
- Prices closes below 10 SMA
- Hard stop at 15% drawdown from entry price (adjustable parameter)
- Hard stop at medium term and long term MA crossovers (adjustable parameters)
So far this strategy has been pretty effective for me, feel free to try it out and let me know in the comments how you found :)
Feel free to suggest new strategy ideas for discussion and indicator building
Trend/Retracement - ZigZag - New wayZigZag for Trend and Retracements - New way
It's another way to plot ZigZag based on lookback period for trend and % of trend lookback period to plot retracements.
█ OVERVIEW
Plot ZigZag, Trend lines, Retracements, Support levels, Resistance levels
█ Objective:
Draw ZigZag lines along with unbroken support and resistance levels. ZigZag lines are drawn for main trend and the retracements.
Main Trend – This is calculated based on lookback period.
Retracements – Retracements are calculated as 25% of main trend.
Support and Resistance line: The indicator draws 2 types of support and resistance lines
1. Un-broken – Once formed (plotted), these are the support and resistance which are not yet broken
2. Tested – One can also choose to see support and resistance lines which are tested but not broken. Tested support/resistance are those levels which are touched by high/low price but close price has not crossed the level.
█ How main trend point is calculated:
E.g.
Chart timeframe = 15m
Lookback period = 250
Retracement = 25% of main trend ( 25% of 250 = 62 )
A price point on a chart is considered as trend point if distance between current price and previous highest price is 250 candles
A price point is considered as a retracement if distance between current price and previous highest price is 62 candles. Please note retracements are calculated only after finding a main trend point.
█ Input parameters:
Zigzag Parameters
Use predefined Lookback – If checked pre-defined timeframe-based lookback parameters are used.
Trend lookback candles – If ‘Use predefined Lookback’ is unchecked then this value is used as lookback period.
Retracement % of look back candles– If ‘Use predefined Lookback’ is unchecked then this value is used for calculating retracement lookback period
Mark retracements – If unchecked only main trend lines are plotted
Plot support/resistance – To plot support/resistance levels
Show support/resistance tested lines – If checked tested support/resistance liens are shown on the chart
█ TF based Lookback period config (Defaults are set as specified below, One can change these defaults to use different lookback periods)
The defaults set here are used based on the chart timeframe. e.g. if chart timeframe is changed from say 15m to 60m then 60m chart defaults (i.e. trend lookback = 90) are used to plot the trend and the retracements. At the bottom-right of the chart, parameters used for plotting are displayed all the time.
Timeframe in minute – Default = 5m
Trend lookback candles – Default = 375 (~ 5 days of data)
Timeframe in minute – Default = 15m
Trend lookback candles – Default = 250 (~10 days of data)
Timeframe in minute – Default = 60m
Trend lookback candles = Default = 90 (~ 15 days of data)
Trend lookback candles for timeframe 'D' – Default = 30 (~1 month data)
Trend lookback candles for timeframe 'W' – Default = 21 (~6 months data)
Trend lookback candles for timeframe 'M' – Default = 12 (~1year data)
Retracement % of look back candles – Default = 25%
█ When and where one can use this indicator (Refer to chart examples)
To view support and resistance based on lookback period
To view ZigZag lines
One can use it to find chart patterns easily
Trend and retracement lines can help in drawing Elliott waves.
█ Chart examples:
1. Chart patterns can be easily identified - One can disable the candle charts which will help to identify and draw chart patterns easily
2. Trend and retracement lines can also help is analyzing charts (e.g. Elliott Waves can be marked based on trend lines)
3. Tested but not broken support and resistance lines can be viewed
4. You can select 'NOT' to plot tested support and resistance lines
5. Uncheck the Mark retracements to plot main trend lines (Retracements are not marked)
BTMM V2Similar to the first BTMM (R.Noodle) this version of the script is tailored towards key level traders. This includes intraday, daily, and higher TF traders.
**REMOVED** background tckr info, candle color according to day, and market sessions
**Replaced**key levels & market sessions
**NEW**initial balance analytics first Friday and every Monday
Market Sessions
UK=1ST 3HRS US=1ST 3 HRS =ASIA/DAILY INITIAL BALANCE = 1ST SESS 1ST 1HR HIGH/LOW
Since the Asian session starts the day we can also grab the initial balance for the day as well. (note that using the Asian session extend function you will not be given the Asian session end time. Extend function makes the session close run through the entire day)
INITIAL BALANCE PANEL/BOX
WEEKLY INITIAL BALANCE
PIP LINES
double zero (00) and 50 pip levels are strong levels the market respects. one can reduce risk by entering at major confluences and key levels examlpe below
FIRST FRIDAY + EVERY MONDAY
KEY LEVELS
you can have today, yesterday, last week, last month, last qtr, and last year along with the mid point of all. below are key levels for day traders
DB KCBB%D Wave SignalsDB KCBB%D Wave Signals
What does the indicator do?
This indicator is a version of my DB KCBB%D indicator updated with signal detection. It results from weeks of analysis of the KCBB%D waves for patterns. I'm releasing it publicly to help those who like the KCBB%D indicator but desire a version with signals built into it.
The indicator plots the percent difference between the low and high prices against a combined Kelpler Channel Bollinger Bands for the current timeframe. The low percent difference and the high percent difference each have their own waves plotted. A mirror mode default allows both waves to be visualized in a mirrored plot that clearly shows when outer bands are present and when they swap. Each percent difference band is displayed with a 1 bar lookback to visualize local tops/bottoms.
The overall trend is displayed using two sets of green/red colors on the percent difference waves so that each wave is recognizable, but the overall price trend is visible. A fast 3 SMA is taken of each percent difference wave to obtain the overall trend and then averaged together. The trend is then calculated based on direction from the previous bar period.
How should this indicator be used?
By default, the indicator will display in a mirror mode which will display both the low and high percent change waves mirrored to allow for the most pattern recognition possible. You will notice the percent difference waves swap from inner to outer, showing the overall market direction for that timeframe. When each percent difference wave interacts with the zero line, it indicates either buys or sells opportunities depending on which band is on the inside. When the inner wave crosses zero, special attention should be paid to the outer wave to know if it's a significant move. Likewise, when the outer wave peaks, it can indicate buy or sell opportunities depending on which wave is on the outside.
A zero line and other lines are displayed from the highest of the high percent difference wave over a long period of time. The lines can measure movement and possible oversold/overbought locations or large volatility . You can also use the lines for crossing points for either wave as alerts to know when to buy or sell zones are happening.
When individual percent difference waves are designed to be reviewed without mirroring, the mirror checkbox can be unchecked in the settings. Doing so will display both the high and low percent difference waves separately. Using this display, you can more cleanly review how each wave interacts with various line levels.
For those who desire to only have half of the mirror or one set of waves inverted against each other, check the "mirrored" and the "mirrored flipped" checkboxes in the settings. Doing so will display the top half of the mirror indicator, which is the low percent difference wave with the high percent difference wave inverted.
The indicator will also change the background color of its own pane to indicate possible buy/sell periods (work in progress).
Does the indicator include any alerts?
Yes, they are a work in progress but starting out with this release, we have:
NOTE: This is an initial release version of this indicator. Please do not use these alerts with bots yet, as they will repaint in real-time.
NOTE: A later release may happen that will delay firing the events until 1/2 of the current bar time has passed.
NOTE: As with any indicator, watch your upper timeframe waves first before zooming into lower.
DB KCBB%D Buy Signal
DB KCBB%D Buy Warning Signal
DB KCBB%D Sell Signal
DB KCBB%D Sell Warning Signal
DB KCBB%D Death Cross Sell Signal
DB KCBB%D Trend Up Alert
DB KCBB%D Trend Down Alert
Use at your own risk and do your own diligence.
Enjoy!
Tide Finder (TiFi)Very helpful for price-action trading. Works excellently with 1-hour time frames and below.
See Tide Finder Plus (TiFi+) if you want help from this indicator in higher time frames.
See also: Adaptive Rebound Line (ARL) .
The idea for this indicator was brought on by the concept of high and low tides and everything related to the concept.
RSI + MA, LinReg, ZZ (HH HL LH LL), Div, Ichi, MACD and TSI HistRelative Strength Index with Moving Average, Linear Regression, Zig Zag (Highs and Lows), Divergence, Ichimoku Cloud, Moving Average Convergence Divergence and True Strength Index Histogram
This script is based on zdmre's RSI script, I revamped a lot of things and added a few indicators from ParkF's RSI script.
Disable Labels in the Style tab and the histogram if you don't enlarge the indicator and it seems too small.
Look to buy in the oversold area and bounce of the support of the linear regression.
Look to sell in the overbought area and bounce of the resistance of the linear regression.
Look for retracement to the moving average or horizontal lines, and divergences for potential reversal.
RSI
The Relative Strength Index (RSI) is a well versed momentum based oscillator which is used to measure the speed (velocity) as well as the change (magnitude) of directional price movements.
Moving Average
Moving Average (MA) is a good way to gauge momentum as well as to confirm trends, and define areas of support and resistance.
Linear Regression
The Linear Regression indicator visualizes the general price trend of a specific part of the chart based on the Linear Regression calculation.
Zig Zag (Highs and Lows)
The Zig Zag indicator is used to identify price trends, and in doing so plots points on the chart to mark whenever prices reverse by a larger percentage point than a predetermined variable or marker.
Divergence
The divergence indicator warns traders and technical analysts of changes in a price trend, oftentimes that it is weakening or changing direction.
Ichimoku Cloud
The Ichimoku Cloud is a package of multiple technical indicators that signal support, resistance, market trend, and market momentum.
MACD and TSI Histogram
MACD can be used to identify aspects of a security's overall trend.
The True Strength Index indicator is a momentum oscillator designed to detect, confirm or visualize the strength of a trend.
SBS AlgoHello traders, I am here again with a new and improved indicator.
This indicator is based on a pivot breakout algorithm which gives buy and sell signals according to the breakout of trendline. This is an advanced version of another script. It also takes price action into consideration along with some basic indicators like MACD and ADX to give good entry signals.
NOTE: This indicator is not designed to take entries completely based on signals it gives. Please use it along with your trading strategy to add more confluence to your trading system and maximize your profits.
I hope you guys will like this one too .Enjoy 👍
In case you find any bug, please do report in comment section .Thank you.
Ichimoku Cloud and Bollinger Bands (by Coinrule)The Ichimoku Cloud is a collection of technical indicators that show support and resistance levels, as well as momentum and trend direction. It does this by taking multiple averages and plotting them on a chart. It also uses these figures to compute a “cloud” that attempts to forecast where the price may find support or resistance in the future.
The Ichimoku Cloud was developed by Goichi Hosoda, a Japanese journalist, and published in the late 1960s. It provides more data points than the standard candlestick chart. While it seems complicated at first glance, those familiar with how to read the charts often find it easy to understand with well-defined trading signals.
The Ichimoku Cloud is composed of five lines or calculations, two of which comprise a cloud where the difference between the two lines is shaded in.
The lines include a nine-period average, a 26-period average, an average of those two averages, a 52-period average, and a lagging closing price line.
The cloud is a key part of the indicator. When the price is below the cloud, the trend is down. When the price is above the cloud, the trend is up.
The above trend signals are strengthened if the cloud is moving in the same direction as the price. For example, during an uptrend, the top of the cloud is moving up, or during a downtrend, the bottom of the cloud is moving down.
The Bollinger Bands are among the most famous and widely used indicators. A Bollinger Band is a technical analysis tool defined by a set of trendlines plotted two standard deviations (positively and negatively) away from a simple moving average ( SMA ) of a security's price, but which can be adjusted to user preferences. They can suggest when an asset is oversold or overbought in the short term, thus providing the best time for buying and selling it.
This strategy combines the Ichimoku Cloud with Bollinger Bands to better enter trades.
Long orders are placed when these basic signals are triggered.
Long Position:
Tenkan-Sen is above the Kijun-Sen
Chikou-Span is above the close of 26 bars ago
Close is above the Kumo Cloud
The closing price is greater than the upper standard deviation of the Bollinger Bands
Short Position:
Tenkan-Sen is below the Kijun-Sen
Chikou-Span is below the close of 26 bars ago
Close is below the Kumo Cloud
The upper standard deviation of the Bollinger Band is greater than the closing price
The script is backtested from 1 January 2022 and provides good returns.
The strategy assumes each order is using 30% of the available coins to make the results more realistic and to simulate you only ran this strategy on 30% of your holdings. A trading fee of 0.1% is also taken into account and is aligned to the base fee applied on Binance.
This script also works well on BTC 30m/1h, ETH 2h, MATIC 2h/30m, AVAX 1h/2h, SOL 45m timeframes
Event Locator BasicUsable under any conditions and in all markets, the 'event locator' provides a foundational layer for any count-based trading strategy or system. This specific installment color codes events - all down events are green, up events are blue, double-marked events are red, and smooth events are gray. It also wraps the price sequence in a 3-d line landscape plot - providing a visual using lines that are event sensitive. Though events are sometimes referred to as 'fractals,' this is not a fractal tool. These marks are based on 3 candles, not 5 as is common with the Bill Williams fractal scripts. Every countable event on the chart will be marked using this tool. Really, Elliott Wave should have told you about this... (because you can't legitimately count w/o it)
//This indicator was originally a mod of the 'Williams Fractals' indicator - modified by Erek A.D., Nov. 2017
//It was rewritten from the ground up by 'Brobear' in Sept./Oct. 2018
//This code marks 'rough' AND 'smooth' EVENTS in price flow
//EVENTS are naturally created in markets when SEPARATION occurs at candle tips
//SEPARATION happens when a high is flanked by lower highs or a low is flanked by higher lows
//EVENT LOCATORS like this provide an objective foundation for counting price movement
DlineDline is a indicator that was developed by B-Negative. This indicator was developed under convergence logic. If we have many information of prices, when the information was averaged with more enough, the average line will be the linear line that has direction. The direction of this linear line can help traders to analyze the direction of trends. Dline was made with TEMA, EMA, DEMA, and Dline line that is a average line between DEMA and EMA.
Under B-Negative's concept, DEMA and EMA that are average lines will convergence and have same direction when the trends are coming. Amount of data must more enough and diferrect by assets' type. However, user can change value of DEMA, Dline, EMA, and TEMA by themself under 7 concepts below.
1. EMA will convergence to close Dline when the trend will be changing.
2. The uptrend will occure when EMA above/below Dline and candle sticks are green/red color.
3. TEMA was setted similair DEMA.
4. When new high/low of wave cross TEMA and can not retrun to create higher/lower high/low (At oversold/overbought, Stocastic 9,3,3 counting with loop technique), that is exit point of position.
5. Difference of timeframe or assets could use different parameters. (Setting based on 4 rule above.)
6. Divergence between Dline and EMA mean sentiment of assets are sideways.
7. If Dline and EMA look like same line, the trend is most strength trend.
Dline use thickness = 4
EMA use thickness = 1
This ex. is timeframe day.
J2S Backtest: Steven Primo`s Big Trend StrategyIs it possible to benefit from big trend moves? In this study I present you a strategy that aims to capture big trend moves.
Created by trader Steven Primo, The Big Trend strategy is advocates and shared through his YouTube channel without restrictions.
Note:
This is not an investment recommendation. The purpose of this study is only to share knowledge with the community on TradingView.
What is the purpose of the strategy?
The strategy focuses on capturing the movement of trends, providing an entry signal for both LONG and SHORT positions.
To which time-frame of a chart is it applicable to?
According to the author, it is applicable to any chart in different markets.
What about risk management?
The author does not establish a risk management model for strategy. This is left to the definition of each trader.
How are the trends identified in this strategy?
A 20-periods Bollinger Bands with 0.382 deviation should be plotted on the chart. Prices above the upper band indicate an uptrend, on the other hand, prices below the lower band indicate an downtrend. Finally, prices between the two bands indicate sideways trend.
How to identify a signal for LONG entry?
The signal is given after five consecutive closes above the upper Bollinger band. After that, you must enter the trade after the first trade occurs above the high of the signal bar.
How to identify a signal for SHORT entry?
The signal is given after five consecutive closes below the lower Bollinger band. After that, you must enter the trade after the first trade occurs below the low of the signal bar.
Tips and tricks
In my backtest, I tried to prove the strategy from a position trading perspective, so I proposed use fixed stop-loss and take-profits. The stop-loss is defined as being low of the first bar that generated the movement until the signal bar. The value range from the stop-loss to the signal bar is used in determining the profit target. Given any trade, position closing will be triggered when the bar trading limit is reached.
Backtest features
Backtest parameters are fully customizable, for instance: number of bars inside a trend indicating trend maturity for entry, bar limit for trading entry (after a buy or sell signals). Also, the user chooses to validate only LONG or SHORT entries, or both. It is also possible to determine the specific time period for running the backtests.
Final message
In my tests, I noticed excellent results for other crypto pairs, for example: ETH/USDT, BNB/USDT, FIL/USDT, GALA/USDT and ILV/USDT. Of course, no one strategy works perfectly for every asset, crypto, and bond out there. That's why we should explore each trading model and carry out our backtests. Please, feel free to provide me with any improvement suggestions for the backtest script. Bear in mind, feel free to use the ideas in my script in your studies.
over zig zagthis is best for 1 day. OVERVIEW This indicator was inspired by Arty. I've taken what he teaches and have applied the tools that he uses into one useful indicator. █ COMPONENTS Here is a brief overview of the indicator: Smoothed Moving Averages Arty uses three main smoothed moving averages and on occasion a fourth.
RSI TrendRSI Hull Trend is a hybrid indicator with RSI of HULL Signal. The Hull MA is combined with RSI to see if the Hull MA Buy/Sell Signal is in overbought or oversold condition. Buy Sell Signals are plotted based on settings of OB/OS or RSI. This indicator is very useful to see if the Trend is in Exhaustion or Beginning of a Trend. Entry and Exit conditions can be more precise based on OB/OS condition of price action. In addition normal RSI trend is plotted with trend color from Hull MA. Best Performance with Heiken Ashi Candles.
OB/OS Settings provided
Hull Buy/Sell Signals plotted
Double RSI FAST and DEFAULT signal with crossover
Bar Color applied based on Hull RSI Trend
Hull Trend + RSI + Price Action
Tom Joseph MACD 5-35 for Elliot WavesThis oscillator for the Elliott Theory has been invented by Tom Joseph and it's useful to correctly count the impulsive and corrective waves.
Its difference compared to a simple MACD is the peculiarity to use the ratio between the Fast SMA (default period set to 5) and the Slow SMA (default period se to 35).
The used formula is as below:
( (fast_SMA / slow_SMA) -1 ) * 100
Hope you could find it useful! 😉
CDC Fibonacci Retracement and ExtensionThis indicator is meant to be used as a tool to quickly identify
fibonacci retracements and projections in multiple charts during
the same date range.
Users can set the calculation date range and quickly flip through
different charts for comparisons
Steps for using this indicator is as follows:
1. Specify Start Date and End Date for calculations
2. Choose Open-ended mode for just retracements, this will disregard
end date in calculations.
3. Select price source, if Use Highs/Lows is selected, the indicator will
use high and low prices for calculation, if not, closing price eill
be used instead
4. Select and/or modify retracement / projection lines as you see fit.
5. Enjoy the result!
1+KillZoneLiteRemove plot line for a better view. I've made this to work on "US30 Global Prime" probably works on other pairs the codes left open to mod.
This Indicator shows 3 sessions to help you focus on timing. This will help you with learning pattern recognition aswell.
1. Gray zone is spreads. The gray zone will show up 30 min before spreads open up.
2. Blue is new york
3. Red is london reversal zone.
4. Look between the zones and also how price reacts within the zones and at what time.
5. This indicator also prints the sessions 1 day in advance to help with back testing aswell.
PharshK RSI and Zigzag with H/LIt is with RSI level
and Zigzag Pattern that Market goes on Maximum level and Lower Level
And it is also Showing High and Law Level of last Moving Candle so it is easy to entry and Hold
PharshK RSI and Zigzag with H/LIt is with RSI level
and Zigzag Pattern that Market goes on Maximum level and Lower Level
And it is also Showing High and Law Level of last Moving Candle so it is easy to entry and Hold
CHS Zig ZagCHS ZigZag stands for Changeable Source ZigZag
The original ZigZag indicator offered by TradingView doesn't have the ability to measure the tips and troughs based on closing prices (line chart), however, this indicator is capable of receiving an input from user that determines the price source used for further calculations.
The default inputs of the original ZigZag indicator have been also changed in order to make it adapt to pivots formed on line chart but users can change arbitrarily.