Indicators with alerts/signal - page 821

 

Hi help with alert.

Files:
 
DMNIK:
Hi help with alert.

Something wrong with it (probably wrong with build 660 I use for testing)

See what is it showing to me :

Files:
wrong.gif  78 kb
 
christinaLi:
Ok, I found out what is wrong, messed 1 with 2 at one place. Now it should work. I changed the name here but you can rename it back. t3_trix_x2roc_clr_nrp_mtf_edit.mq4

Hi ChristinaLi,

You previously changed and posted the attached indicator to alert once the slow and fast T3 lines change color at the close of the bar. Is it possible to change it to alert immediately when the lines change color, before the close of the bar?

Regards

t3_trix_x2roc_clr_nrp_mtf_edit.mq4

 
Acerall:
Hi ChristinaLi,

You previously changed and posted the attached indicator to alert once the slow and fast T3 lines change color at the close of the bar. Is it possible to change it to alert immediately when the lines change color, before the close of the bar?

Regards

t3_trix_x2roc_clr_nrp_mtf_edit.mq4

Acerall

Try this one. Chose the bar you want alerts on with AlertsForBar option : t3_trix_x2roc_clr_nrp_mtf_edit_1.01.mq4

 

Hello, pls help to add option of alert on current candle.

Thanks in advance.

Files:
zwuk_ma.mq4  7 kb
 
mladen:
Acerall Try this one. Chose the bar you want alerts on with AlertsForBar option : t3_trix_x2roc_clr_nrp_mtf_edit_1.01.mq4

Thanks mladen,

Your assistance is much appreciated!

 
emmany4:
Hello, pls help to add option of alert on current candle. Thanks in advance.

emmany4

That indicator is looking one future bar ahead. That is why it does not alert on a current bar (it does not "know" the value of the future bar for the current bar) but only on a first closed bar

 
mrtools:
Hello Camisa, it's a decompiled indicator, any chance you have the original.

hello MrTools, I attached the .mq4 and not the ex3 version so you should be able to open it in metaeditor?

anyway, here is the code:

#property copyright "Copyright ©2013, Mark Ayoub"

#property link ""

#property indicator_chart_window

#property indicator_buffers 2

#property indicator_color1 DodgerBlue

#property indicator_color2 Red

extern int uMA_Length = 11;

extern int uREI_Length = 3;

extern double uREI_OB = 85.0;

extern double uREI_OS = -65.0;

datetime G_time_100;

double G_ibuf_104[];

double G_ibuf_108[];

// E37F0136AA3FFAF149B351F6A4C948E9

void init() {

IndicatorDigits(Digits);

SetIndexBuffer(0, G_ibuf_108);

SetIndexStyle(0, DRAW_ARROW);

SetIndexArrow(0, 159);

SetIndexEmptyValue(0, 0.0);

SetIndexBuffer(1, G_ibuf_104);

SetIndexStyle(1, DRAW_ARROW);

SetIndexArrow(1, 159);

SetIndexEmptyValue(1, 0.0);

IndicatorShortName("Trend Turn (" + uMA_Length + "," + uREI_Length + "," + DoubleToStr(uREI_OB, 0) + "," + DoubleToStr(uREI_OS, 0) + ")");

G_time_100 = 0;

}

// EA2B2676C28C0DB26D39331A336C6B92

void start() {

bool Li_0;

double ima_4;

double Lda_12[2];

if (Time[0] != G_time_100) {

Li_0 = TRUE;

if (G_time_100 == 0) {

Li_0 = Bars - MathMax(uMA_Length, uREI_Length) - 1.0;

ArrayInitialize(G_ibuf_104, 0.0);

ArrayInitialize(G_ibuf_108, 0.0);

}

G_time_100 = Time[0];

for (int Li_16 = Li_0; Li_16 >= 1; Li_16--) {

ima_4 = iMA(NULL, 0, uMA_Length, 0, MODE_SMA, PRICE_CLOSE, Li_16);

Lda_12[0] = f0_0(Li_16);

Lda_12[1] = f0_0(Li_16 + 1);

if (Close[Li_16] uREI_OS && Lda_12[0] < uREI_OS) G_ibuf_108[Li_16] = Low[Li_16];

if (Close[Li_16] > ima_4 && Lda_12[1] uREI_OB) G_ibuf_104[Li_16] = High[Li_16];

}

}

}

// 1FA5B2436F15D3CDBF65E8F1FBA6CC74

double f0_0(int Ai_0) {

double Ld_4 = 0.0;

double Ld_12 = 0.0;

double Ld_20 = 0.0;

for (int count_28 = 0; count_28 < uREI_Length; count_28++) {

Ld_12 += High[Ai_0 + count_28] - (High[Ai_0 + count_28 + 2]) + (Low[Ai_0 + count_28] - (Low[Ai_0 + count_28 + 2]));

Ld_20 += MathAbs(High[Ai_0 + count_28] - (High[Ai_0 + count_28 + 2])) + MathAbs(Low[Ai_0 + count_28] - (Low[Ai_0 + count_28 + 2]));

}

if (Ld_20 > 0.0) Ld_4 = Ld_12 / Ld_20;

return (100.0 * Ld_4);

}

 
mladen:
Something wrong with it (probably wrong with build 660 I use for testing)

See what is it showing to me :

Attached indicator (EX4) is working!! Please check the image how it looks on my terminal (build 646)!

Files:
 
secretcode:
Attached indicator (EX4) is working!! Please check the image how it looks on my terminal!

I know

But I can not change the ex4. When I compile the source I get that nonsense. Checking it using the strict but so far no result

Reason: