Mladen Rakic
197437
Mladen Rakic  
samuelkanu:
Please mladen could you add alert for the cross of the indicator attached. let the alert have option of on current and on closed bar. Thanks in advance

samuelkanu

Why don't you use MACD zero cross alerts (they are virtually the same)?

bamik
7
bamik  

Hi dear friends;

I need an indicator that plot an horizontal line in chart .This line is (High last day+Low last day)/2.

I need an option in this indicator to show me 21 day ago with this formula.

Thanks

dmnik
132
dmnik  

Hi help with alert.

Files:
Mladen Rakic
197437
Mladen Rakic  
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
Andre Carstens
20
Andre Carstens  
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

Mladen Rakic
197437
Mladen Rakic  
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

emmany4
130
emmany4  

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

Thanks in advance.

Files:
zwuk_ma.mq4 7 kb
Andre Carstens
20
Andre Carstens  
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!

Mladen Rakic
197437
Mladen Rakic  
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

camisa
587
camisa  
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);

}