Ayuda a la codificación - página 671

 
mntiwana:
Así que lo que sigue, cuando para / cerrar.
Cuando se alcanza una cierta cantidad de pips.
 
Encontré este indicador en este sitio y me pareció útil pls puede ayudarme a hacer un EA de ella y hacer que el comercio immdiately cuando la flecha aparece y cerrar el cierre de la vela siguiente lo que significa que el comercio sólo dos velas y debe cerrar si la flecha opuesta aparece. pls
Archivos adjuntos:
 

dotmund:
i found this indicator on this site and i found it useful pls can you help me make an EA of it and make it trade immdiately when the arrow appear and close it the close of the next candle meaning it will trade just two candle and it should close if opposite arrow appear

Estaré feliz también si u puede también ayudarme a hacer un EA binario de ese indicador

 
dotmund:

El BO no es algo que yo esté haciendo, así que alguien más tendrá que ayudarte con respecto a eso

En cuanto al resto: ya está haciendo esas cosas

 
mladen:

El BO no es algo que yo esté haciendo, así que alguien más tendrá que ayudarte con respecto a eso

En cuanto al resto: ya está haciendo esas cosas

SI PUEDES AYUDAR CON EL BO PUEDES AYUDAR CON EL FOREX EA EN ESE INDICADOR
 
dotmund:
SI U PUEDE AYUDAR CON EL BO PUEDE AYUDAR CON EL FOREX EA EN ESE INDICADOR
Como dije : hace lo que se pidió (incluyendo el cierre en una barra siguiente)
 

Hola,

Este post probablemente me pondría en mala luz mirando de alguna manera como un noob, pero de todos modos Im experimentar y el comercio mucho con las bandas de Bollinger y se encontró con el BB_STOP indicador.

El indicador pinta la banda inferior si el precio se está moviendo hacia arriba y frenando las bandas superiores, pinta la banda superior cuando el precio ha roto la banda inferior.

Estoy tratando de utilizar icustom en un experimento ea, y yo simplemente quiero saber si la última ruptura fue al alza oa la baja, pero no puedo averiguar lo que el búfer de usar o lo que debería establecer igual a.

Por ejemplo he hecho lo mismo con algunos indicadores MA de TDS donde el buffer de itrend es igual a 1 para arriba y -1 para abajo.

Espero que sea lo suficientemente claro, muchas gracias

#property copyright "Copyright © 2006, TrendLaboratory Ltd."
#property link      "http://finance.groups.yahoo.com/group/TrendLaboratory"

#property indicator_chart_window
#property indicator_buffers 6
#property  indicator_color1 CLR_NONE
#property  indicator_color2 CLR_NONE
#property  indicator_color3 Yellow
#property  indicator_color4 Yellow
#property  indicator_color5 CLR_NONE
#property  indicator_color6 CLR_NONE

extern int Length = 14;
extern int Deviation = 2;
extern double MoneyRisk = 1.0;
extern int Signal = 2;
extern int Line = 1;
extern int Nbars = 500;
double g_ibuf_104[];
double g_ibuf_108[];
double g_ibuf_112[];
double g_ibuf_116[];
double g_ibuf_120[];
double g_ibuf_124[];
extern bool SoundON = FALSE;
bool gi_132 = FALSE;
bool gi_136 = FALSE;

int init() {
   SetIndexBuffer(0, g_ibuf_104);
   SetIndexBuffer(1, g_ibuf_108);
   SetIndexBuffer(2, g_ibuf_112);
   SetIndexBuffer(3, g_ibuf_116);
   SetIndexBuffer(4, g_ibuf_120);
   SetIndexBuffer(5, g_ibuf_124);
   SetIndexStyle(0, DRAW_ARROW, STYLE_SOLID, 1);
   SetIndexStyle(1, DRAW_ARROW, STYLE_SOLID, 1);
   SetIndexStyle(2, DRAW_ARROW, STYLE_SOLID, 0);
   SetIndexStyle(3, DRAW_ARROW, STYLE_SOLID, 0);
   SetIndexStyle(4, DRAW_LINE);
   SetIndexStyle(5, DRAW_LINE);
   SetIndexArrow(0, 159);
   SetIndexArrow(1, 159);
   SetIndexArrow(2, 233);
   SetIndexArrow(3, 234);
   IndicatorDigits(MarketInfo(Symbol(), MODE_DIGITS));
   string ls_0 = "BBands Stop(" + Length + "," + Deviation + ")";
   IndicatorShortName(ls_0);
   SetIndexLabel(0, "UpTrend Stop");
   SetIndexLabel(1, "DownTrend Stop");
   SetIndexLabel(2, "UpTrend Signal");
   SetIndexLabel(3, "DownTrend Signal");
   SetIndexLabel(4, "UpTrend Line");
   SetIndexLabel(5, "DownTrend Line");
   SetIndexDrawBegin(0, Length);
   SetIndexDrawBegin(1, Length);
   SetIndexDrawBegin(2, Length);
   SetIndexDrawBegin(3, Length);
   SetIndexDrawBegin(4, Length);
   SetIndexDrawBegin(5, Length);
   return (0);
}

int start() {
   int li_8;
   double lda_12[25000];
   double lda_16[25000];
   double lda_20[25000];
   double lda_24[25000];
   for (int l_shift_4 = Nbars; l_shift_4 >= 0; l_shift_4--) {
      g_ibuf_104[l_shift_4] = 0;
      g_ibuf_108[l_shift_4] = 0;
      g_ibuf_112[l_shift_4] = 0;
      g_ibuf_116[l_shift_4] = 0;
      g_ibuf_120[l_shift_4] = EMPTY_VALUE;
      g_ibuf_124[l_shift_4] = EMPTY_VALUE;
   }
   for (l_shift_4 = Nbars - Length - 1; l_shift_4 >= 0; l_shift_4--) {
      lda_12[l_shift_4] = iBands(NULL, 0, Length, Deviation, 0, PRICE_CLOSE, MODE_UPPER, l_shift_4);
      lda_16[l_shift_4] = iBands(NULL, 0, Length, Deviation, 0, PRICE_CLOSE, MODE_LOWER, l_shift_4);
      if (Close[l_shift_4] > lda_12[l_shift_4 + 1]) li_8 = 1;
      if (Close[l_shift_4] < lda_16[l_shift_4 + 1]) li_8 = -1;
      if (li_8 > 0 && lda_16[l_shift_4] < lda_16[l_shift_4 + 1]) lda_16[l_shift_4] = lda_16[l_shift_4 + 1];
      if (li_8 < 0 && lda_12[l_shift_4] > lda_12[l_shift_4 + 1]) lda_12[l_shift_4] = lda_12[l_shift_4 + 1];
      lda_20[l_shift_4] = lda_12[l_shift_4] + (MoneyRisk - 1.0) / 2.0 * (lda_12[l_shift_4] - lda_16[l_shift_4]);
      lda_24[l_shift_4] = lda_16[l_shift_4] - (MoneyRisk - 1.0) / 2.0 * (lda_12[l_shift_4] - lda_16[l_shift_4]);
      if (li_8 > 0 && lda_24[l_shift_4] < lda_24[l_shift_4 + 1]) lda_24[l_shift_4] = lda_24[l_shift_4 + 1];
      if (li_8 < 0 && lda_20[l_shift_4] > lda_20[l_shift_4 + 1]) lda_20[l_shift_4] = lda_20[l_shift_4 + 1];
      if (li_8 > 0) {
         if (Signal > 0 && g_ibuf_104[l_shift_4 + 1] == -1.0) {
            g_ibuf_112[l_shift_4] = lda_24[l_shift_4];
            g_ibuf_104[l_shift_4] = lda_24[l_shift_4];
            if (Line > 0) g_ibuf_120[l_shift_4] = lda_24[l_shift_4];
            if (SoundON == TRUE && l_shift_4 == 0 && !gi_132) {
               Alert("BBands going Up on ", Symbol(), "-", Period());
               gi_132 = TRUE;
               gi_136 = FALSE;
            }
         } else {
            g_ibuf_104[l_shift_4] = lda_24[l_shift_4];
            if (Line > 0) g_ibuf_120[l_shift_4] = lda_24[l_shift_4];
            g_ibuf_112[l_shift_4] = -1;
         }
         if (Signal == 2) g_ibuf_104[l_shift_4] = 0;
         g_ibuf_116[l_shift_4] = -1;
         g_ibuf_108[l_shift_4] = -1.0;
         g_ibuf_124[l_shift_4] = EMPTY_VALUE;
      }
      if (li_8 < 0) {
         if (Signal > 0 && g_ibuf_108[l_shift_4 + 1] == -1.0) {
            g_ibuf_116[l_shift_4] = lda_20[l_shift_4];
            g_ibuf_108[l_shift_4] = lda_20[l_shift_4];
            if (Line > 0) g_ibuf_124[l_shift_4] = lda_20[l_shift_4];
            if (SoundON == TRUE && l_shift_4 == 0 && !gi_136) {
               Alert("BBands going Down on ", Symbol(), "-", Period());
               gi_136 = TRUE;
               gi_132 = FALSE;
            }
         } else {
            g_ibuf_108[l_shift_4] = lda_20[l_shift_4];
            if (Line > 0) g_ibuf_124[l_shift_4] = lda_20[l_shift_4];
            g_ibuf_116[l_shift_4] = -1;
         }
         if (Signal == 2) g_ibuf_108[l_shift_4] = 0;
         g_ibuf_112[l_shift_4] = -1;
         g_ibuf_104[l_shift_4] = -1.0;
         g_ibuf_120[l_shift_4] = EMPTY_VALUE;
      }
   }
   return (0);
}
 

Sr. Mladen, quiero confirmarlo con usted.

En este código

if(OrderMagicNumber()!=_MagicNumber) continue;

¡¿Significa eso que " ! " no es igual y el programa puede "continuar "?

Ejemplo: ¿sólo se encuentra el número mágico que coincide?

 
stevenpun:

Sr. Mladen, quiero confirmarlo con usted.

En este código

¡¿Significa eso que " ! " no es igual y el programa puede "continuar "?

Ejemplo: ¿sólo se encuentra el número mágico que coincide?

Sí y sí :)
 
NWFstudent:

Hola,

Este post probablemente me pondría en mala luz mirando de alguna manera como un noob, pero de todos modos Im experimentar y el comercio mucho con las bandas de Bollinger y se encontró con el BB_STOP indicador.

El indicador pinta la banda inferior si el precio está subiendo y frenando las bandas superiores, pinta la banda superior cuando el precio ha roto la banda inferior.

Estoy tratando de utilizar icustom en un experimento ea, y yo simplemente quiero saber si la última ruptura fue al alza oa la baja, pero no puedo averiguar lo que el búfer de usar o lo que debería establecer igual a.

Por ejemplo he hecho lo mismo con algunos indicadores MA de TDS donde el buffer de itrend es igual a 1 para arriba y -1 para abajo.

Espero que sea lo suficientemente claro, muchas gracias

NWFstudent

Por qué no usas el código fuente original para empezar (el indicador de parada de bb siempre fue gratuito, no es necesario usar la versión descompilada, y es mucho más fácil trabajar con el código original)