Elder impulse release

The purpose of Impulse Release is to prevent trading in the wrong direction. While the Impulse System operates in a single timeframe, Impulse Release is based on two timeframes. It tracks both the longer and the shorter timeframes to find when the Impulse points in the same direction on both.

Its color bar flashes several signals:

If one timeframe is in a buy mode and the other in a sell mode, the signal is "No Trade Allowed", a red bar.
If both are neutral, then any trades are allowed, showing a blue bar.
When one is bullish while the other is either bullish or neutral, there is a green bar, allowing traders to buy and prohibiting shorting.
When one is bearish while the other is either bearish or neutral, a red bar signals that shorts are permitted, while long trades are not allowed.

Please check Dr Elders books available on amazon they are a great buy and a nice to read.
Phát hành các Ghi chú: you can now change the time ratio
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

Hi very useful script

I would like to use this when I look at weekly chart it will use daily also and not monthly.

Just wonder if I plot it on a daily chart will it take next timeframe to weekly and if I view weekly will it use monthly then?
+1 Phản hồi
Hi! Thank you for coding this.
If you don't mind me asking, is "no trades" red different from from "bearish" red? I only see 3 colors on the chart but there are 4 scenarios here.
+1 Phản hồi
Biticon ngocquevt
@ngocquevt, hello, thank you for the comment, red is used in impulse as a "no long trade allowed" and "can only open short position", and this is the dr Elder typical use of the impulse.
If the color is red there is no long trade, if the color is green there is no short trade (even tho in the crypto world you cant really open short position unless in some pairs who allow margin trading), and if is blue you can go both ways, so the scenarios are 3.
Phản hồi
Biticon ngocquevt
@ngocquevt, yes red bar and bearish bar are the same
Phản hồi
This script is the best script I have seen on Tradingview and frankly I can't believe no one has commented on this! I just wanted to say thanks for coding this! It's amazing!!
+1 Phản hồi
Hi - Thanks for doing the Elder Impulse Release and making it available to everyone, I appreciate it, it's awesome!
I purchased his elder-disk (v3.2) for MT5 over a year ago and use his system. (Side note: They are no longer updating or providing support for the MetaTrader Versions)

There are 3 options Dr Elder has I’m hoping you might consider changing /adding to your script?

1. He uses “Black” for the “No Trades Allowed” color (User definable). So there are actually four possible colors (See copy from his manual below)

2. Have the “TimeRatio” value so it can be changed/input by the user. (The Elder system is User Definable - explanation from his manual below)

3. Along with the MACD input values you already have, he uses a Short_EMA_Length (13) The short-term price EMA. Also User Definable. Maybe this is already in your code? (this is also used with his Impulse System)

I have pasted below a portion from the user manual for the Impulse Release incase it helps:

Parameters are the MACD ones plus a time ratio.
● MACD_Short_Length (12) – The short EMA for the MACD calculation.
● MACD_Long_Length (26) – The line EMA for the MACD calculation.
● MACD_Smoothing_Length (9) – The smoothing value for the MACD Signal line.

● Short_EMA_Length (13) – The short-term price EMA.

● TimeRatio (5) – The ratio between the two timeframes. For a system using daily for the short and weekly for the long use 5. If you are trading 10-minute bars and using hourly charts as long-term, use 6, etc.

Format Tips: There are 4 plots – each is either 0 or 1, and only one shows at any given time. Choose medium size histogram style, color-coding its bars as appropriate: green for “No Short allowed”, red for “No Long allowed”, blue for “Both allowed” and black for “None allowed”.
Phản hồi
Biticon nickcrookston
@nickcrookston, hello nick...regarding the black bar...i know it..i remember it when i first find that code and could not figure what is that for and still i dont know....i know red is if some bar is in bear if if neutral so one can go long or short....but a black bar? idk really!
regarding the ema 13 or you really think it makes a difference?but it can be done
the time ratio adjustable is the easiest request i will be updating as soon as possible
Phản hồi
@Biticon, Hi, thanks for replying and sorry my post got a little long before! I know it can be kind of confusing.

Where the black bar comes in is, If one timeframe is in a buy mode and the other in a sell mode, the signal is "No Trade Allowed", a Black Bar (You currently show a Red Bar indicating a Short/Sell)

For example, When I look at both MetaTrader (elders chart) and Tradingview (your chart), sometimes I will get a black bar on MetaTrader showing "No Trades Allowed"; Black.
While yours will show a Red Bar instead indicating a "Time to sell or go short" which may not be true at all. (A Red Bar is when one is bearish while the other is either bearish or neutral). Hope this helps..

In summary...on the line from your description: "If one timeframe is in a Buy mode And the other in a Sell mode, the signal is "No Trade Allowed", a red bar." This should be a Black Bar (user definable) to match his system. The other 3 (Blue, Red, Green are correct)

Thats great that you will add the adjustable time ratio! That does make a big difference, thank you!

As for the short ema on price ... I haven't noticed a lot of differences from this, between when yours and Elders flashing a blue, Green, Red or (Black) Bars, but there are some.
I felt it was probably the least of the 3 things I mentioned before and I would guess the hardest to do... so it may not be worth the time and effort.

I also use some of your other Elder indicators like the safe zone stops and the Impulse System for example. I like to have that on my chart for the longer timeframes (which is different from this Impulse Release as you know)

So again I really appreciate all that you have done! I feel like Thanks is hardly enough that you volunteer these indicators!
Phản hồi
Biticon nickcrookston
@nickcrookston, Hey Nick, don't worry your post was not that long at all and it was pretty clear. Thank you for your compliment, i enjoy the likes and comments i see on my scripts :)! i will fix the time ratio right now, for the black bar and ema length is a bit longer work so i'll do it when i can.
Phản hồi