Hola amigos,
Tengo esta alerta de línea de tendencia (la encontré aquí, gracias!)
¿Cómo puedo declarar que acabo de recibir una alerta cuando el precio rompe un mínimo de 10 puntos a través de la línea de la moda y se retrae dentro de 3 puntos de la línea de tendencia?
Inicio inicial ()
int counted_bars = IndiorCounted ();
ObjectCreate (TLineName, OBJ_TREND, 0, Time [25], Bid, Time [0], Ask);
ObjectSet (TLineName, OBJPROP_STYLE, LineStyle);
ObjectSet (TLineName, OBJPROP_COLOR, LineColor);
ObjectSet (TLineName, OBJPROP_WIDTH, LineWidth);
doble val = ObjectGetValueByShift (TLineName, 0);
if ((MailSent lt; = Bars) Bid-AlertPipRange * Etapa lt; = val Oferta AlertPipRange * Etapa gt; = val)
SendMail (Symbol (),); </i>
<i> MailSent = Bars 3; </i>
<i>
if ((SoundPlayed lt; = Bars) Bid-AlertPipRange * Stage lt; = val Bid AlertPipRange * Stage gt; = val)
PlaySound (AlertWav); </i>
<i> SoundPlayed = Bars 3; </i>
<i>
return (0);
¡Gracias!