its literally just a translation of the line you pasted. I had to look up what functions were being referenced, but basicallyThank you.
Can you please explain your line to me?
I've been using WAE for quite some time... I had made some changes when I added it to my Renko Bar Based Trading System for Thinkorswim but have since reverted back to the original configuration because my modified version only performed well for long trades and call options and just wasn't effective for short trades and put options...I'd never even heard of this indicator, I was just bored last night so I looked at that code haha Any decent results with it and on what time frames does it tend to do best?
Would it be possible to replace the MACD Histogram with the DMI_Oscillator? I tried to combine the code but I couldn't get the histogram to only chart "up" on the graph like has been done to the MACD Histogram for the WEA here. I have found the DMI to be more accurate so I think it could be a great improvement
Thanks for the Indicator and the explanation , like the name .From the author .
"Here is a new indicator which I programed, it gives an explosion signal depending on two indicators (Bollinger & MACD). With this indicator you can discover when the price explosion starts and when it ends
The indicator is designed to work with H1 frame only. How to use the indicator:
1) The yellow line is used to recognize when the explosion starts and when it ends. the explosion starts when the yellow line is low as long as the yellow line is high the explosion is still running on the price explosion ends when the yellow line is back low inside the dots zone the yellow line job is identifying the explosion starts and ends.
2) The green histogram: has three uses: first, gives a signal when price explose upward (bullish move) second, gives the buying signal, when the green histo rises above the yellow line. third, gives the exist signal, when the a green histo slip back into the yellow line
3)The green histogram: has three uses:
I hope that you will like the indicator. I added some properties so the indicator would be more sensitive and can be used with all pairs:
- first, gives a signal when price explose downward (bearish move)
- second, gives the sell signal, when the red histo rises above the yellow line
- third, gives the exist signal, when the red histo slip back into the yellow line
- sensitive property
- DeadZonePip property which represents for the pips move inside the dead zone (the zone between the dots line)
- BandPeriod property which represent the sensitive of the yellow line
- BandDivision property helpful value for the explosion (for yellow line)
- showlong property to show or hide the green histo
- showshort property to show or hide the red histo
- showexplosion property to show or hide the yellow line
- showdeadzone property to show or hide the dead zone (dots zone)
Explanation for the Price Explosion indicator:
The indicator depends on two things to show the data and the lines in chart
1) The deference between the upper and lower band of the Bollinger band which tight when the price fluctuates (narrow move) when the difference between the bands expand, the explosion process starts and the yellow line curve upward till the explosion ends and price fluctuate again
2) The difference between the present value of the macd and the last value with one tick for the same candle this deference is represented in the green and the red histogram.
END"
the variables t2 & e2 are not used? I don't know why they are not being used.
Alert(tUp crosses above ex and ex > xLine, "tUp Alert", Alert.BAR, Sound.Ding);
Alert(tDn crosses above ex and ex > xLine, "tDn Alert", Alert.BAR, Sound.Ding);
Edited to add: You might want to add checking xLine as well so you only get alerted when out of the dead-zone... You use of e1 instead of ex is fine as it checks the e1 variable instead of the plot... Both work but using the variable makes adapting to a Watchlist or Scanner simpler...
Ruby:
Alert(tUp crosses above ex and ex > xLine, "tUp Alert", Alert.BAR, Sound.Ding);
Alert(tDn crosses above ex and ex > xLine, "tDn Alert", Alert.BAR, Sound.Ding);
plot up = if tUp crosses above ex and ex > xLine then 0 else double.nan;
plot down = if tDn crosses above ex and ex > xLine then 0 else double.nan;
up.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
down.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
plot tUpArrow = if showArrows and trendUp crosses above ex and ex > xLine and ex[1] < ex then Double.NaN else Double.NaN;
tUpArrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
tUpArrow.SetDefaultCOlor(Color.GREEN);
tUpArrow.SetLineWeight(3);
plot tDnArrow = if showArrows and trendDown crosses above ex and ex > xLine and ex[1] < ex then Double.NaN else Double.NaN;
tDnArrow.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
tDnArrow.SetDefaultCOlor(Color.RED);
tDnArrow.SetLineWeight(3);
def t1 = (calc_macd(close, fastLength, slowLength) - calc_macd(close[1],
fastLength, slowLength)) * sensitivity;
def t2 = (calc_macd(close[2], fastLength, slowLength) -
calc_macd(close[3], fastLength, slowLength)) * sensitivity;
How do you scan for the lighter colored lesser bar from the previous one? tUp is Green, tUp weakening is Light-Green, and tDn is Red, tDn weakening is Light-red. So scan for light green, or light red. thanks.
Join useThinkScript to post your question to a community of 21,000+ developers and traders.
Start a new thread and receive assistance from our community.
useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.
We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.
If you are new, or just looking for guidance, here are some helpful links to get you started.