# Indicators with alerts/signal - page 369 9541

kidrock:
Mrtools thx for the reply , i didnt know that decompiling an ex4 make the code harder to figured out, why is that? so there's nothing i cant do? i also have nen indi but this one is better for me Mladen explained it very well somewhere which i can't find, but check out some of the decompiled code

int start() {

int lia_0;

double lda_4;

double ld_28;

double ld_36;

if (g_bars_108 == Bars) return (0);

delete_obj();

g_bars_108 = Bars;

int li_unused_12 = 0;

int li_16 = 4;

int li_20 = gi_80;

int li_24 = -1;

while (li_20 < g_bars_100) {

while (li_20 = 0) {

if (gda_96[li_20] != 0.0) {

lia_0[li_16] = li_20;

lda_4[li_16] = gda_96[li_20];

li_16--;

}

li_20++;

}

ld_28 = lda_4 * (lda_4 - lda_4);

ld_36 = lda_4 * (lda_4 - lda_4);

if ((ld_28 - lda_4) * (ld_36 - lda_4) <= 0.0 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

if (lda_4 < lda_4 && lda_4 < lda_4 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

li_24 = li_20 - 1;

} else {

if (lda_4 > lda_4 && lda_4 > lda_4 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

li_24 = li_20 - 1;

}

}

}

for (int li_44 = 4; li_44 > 0; li_44--) {

lia_0[li_44] = lia_0[li_44 - 1];

lda_4[li_44] = lda_4[li_44 - 1];

}

li_16 = 0;

Sleep(20);

if (first_one && li_24 != -1) break;

}[/PHP]

Probably not a good example but this is regular code

[PHP]int start()

{

int counted_bars=IndicatorCounted();

int i,limit;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,Bars-1);

//

//

//

//

//

for (i=limit; i>=0; i--) temp = MathMax(High,Close) - MathMin(Low,Close);

for (i=limit; i>=0; i--)

{

atr = iMAOnArray(temp,Bars,AtrPeriod,0,AtrMa_Mode,i);

}

for (i=limit; i>=0; i--) atrma = iMAOnArray(atr, Bars,MaPeriod,0,Ma_Mode,i);

return(0);

}

Also for whatever reason the original author didn't want the code seen, something i think we should respect. 10

mt4-stochasticrsi-oscillator.mq4

Thanks.

Files: 10

mrtools:
Mladen explained it very well somewhere which i can't find, but check out some of the decompiled code
int start() {

int lia_0;

double lda_4;

double ld_28;

double ld_36;

if (g_bars_108 == Bars) return (0);

delete_obj();

g_bars_108 = Bars;

int li_unused_12 = 0;

int li_16 = 4;

int li_20 = gi_80;

int li_24 = -1;

while (li_20 < g_bars_100) {

while (li_20 = 0) {

if (gda_96[li_20] != 0.0) {

lia_0[li_16] = li_20;

lda_4[li_16] = gda_96[li_20];

li_16--;

}

li_20++;

}

ld_28 = lda_4 * (lda_4 - lda_4);

ld_36 = lda_4 * (lda_4 - lda_4);

if ((ld_28 - lda_4) * (ld_36 - lda_4) <= 0.0 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

if (lda_4 < lda_4 && lda_4 < lda_4 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

li_24 = li_20 - 1;

} else {

if (lda_4 > lda_4 && lda_4 > lda_4 && (lda_4 - lda_4) * (lda_4 - lda_4) ) {

li_24 = li_20 - 1;

}

}

}

for (int li_44 = 4; li_44 > 0; li_44--) {

lia_0[li_44] = lia_0[li_44 - 1];

lda_4[li_44] = lda_4[li_44 - 1];

}

li_16 = 0;

Sleep(20);

if (first_one && li_24 != -1) break;

}[/PHP]

Probably not a good example but this is regular code

[PHP]int start()

{

int counted_bars=IndicatorCounted();

int i,limit;

if(counted_bars<0) return(-1);

if(counted_bars>0) counted_bars--;

limit = MathMin(Bars-counted_bars,Bars-1);

//

//

//

//

//

for (i=limit; i>=0; i--) temp = MathMax(High,Close) - MathMin(Low,Close);

for (i=limit; i>=0; i--)

{

atr = iMAOnArray(temp,Bars,AtrPeriod,0,AtrMa_Mode,i);

}

for (i=limit; i>=0; i--) atrma = iMAOnArray(atr, Bars,MaPeriod,0,Ma_Mode,i);

return(0);

}
Also for whatever reason the original author didn't want the code seen, something i think we should respect.

I see, they are quite different... thanks anyway  196821

T3 - ma crosses with alerts ...

This is a T3 - ma crosses indicator from this post : https://www.mql5.com/en/forum/173058/page15 with alerts added

Files: 196821

T3 ma crosses - histgram version ... Files: 24

Adding arrow when stochRSI passes up 20/down 80 level & a vertical doted line

I shall provide you with two indicators as follows:

a. To remove level s 15 and 85.

b. Add a white vertical dotted line throughout all windows at stochRsi level 5 and level 95; It should show the maximum of 10 vertical line from the current price and do not repaint – similar to paragraph c.

c. Add a thick LIMEGREEN arrow whenever the price move from below stochrsi 20 level to 20 level and a thick RED arrow whenever the price move from above 80 level to 80 level. The arrows must be displayed at the main price window at a distance at around 50/60 dots from the price. It should show the maximum of 10 arrows from the current price and do not repaint – similar to paragraph b. Please refer to Stochastic_color_V1.02 mq4 arrow coding.

2) My intended parameters for the stochRsi are as follows:

a. RSIPeriod =8

b. Price = 0

c. Stochastic KPeriod = 8

d. Stochastic Slowing =3

e. Moving Average = 1 (EMA)

f. Stochastic DPeriod =8

g. Stochastic DMaMethod=1 (EMA)

You may get the arrow signal near the bottom of the code from Stochastic_colour_v1.02.mq4.

Files: 259

Hello all,

Willl someone please be so kind to add an alert and email notification to this indi, I would be so greatful. I have tried but no success. if possible, the alert can be added on when an arrow is formed on when it changes color to another direction. Thank you so much and may the pips be with you.

riki

Files: 9541

rikiolivier:
Hello all,

Willl someone please be so kind to add an alert and email notification to this indi, I would be so greatful. I have tried but no success. if possible, the alert can be added on when an arrow is formed on when it changes color to another direction. Thank you so much and may the pips be with you.

riki

Hi Riki,

Had to make some minor changes the way it was coded the colors repaint making it hard to get a good reliable alert, bad news is no more yellow line will only change from red to blue, but the arrows are the same as original, and alerts should go off on color change.

Files: 259

Thank you so much.

mrtools:
Hi Riki, Had to make some minor changes the way it was coded the colors repaint making it hard to get a good reliable alert, bad news is no more yellow line will only change from red to blue, but the arrows are the same as original, and alerts should go off on color change.

mrtools,

God bless. Thank you so much for taking the time and helping out. It is much appreciated. May you be rewarded with many pips. Thank you again so much.

riki 1002