mel0n

3x SuperTrend Strategy (Mel0nTek) V1

This is a triple SuperTrend based strategy for lower time frame trades such as day trades and scalping. I have not seen many strategies that combine multiple SuperTrends so I thought I would publish this one since I put it together and have been quite happy with the results. I have found through testing that the best results are on currency exchange markets such as Crypto or Forex on 1-15 min time frames.

The core idea was inspired by a youtube video put out by Trade Pro:
"Trade Pro - HIGHEST PROFIT Triple Supertrend Trading Strategy Proven 100 Trade Results"
I went ahead and set the defaults to the ones he uses in his video for anyone who wants to try a configuration similar to his. They work pretty well in general, however the EMA , SuperTrend ATR multipliers, and P/L ratio can be tuned/optimized to fit the timeframe/market desired. The video is quite good but not a required watch as I will explain below.

The 200EMA is used as a medium-term trend direction indicator.
- Price closing consistently above the 200EMA means that only long positions should be entered.
- Price closing consistently below 200EMA means that only short positions should be entered.

The 3 SuperTrend indicators should be used as direction confirmation for entries. Typically, price above SuperTrend indicates bullish movement, while price below SuperTrend indicates Bearish movement. However by itself, it is not a great indication to enter/exit positions in my experience. By combining 3 of them with slightly longer periods and increased ATR multipliers, we can get much stronger confirmation of trend direction/strength.
The way they are used in this strategy is such that:
- We only want to enter a position if at least 2 out of 3 SuperTrends are on our side.
- 3/3 SuperTrends on our side is the best case, since we are taking trades WITH momentum/price strength.
- The second farthest SuperTrend from entry price is used as a Stop Loss

SuperTrend being on our side is not the only requirement for an entry however. The probability of success is increased with SuperTrend, and a longer EMA on our side, but we want to be sure that we aren't getting in too late/after the movement has already happened.

So we use Stoch RSI to pick our entries where price is oversold/overbought and reversing. That means the Stoch RSI is above 80, or below 20, and our indication to enter the trade is when the 2 lines cross/begin reversing direction.

So with trend direction on our side, we can get really good entries at these oversold/overbought extremes, especially as it's reversing ( Stoch RSI K and D are crossing). This allows us to use the SuperTrend as a support/stop loss on our entry since price should be above it.

Then we just target 1.5x our max loss so that even if we only win 50% of the time, we still make a profit.

The explicit rules of this strategy are as follows:
=== Rules ===
long only
- price above EMA200
short only
- price below EMA200
Stop Loss = 2nd SuperTrend line above (short) or below(long) entry candle
Profit = 1.5x SL/risk (Profit Ratio x Max Loss)

=== Entry Setup ===
LONG
- Stoch RSI below 20, cross up
- at least 2 SuperTrend lines below close

SHORT
- Stoch RSI above 80, cross down
- at least 2 SuperTrend lines above close

P.S. Special thanks to Trade Pro for producing so many quality videos, putting strategy claims to the test, and providing me with so many good ideas I apply to my own strategies.
Phát hành các Ghi chú: Added back the Backtest Start Time conditional that was removed just prior to initial release accidentally. Oops!
Phát hành các Ghi chú: There was also 1 more thing I thought I should rename and explain a bit.

"Stoch RSI Entry Zone +/-" represents the overbought/oversold area threshold for Stoch RSI entry conditions. The default value is 20, which means that long entries will only be taken when Stoch RSI is below 20, and short entries will only be taken above 80 (100 - 20).
For example, if you change it to 30, it will only enter longs below 30, and shorts above 70.
Mã nguồn mở

Với tinh thần của TradingView, tác giả đã xuất bản tập lệnh theo mã nguồn mở, vì thế trader có thể dễ dàng hiểu và tùy chỉnh được. Bạn có thể sử dụng miễn phí, hoặc tùy chỉnh lại mã đã được cấp phép bởi Quy tắc Chung. Bạn có thể sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Bình luận

Great work! Thanks.
500 xu
Phản hồi
mel0n Future933
@Future933, wow thanks! I just hope some people learn or get some good use out of it!
Phản hồi
@mel0n, you're welcome. Thank you!

Unfortunately the alert does not work properly. I tried here and there to modify it, but to be honest I'm not really into that coding thing. I added you indicator / strategy to my chart and activated the alert. Sometimes it triggers, sometimes it doesn't. If you have a clue what the problem is I would be happy if you could let me know. Thanks, mel0n. So long.
Phản hồi
Thx, Mel0n, for preparing & sharing this strategy here on TV!! Nice work, man - really appreciate it...
+2 Phản hồi
excelent work... it would be great if you put some alerts to use with bots
Phản hồi
great script! is it possible to make the SL adjusting to the supertrend? Like if the price is moving more and more into profit but dont reach the TP it may bounce back to the SL from the beginning, you kinda loose the whole possible profits. SL could move together with the supertrend and leave an option to close in profit.
Phản hồi
I was looking for this script because i watch the Trading Pro test before
Can you do a study version with alert ?
I will try to connect to a bot on a paper account to see how is working .
Thank you for your work !!!
Phản hồi
mel0n etarniceriu
@etarniceriu, I just replied to the other comment asking this so see that if you want more. But I actually do use TV strategies for algo trading via web hooks. I might make a study version if enough people want it as mentioned in the other post. But converting it shouldn't be too hard so any1 is welcome to do whatever they want with the code, I just dont have much time currently to put towards it.
Phản hồi
Could you be so kind as to release a study version with alerts? Love your work!
Phản hồi
mel0n technicalLion31151
@technicalLion31151, I could but tradingview does not want people publishing variations of the same things. I could put together a study version and share via github or something if enough people want it (it would be a little bit of work to convert all the strategy-specific logic to a study, but not that bad).

I tend to reserve studies for single indicators/ideas, and use strategies for actual combinations of indicators like seen in this one.

However, you can actually put alerts on strategies, which is actually how I use them. If I want alerts on every potential entry/exit, I just enable pyramiding and set it to something high like 5. Then just add the alert to the strategy to let me know when it buys/sells as that's all that really matters to me. If I want an alert on just a single indicator used in a strategy, I will just add that indicator by itself on my chart with the same settings, and add an alert to that.
Phản hồi
Trang chủ Bộ lọc cổ phiếu Bộ lọc Forex Bộ lọc Tiền điện tử Lịch kinh tế Giới thiệu Tính năng Biểu đồ Trả phí Giới thiệu bạn Quy tắc Áp dụng Trung tâm Trợ giúp Giải pháp cho Website & Nhà môi giới Widget Giải pháp biểu đồ Thư viện Biểu đồ Lightweight Blog & Tin tức Twitter