Hola,
Realmente agradecería si alguien pudiera ayudarme a agregar alerta a mi interior ...
Código insertado/---------------------------------------------- ------------------------------------------ cadena de entrada __________ 1 __________ = xxxxxxxxxxxxxxxxxxxxx; cadena de entrada __________ 2 __________ == CÓDIGO DE FLECHA =;/DETALLE DE FLECHA cadena de entrada __________ 3 __________ = xxxxxxxxxxxxxxxxxxxxx; input int ARROWUP = 217;/ARROW CODE input int ARROWDN = 218;/CÓDIGO DE FLECHA color de entrada ARROWUPc = clrWhite;/Flecha arriba Color de entrada de color ARROWDNc = clrWhite;/Flecha Dn Color/------ -------------------------------------------------- --------------------------------/- buffers indior doble ArrUpBuffer # 91; # 93 ;; doble ArrDnBuffer # 91; # 93 ;;/-/ ------------------------------------------- ----------------------- /| Función de inicialización indior personalizada |/ ----------------------------------------------- ------------------- int OnInit ()/- indior buffers mapping IndiorBuffers (2); SetIndexBuffer (0, ArrUpBuffer); SetIndexStyle (0, DRAW_ARROW, STYLE_SOLID, 2, ARROWUPc); SetIndexArrow (0, ARROWUP); SetIndexBuffer (1, ArrDnBuffer); SetIndexStyle (1, DRAW_ARROW, STYLE_SOLID, 2, ARROWDNc); SetIndexArrow (1, ARROWDN); return (INIT_SUCCEEDED);/ ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- ------------------- /| Función personalizada de iteración indior |/ ----------------------------------------------- ------------------- int OnCalculate (const int rates_total, const int prev_calculated, const datetime time # 91; # 93 ;, const double open # 91; # 93; , const double high # 91; # 93 ;, const double down # 91; # 93 ;, const double close # 91; # 93 ;, const long tick_volume # 91; # 93 ;, const long volume # 91; # 93; , const int spread # 91; # 93; -RRB-/- int I, limit; limit = rates_total-prev_calculated; if (prec_calculatedgt; 0) limit = limit 2; for (I = limit-2; igt; = 0; I--) if (iMA (_Symbol, _Period, 5,0, MODE_LWMA, PRICE_LOW, I 1) lt; iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_LOWER, I 1)) ArrUpBuffer # 91; I 1 # 93; = iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_LOWER, I 1) -35 * pix_y (); if (iMA (_Symbol, _Period, 5,0, MODE_LWMA, PRICE_HIGH, I 1) gt; iBands (_Symbol, _Period, 20,2.0,0 , PRICE_CLOSE, MODE_UPPER, I 1)) ArrDnBuffer # 91; I 1 # 93; = iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_UPPER, I 1) 35 * pix_y ();/--------------- return (rates_total);/ ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- ------------------- doble pix_y () return ((ChartGetDouble (0, CHART_PRICE_MAX, 0) -ChartGetDouble (0, CHART_PRICE_MIN, 0))ChartGetInteger (0, CHART_HEIGHT_IN_PIXELS, 0));// ----------------------------------------------- ------------------- /| |/ ----------------------------------------------- -------------------
Esta es la parte para la alerta COMPRAR
Código insertado if (iMA (_Symbol, _Period, 5,0, MODE_LWMA, PRICE_LOW, I 1) lt; iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_LOWER, I 1)) ArrUpBuffer # 91; I 1 # 93; = iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_LOWER, I 1) -35 * pix_y ();
Y esta es la parte de SELL alert
Código insertado if (iMA (_Symbol, _Period, 5,0, MODE_LWMA, PRICE_HIGH, I 1) gt; iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_UPPER, I 1)) ArrDnBuffer # 91; I 1 # 93; = iBands (_Symbol, _Period, 20,2.0,0, PRICE_CLOSE, MODE_UPPER, I 1) 35 * pix_y ();
¡Gracias!