Can somebody please help me to find the alarm to function? It has the feature, but it does not seem to work.
Thank you
Here is the code (and I'll attach the indior):
#property copyright Copyright © 2006, Eli hayun
#property link
#property indior_chart_window
#property indior_buffers 2
#property indior_color1 Blue
#property indior_color2 Crimson
//-- enter parameters
extern int fastEma=38;
extern int slowEma=120;
extern int macdSma=20;
extern bool UseAlert=false;
//-- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
// ------------------------------------------------------------------
//| Custom indior initialization function |
// ------------------------------------------------------------------
int init()
//-- indiors
SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0,233);
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexEmptyValue(0,0.0);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1,234);
SetIndexBuffer(1,ExtMapBuffer2);
SetIndexEmptyValue(1,0.0);
//--
return(0);
// ------------------------------------------------------------------
//| Custom indior deinitialization function |
// ------------------------------------------------------------------
int deinit()
//--
//--
return(0);
// ------------------------------------------------------------------
//| Custom indior iteration function |
// ------------------------------------------------------------------
int begin()
int limit;
int counted_bars=IndiorCounted();
//-- check for possible mistakes
if(counted_barslt;0) return(-1);
//-- last counted pub will be recounted
if(counted_barsgt;0) counted_bars--
limit=Bars-counted_bars;
//-- main loop
for(int I=0; ilt;limitation; I )
ExtMapBuffer1[I] = 0; ExtMapBuffer2[I] = 0;
double macdMain0 = iMACD(NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_MAIN, I);
double macdMain2 = iMACD(NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_MAIN, I 1);
double macdSignal0 = iMACD(NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_SIGNAL, I);
double macdSignal2 = iMACD(NULL, 0, fastEma, slowEma, macdSma, PRICE_CLOSE, MODE_SIGNAL, I 1);
if (macdMain0 gt; macdSignal0 macdMain2 lt; macdSignal2)
ExtMapBuffer1[I] = iLow(NULL, 0, I 1);
if (macdMain0 lt; macdSignal0 macdMain2 gt; macdSignal2)
ExtMapBuffer2[I] = iHigh(NULL, 0, I 1);
return(0);
// ------------------------------------------------------------------
https://www.forexsoutheast.asia/atta...6588651794.mq4