Each and every divergence finding indicator must delay. It has to have a confirmation for if a peak or a trough is formed and it can not be done on opened bar. Hence divergence is always a "historical" indicator : showing that divergence has happened some bars ago
Thanks for your explanation. But is it possible?
I haven't see any divergence indicator that would work like that
Stocastic + Awesome Osiliator Alert indicator
Hey guys is it possible if someone could write alert indicator for Stocastic and Awesome Osciliator? I would really appretiate it and it works good. What would be needed is if AO indie is above 0 (positive) and Stocastic is OS (20 or lower) it sends alert. Its oposite for other signal. Having pop up window and sound would be great and also following alerts on all selected tfs checked in indicator.
There is quite a few indicators with alerts both for awesome oscillator as well as for stochastic at this same thread. Press the paperclip at this thread and there you will be able to find among the attachments what you need
hi all i have a request today for this indicator3c_turbo_jrsx_wappliedprice.mq4 i want alerts and email alerts when it turns green or red i also want to ask if you think its repainting or not i am not sure if the signal appear on which candle if i can have dots for the candle that has the signal it will be great malden thank you for the effort you made for free you are the best ever
Mladen's explanation is exactly how divergences work... They need clearly defined "peaks or troughs"...which requires them to be confirmed on (normally) two bars back.
However...you seem to have some interesting ideas you want to test with divergences...so here is what I have...
You CAN set the divergences to the current bar....BUT...you WILL get a number false positives...as the peaks and troughs continue to change with a new high or new low until they are finally confirmed.
While that being said...there may be some value in using this as a "heads up" of the real divergences to come...and then use that in conjunction with other indicators to get your final signal.
Here is how to set the divergences for the "current bar" on any divergence indicator...
It assumes you have the .mt4 source file to change the code.
Find the divergence drawing routines and find the "i+2" loops and change them to "i+1" (one bar back) or "i+0" (current bar)...and you will get your divergences shown on those bars...
Please see the attached example showing the multiple divergence lines on my Stoch Divergence indicator...set to Current Bar 0...
I am curious as to what your interest/strategy is...for why you want this method to see divergences...?
I hope this helps you,
Mladen why is it that that if i set the alarm to alert on current to true it does not trigger but if i set it to false it works?
That indicator should be rewritten )it uses 1 future bar in calculation, and that is probably the reason for that)
Very well explained . But which part of the source file that I need to change ? Do you mean this one?void CalculateIndicator(int countedBars)
for(int i = Bars - countedBars; i >= 0; i--)
CatchBullishDivergence(i + 2);
CatchBearishDivergence(i + 2);
Attached here are osmadivergence_alerts.ex4osmadivergence_alerts.mq4