SupterTrend I created this script for basically two reasons
1. there is not simple suptertrend indicator available on tv rather you will find many fancy suptrend indicators with confusing other indicators and absurd background colors i dont know why some of the trader coders are obsessed with is using over the top color and designing phenomena.
2. I want to let people know about the accuracy of suptertrend indicator on multiple time frames i am plaining to create a backtesting tool for almost all Famous indicators so that specially new folks know what should they expect from any particular Indicator
Also i added intraday filter to check the results for intrday signals . the sqaure off timings are for Indian markets only but you can edit the hours and minutes in the code for using other than indian markets. No need to do anything if you only want positional trading trading results
Supertrend
SuperTrend With SL or TP No Repaint V2Hello Everyone
it is an upgraded version of SuperTrend With SL or TP No Repaint
Long Entry Multi Conditions
Supertrend Buy Signal
Signal candle should be "Green" (Bullish Candle)
Close of Signal candle should be greater than the previous candle's close
High of Signal candle should be greater than the previous candle's high
Short Entry Multi Conditions
Supertrend Sell Signal
Signal candle should be "Red"(Bearish Candle)
Close of Signal candle should be less than the previous candle's close
Low of Signal candle should be less than the previous candle's low.
Indicator Feature
➤ Long Side Signal With Alerts
➤ Short Side Signal With Alerts
➤ Long side Take profit Calculated By Open Bar You Can Also Change Calculate Bar Source and percentage input
➤ Short side Take profit Calculated By Open Bar You Can Also Change Calculate Bar Source and percentage input
➤ Long side Stop Loss Calculated By Open Bar You Can Also Change Calculate Bar Source and percentage input
➤ Short side Stop Loss Calculated By Open Bar You Can Also Change Calculate Bar Source and percentage input
➤ Take profit or Stop loss Alerts with Plotshape (if Bar Cross When Alerts Trigger)
Important: This Indicator we are using for Automation Trading if You Want This Indicator Access Please Contact me PM on Tradingview
Super trend-SARJust bored today , so I try this combination of sar and a slight modified super trend with ema
buy and sell are shown up
alerts included
i set to to 1 hour candles on btc/ for other time frames or assets you need to tweek it by your own
SuperRange - evoA SuperTrend like indicator based on highest and lowest candle close from a few bars back. It looks almost the same as Donchian Channels but with a dominant trend direction inside (Black line).
Uptrend: Candle closed higher than highest close
Downtrend: Candle closed lower than lowest close
This works best on higher time frames since a daily close is more powerful than a 15 minute close.
A few examples how you could use this:
Use support & resistance
Apply a moving average
Buy and sell the break-out
All perfect world examples, this does not happen all the time off course.. Its just for the idea. There are many ways to trade this so feel free to share in the comments, good luck and follow the trend! :)
Super Z strategy - Thanks to Rafael Zioni//Original script
//https://www.tradingview.com/script/wYknDlLx-super-Z/
This is a test for verifying if this interesting study works well.
The author, thanks to him!!!, advise a possible repaint because the script uses security function.
Refer to tradingview.com for more info on repainting:
www.tradingview.com
QUOTE:
We can see repainting in the following cases:
1- Strategies using calc_on_every_tick=true. A strategy with parameter calc_on_every_tick = false may also be prone to repainting, but to a lesser degree.
(this is not the case, ndr).
2- Using security for requesting data from a resolution higher than the resolution of the chart’s main symbol (i.e. do not use ion weelky chart if you set 1440 (1Day) in inputs)
NOTE: Thanks again to Rafael Zioni. If he requires to delete this strategy, I'll do immediately.
SuperTrend With SL or TP No RepaintHello EveryOne This is SuperTrend With Take profit and StopLoss You Can Also Use With Automation Trading
Indicator Feature
➤ Long Side Signal With Alerts
➤ Short Side Signal With Alerts
➤ Long side Take profit Calculated By Open Bar You Can Also Change Calculate Bar Source
➤ Short side Take profit Calculated By Open Bar You Can Also Change Calculate Bar Source
➤ Long side Stop Loss Calculated By Open Bar You Can Also Change Calculate Bar Source
➤ Short side Stop Loss Calculated By Open Bar You Can Also Change Calculate Bar Source
➤ Take profit or Stop loss Alerts with Plotshape (if Bar Cross When Alerts Trigger)
Important: This Indicator we are using for Automation Trading if You Want This Indicator Access Please Contact me PM on Tradingview
Pivot Point SuperTrend [Backtest]Hello All,
This is backtesting result of following indicator/strategy. I didn't work on adding other indicators. maybe in the future I can try to combine this with other indicators.
You can visit following link to see "Pivot Point SuperTrend" . by using this backtesting tool, you can test&find better options
There is option "Use Center Line to Close Entry for 50%" . by default it's not enabled. if you enable this option, pivot point center line may push you to close your entry for 50% (can be used as early stoploss/take profit line if you think it's risky)
Enjoy!
Pivot Point SupertrendHello All,
There are many types of SuperTrend around. Recently I thought about a Supertrend based on Pivot Points then I wrote "Pivot Point SuperTrend" script. It looks it has better performance on keeping you in the trend more.
The idea is behind this script is finding pivot point, calculating average of them and like in supertrend creating higher/lower bands by ATR. As you can see in the algorithm the script gives weigth to past pivot points, this is done for smoothing it a bit.
As I wrote above it may keep you in the trend more, lets see an example:
As an option the script can show main center line and I realized that when you are in a position, this line can be used as early exit points. (maybe half of the position size)
While using Pivot Points, I added support resistance lines by using Pivot Point, as an option the script can show S/R lines:
And also it can show Pivot Points:
When you changed Pivot Point Period you can see its reaction, in following example PP period is 4 (default value is 2). Smaller PP periods more sensitive trendlines.
Alerts added for Buy/Sell entries and Trend Reversals. (when you set alerts use the option " Once Per Bar Close ")
ENJOY!
SuperTrend Fake ReversalHello Everyone This Is SuperTrend Failed Reversal You Can Also Change Input Depend on Your Choice
Indicator Features
➤ Long or Short (This is only for Confirmation)
➤ Long Entry or Short Entry
➤ Long Entry Target Profit Calculated By Long Entry Bar High By default 1 percentage you Can also Change Input depend on your choice
➤ Short Entry Target Profit Calculated By Short Entry Bar High By default 1 percentage you Can also Change Input depend on your choice
➤ There are Available both side Trailing stop-loss you can also use Depend on ur choice
➤ You can Also Add Alerts
Important: This Indicator we are using for Automation Trading if You Want This Indicator Access Please Contact me PM on Tradingview
SuperTrend High or Low BreakoutSuperTrend Breakout Indicator
Indicator Feature
SuperTrend High Breakout Line With Alerts
SuperTrend Low Breakout Line With Alerts
SuperTrend High Breakout with TP and Alerts
SuperTrend Low Breakout with TP and Alerts
You Can add TP percentage base or Point Base
SuperTrend SL Candle Both Side
SuperTrend Next Candle High Breakout Line With Alerts
SuperTrend Next Candle Low Breakout Line With Alerts
All Alerts In build This Indicator
Thank you so much :)
KAMA-ST BotExperimental supertrend model using KAMA (Kaufman Adaptive Moving Average) instead of RMA /SMA.
Good for scalping, NOT trend trading.
DO NOT USE THIS AS A STOPLOSS... you will get stopped!
Signals as what they are, no repaint, use other indicators as confirmation.
...have a play, good luck & stay safe!
SuperTrendSuperTrend 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, when the alternative method is SMA.
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 superindicator 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 equities, futures 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.
I had converted Supertrend indicator code for various platforms like Metastock in 2017, but in this TradingView version special credit goes to everget - Alex Orekhov which gave a great inspiration to look my indicators better with highlights, signals and alarms. Thank you Alex.
Sameer Trend - Super trend - ema - buy sell volumeThis script considers the following parameters
Super Trend
200 day ema
Buy & Sell Volume
And According to that gives you buy and sell Signal
FRAMA - Supertrend strategyFRAMA Strategy
I found this strategy on internet, in a well-known forex forum.
I have translated the two indicators mentioned in that strategy (originally in mq4) in pine script.
Thanks to Fractured and Shizaru for the FRAMA snippets, to mejialucas for Supertrend snippet, to JayRogers for trade management snippet and to Trost for backtesting snippet.
I also added some code to have FRAME with a deiiferent timeframe
Indicators set-up:
FRAMA period 24 (it was originally 25 but it's better to use an even number)
FRAMA timefarme lower then chart timeframe (e.g. daily chart and weekly FRAMA)
Supertrend indicator as it is.
Of course, it is better to adapt above setting to traded instrument.
Long/Buy rules:
1 - Enter at crossover between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit long when short signal occurs;
Short/Sell rules:
1 - Enter at crossunder between FRAMA and its signal
2 - Option to filter entries based on supertrend signal
3 - Exit when Supertrend change direction;
4 - Exit short when long signal occurs;
VERY IMPORTANT NOTE: this is a trend following strategy, so the target is to stay in the trade as much as possible (drawdown my be high). If your trading style is more focused on scalping and/or pullbaks, this strategy is not for you.
Credits to who developed this startegy (google it).
Thanks to all pinescripters mentined in the code for their snippets.
I have also a study with alerts.
Please use comment section for any feedback or contact me if you need support.
Supertrend MTF Heikin AshiThis is non-repaiting Supertrend Multi Time Frame script, uses Heikin Ashi Candles as source on normal chart
There is an option for Higher Time Frame. if you choose "Auto" then Higher Time Frame calculation is made by the script. If you choose "User Defined" option and then you can select Time Frame.
You better use this script with other indicators such as RSI, Momentum etc.
Enjoy!
SupertrendAn implementation of the supertrend indicator as it'll be implemented in build-in pine function
Supertrend calculates two values:
-supertrend
-direction
using the direction resistance and support are plotted.
Long/ Short with Big Trend v1.0-strategyHello traders,
This script using multi MA and EMA , MACD , RSI ... for vote BUY or SELL.
If 80% signal vote for BUY, signal Long will been active
or 80% signal vote for SELL, signal Short will been active
Recommend using this script for Trend trader, not using for Scalping trader or Swing trader!
Best backtest in:
- BTC/USDT H8, D1
- LTC/USDT: D1
- ETH/USDT: H8
- BCH/USDT: H2, H4
- LINK/USDT: H8
...
With other symbols and time frame, you can do it yourself.
We are recommend using with min time frame H2 for all symbol or using H8 only.
Setting for backtest:
- Signal %: set percent for active signal. Recommend set 80 for big time frame or 90-95 for small time frame.
- Trade type:
+ LongShort (default): trade Long and Short if you trade with margin account.
+ LongOnly: if you trade with spot account, select Long only for backtest.
+ ShortOnly: if you trade with margin account and like short only.
- Take profit %: close order if profit > this value. Set to 0 for disable this function.
- Stop loss %: close order if profit < this value. Set to 0 for disable this function.
Best Supertrend CCI StrategyHello traders
Someone requested the strategy version of the Supertrend CCI indicator
It's a Supertrend not based on candle close but based on a CCI ( Commodity Channel Index )
How does it work?
Bull event: CCI crossing over the 0 line
Bear event: CCI crossing below the 0 line
When the event is triggered, the script will plot the Supertrend as follow
UP Trend = High + ATR * Factor
DOWN Trend = Low - ATR * Factor
This is an alternative of the classical Supertrend based on candle close being above/beyond the previous Supertrend level.
Hope you'll enjoy it and it will improve your trading making you a better trader
Dave
[LunaOwl] 超級趨勢2 (SuperTrend2)It is very similar to the previous version. I changed the function from study to a strategy, and added the Average true range to RMA again.
I don't know the academic suitability, but using this strategy to trade the Altcoins market may have a good effect.
refer to Binance for 0.1% of fees, starting from Q4 2017.
跟以前的版本變化不大,我將腳本函數從"study"更改為"strategy",然後將平均真實範圍再次用遞迴平均線均化數值。
不知道學術上的適不適合這麼做...但是,直到目前交易小幣現貨市場,效果還算不錯,用用看。
交易手續費參考幣安小幣,0.1%,從2017年第四季開始測。
Updated:
--1. use RMA to reduce ATR noise.
--2. for the highly volatile Altcions market, strategy should focus on reducing noise.
--3. the Street commonly used alpha filtering for Random Walk.
--4. compared to other MAs, the performance is not outstanding, but the advantage is stability.
--5. I choose the 4H time frame to test the Altcoins (ex: ETH).
稍做更新:
--1.平均真實區間利用了遞迴均線減少雜訊
--2.針對高波動率的小幣市場,中期順勢策略應該以減少雜訊為重點
--3.研究國外交易策略後,它們常用平滑因子過濾隨機走勢
--4.績效上和其它平均法比較並沒有突出,但優點是參數變動穩定性
--5.我選擇四小時線回測小幣市場,並且選擇經歷過牛熊市的以太坊
The purpose of publishing Chinese Scripts is to make Pine close to more Chinese user.
發布中文腳本的目的,是希望可以讓 Pine 親近更多中文圈的使用者。
Variable Cloud - evoA Super Trend based on the high and low of a Moving Average, to get an easy view what the current trend is and where to buy and sell.
TIPS
- The 'Closing Source' option is the candle value that triggers the clouds. 'High/Low System' means that a downtrend is over when the candle LOW closes greater than the downtrend (dark cloud), an uptrend is over when the candle HIGH closes less than the uptrend (light cloud). The other options speak for themselves.
- Ideally place your stop loss outside the cloud, as you want to stay in the trend until it breaks to the opposite direction (but that's up to you of course).
- Reversal trades are low probability, you can see them as reversals or ranging before the market continues, I like to lower my risk on those set ups till it breaks the dominant trend.
Here are the scripts I used:
Everget's SuperTrend
LazyBear's VMA
Thanks LazyBear and Everget, I learn a lot from your scripts :)
Variable SuperTrend - evoPlayed around with Lazy Bear's VMA and Gunazzi's SuperTrend Cloud .
It plots an uptrend if the low of a candle gets above the recent downtrend and plots a downtrend if the high of a candle gets below the recent uptrend, you have to wait for the candle to close to confirm the actual trend change.
I use it to give me a direction for longs or shorts, not as a stop/reverse indicator.
Thanks Lazy Bear and Gunazzi :)