TradingStrategyCheck

EMA RSI ATR Hidden Div Strat - 1 Min

Hey there!

Hereby I present you the EMA RSI Lowest Low Hidden Divergence strategy, which I discovered on a youtube channel.
He has tested the strategy hundreds of times manually, herewith I try to automate the whole thing.

Since I use the strategy with a bot, it can only enter long positions for now. But in the future I will add the possibility to trade short positions.

The strategy was tested with BTC / USDT in 1m chart (8 days). The values must be adjusted depending on the timeframe and coin.

-----------------------------------------------------------------------------------

How does the strategy work?

First of all, we need a bullish hidden divergence.
Once this is detected, the following parameters are checked:

The 50 EMA must cross the 250 EMA .

Then, the candle must close above the 50 EMA .

The K line of the RSI STOCH indicator need to crosses the D line.

If the next candle closes above the 50 EMA , a long position is opened.

The stop loss is determined with the "lowest low/highest high lookback".
The profit factor is multiplied by the value of the lowest low/highest high lookback.

The results of the strategy are without commissions and levers.

If you have any questions or feedback, please let me know in the comments.

In the future I will add other types of stop loss / take profits. (ATR; %; eg.)

I wish you good luck with the strategy!
Phát hành các Ghi chú: The strategy is now designed on a 15 minute chart, but works just as well on the 1 minute chart.

It is now possible to trade short positions.

You can now see the stop loss of the respective candle.
Phát hành các Ghi chú:
  • Added the possibility to calculate the stop loss and take profit by means of the ATR

Added table with the last tp and sl

take profit and stop loss marked on the chart
Phát hành các Ghi chú: I fixed a bug that caused incorrect purchases when used with bots.
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 đồ?
If you are interested in the script and want to learn more about the settings and applications, check out my Youtube channel. There I regularly publish tutorials. https://youtube.com/channel/UCi9tkR4i8l5oIyF6th_d8Ug

Bình luận

I used to code PHP in the past and 10 minutes ago I decided to code the same strategy from YT video to learn Pine code and make a profit (obviously xD) the irony is I searched how to find hidden divergence and saw your strategy which is from the same video xD
+2 Phản hồi
fareselhadary fareselhadary
I have 2 questions if you don't mind, when I use 1 min it returns "study error"
also, I use Binance which takes 0.1% from every trade, should I type the commission on properties 0.1 or 0.2 ?
+3 Phản hồi
@fareselhadary, The commission is 0.1 percent. You should also not ignore the slipage (spread). The error occurs because the script only looks back a maximum number of candles. I will fix this error soon. Have a nice day!
+1 Phản hồi
ChasinAlts TradingStrategyCheck
@TradingStrategyCheck, I often wondered the best way to calculate the slippage that should be coded in. Any experience/opinion on the matter? Currently I do not (and have not) ever used slippage in my strats but would like to to attempt a little more realism so...how do you go about it. Lastly, why would you not be coding a commission in your script? Thanks for the published script and for your time. Have a GREAT day bud.
Phản hồi
@fareselhadary, What a coincidence.
+1 Phản hồi
Very nice! So if I would like to connect this to a bot via webhooks and have different alert messages depending on entry/exit and short/long, how do I configure that?
+1 Phản hồi
@Dinkelfras, hey there :) i made a tutorial for this. Just check my profile.
Phản hồi
Dinkelfras TradingStrategyCheck
@TradingStrategyCheck, Thanks, I did check the tutorial but didn't really get wiser :p Basically I want to connect Cornix and the alert message should only contain a string of numbers and letters. Could you give an example of how the alert should look for enter long if the message should only say e.g. "enterlongnow"? Then I can probably figure out the rest.
Phản hồi
What settings were used to produce these results?
+1 Phản hồi
@myholt, The default settings of the script in the five Minute chart of BTC/USDT Binance.
+1 Phản hồi