1 Adjunto (s) ¿Alguien puede ayudarme a encontrar la alarma para funcionar? Tiene la función, pero parece que no funciona.
Gracias
Aquí está el código (y adjuntaré el indicador):
#property copyright Copyright © 2006, Eli hayun
#property link
#property indior_chart_window
#property indior_buffers 2
#property indior_color1 Azul
#property indior_color2 Crimson
//- ingrese los parámetros
extern int fastEma = 38;
extern int slowEma = 120;
extern int macdSma = 20;
extern bool UseAlert = falso;
//- buffers
double ExtMapBuffer1 [];
doble ExtMapBuffer2 [];
// ----------------------------------------------- -------------------
//| Función de inicialización del indicador personalizado |
// ----------------------------------------------- -------------------
int init ()
//- indicadores
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);
// ----------------------------------------------- -------------------
//| Función de desinitialización del indicador personalizado |
// ----------------------------------------------- -------------------
int deinit ()
//-
//-
return (0);
// ----------------------------------------------- -------------------
//| Función de iteración del indicador personalizado |
// ----------------------------------------------- -------------------
int begin ()
límite int;
int counted_bars = IndiorCounted ();
//- verificar posibles errores
if (counted_barslt; 0) return (-1);
//- el último pub contado será contado
if (counted_barsgt; 0) counted_bars--
limit = Bars-counted_bars;
//-- bucle principal
para (int I = 0; ilt; limitación; 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.forexycfds.com/attachmen...6588651794.mq4