They would be so kind as to add the following alert to this indicator: alertson, alertsOnCurrent, alertsMessage, alertsSound, alertsNotify, alertsEmail, SoundFile, ShowArrows, arrowsUpperGap, arrowsLowerGap.
So that the conditions are met alerts should only show arrows When the fast (14,3,3) is at oversold stochastic levels (below 20) and the% K line crosses above the% D line the and when to the second slow stochastic (21,9,9) is at oversold levels (below 20) and the% K line crosses above the% D line the, We have a signal to buy calls.
When the fast and slow stochastic is at overbought levels (above 70) and the% K line crosses below the% D line We have a signal to buy puts.
Thanks alot for all the help.
This is the code that is responsible for alerts :
And then this :
int whichBar = 0;
else whichBar = 1;
if (cross[whichBar] != cross[whichBar+1])
if (cross[whichBar] == 1)
else doAlert("crossing down");
Alerts are triggered on macd crosses zero line, not when macd crosses signal line, as it is visible from that code
Duly noted. Are you or is anyone else able to code an indicator that generates alerts and arrows upon both the aforementioned MACD zero line cross and simultaneous price moving average cross?
You are looking for a cross of a price and and ma cross to happen at the same time as two mas cross (since ema is two emas cross). I hope that someone will really be able to code that for you
All the best
That MACD is repainting. Better to use some correct version
please have tried to make the arrow appear after the close of the
signal candle in other to avoid repainting but all to no avail.