Necesito ayuda con la codificación - página 5

 

Ayuda con la codificación

codificador experimentado puede aconsejarme para una solución

Estoy usando este código para encontrar el soporte fractal y la resistencia de ruptura:

/////////////////////////////

double RES=0.0,fractalu=0.0;

bool frbrres;

for (int ct=0;ct<bars;ct++) {

fractalu=iFractals(NULL,0,MODE_UPPER,ct);

si (fractalu>0,0) {

RES=fractalu;

romper;

}

}

si (Oferta>RES)frbrres =true; si no frbrres =false;

double SUP=0,0,fractals=0,0;

bool frbrsup;

for (int cts=0;cts<bars;cts++) {

fractales=iFractals(NULL,0,MODE_LOWER,cts);

si (fractales>0,0) {

SUP=fractales;

romper;

}

}

if (Bid<SUP) frbrsup=true;else frbrsup =false;

//////////////////////////////////////////////////////////////////

el problema es el siguiente

cuando no incluyo el código de ruptura fractal

es decir ( if (othercondition ) hacer esto.....

obtengo la señal justo en la vela actual y eso es lo que quiero, pero cuando uso el código así

if (othercondition && frbrsup==true) do this.....

entonces obtengo la señal cuando la vela se cierra y eso es demasiado tarde

He probado todas las combinaciones que se me ocurren, pero no tengo éxito, así que por favor, ayúdenme.

¡Ignora, he encontrado el problema!

 

Gran indicador necesita para mí hizo ea....plz cualquier programador esp gurús de código...gracias a lo

Estimado todos los amigos de forex,

Soy muy nuevo en la programación / lenguaje etc.. PERO TENGO UN INDICADOR MUY GRANDE QUE QUIERO HACERLO EN EA .

SOLICITAR CUALQUIER PROGRAMADOR O AMIGO FOREX PARA AYUDARME INTHIS.. EL INDICADOR SE ADJUNTA AQUÍ .. CUANDO DA FLECHA DEBE COMPRAR EN EA Y CUANDO FLECHA ABAJO DEBE VENDER JUNTO CON STOP PROFIT, STOP LOSS, TRAILLING STOP OPCIONES POR FAVOREEEEEEEEEEEEEE AMIGOSSSSSS....GRANDES RESULTADOS CON ESTE INDICADOR A EA

ESPERO QUE EL PROGRAMADOR KNOWLEDGABLE O PERSONA ME AYUDARÁ EN ESTO PARA HACER QUE EL INDICADOR EN EA POR FAVOR.....GRACIAS DE ANTEMANO A LOS QUE HACEN EA A MÍ DE ESTE INDICADOR ..... GRANDES RESULTADOS ... WATING A ESCUCHAR PARA LOS AMIGOS DE AYUDA....THANKSSSSSS

EXPERTOS

//+------------------------------------------------------------------+

//| trendsignal.mq4

//| //+------------------------------------------------------------------+

#property indicator_chart_window

#propiedad indicator_buffers 2

#property indicator_color1 DodgerBlue

#property indicator_color2 Magenta

//---- parámetros de entrada

extern int RISK=3;

extern int CountBars=350;

extern int Alert_Delay_In_Seconds=0;

extern bool Enablemail = true;

extern string subjectUp="Señal de compra";

extern string subjectDown="Señal de venta";

extern string textUp="Largo";

extern string textDown="Corto";

int SSP=9;

int PrevAlertTime=0;

//---- buffers

double val1[];

double val2[];

double alertBar;

//+------------------------------------------------------------------+

//| Función de inicialización del indicador personalizada ||.

//+------------------------------------------------------------------+

int init()

{

string nombre_corto;

//---- línea del indicador

IndicatorBuffers(2);

SetIndexStyle(0,DRAW_ARROW);

SetIndexArrow(0,233);

SetIndexStyle(1,DRAW_ARROW);

SetIndexArrow(1,234);

SetIndexBuffer(0,val1);

SetIndexBuffer(1,val2);

//----

return(0);

}

//+------------------------------------------------------------------+

//| SilverTrend_Signal ||

//+------------------------------------------------------------------+

int inicio()

{

if (CountBars>=Bars) CountBars=Bars;

SetIndexDrawBegin(0,Bares-CountBars+SSP);

SetIndexDrawBegin(1,Bares-CountBars+SSP);

int i,shift,counted_bars=IndicatorCounted();

int i1,i2,K;

double Range,AvgRange,smin,smax,SsMax,SsMin,price

bool uptrend,old;

//----

if(Bars<=SSP+1) return(0);

//---- cero inicial

if(barras_contadas<SSP+1)

{

for(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;

for(i=1;i<=SSP;i++) val2[CountBars-i]=0.0;

}

//----

K=33-RISK;

for (shift = CountBars-SSP; shift>=0; shift--)

{

Range=0;

AvgRange=0;

for (i1=desplazamiento; i1<=desplazamiento+SSP; i1++)

{AvgRange=AvgRange+MathAbs(High-Low);

}

Rango=AvgRango/(SSP+1);

SsMax=Alto[shift]; SsMin=Bajo[shift];

for (i2=shift;i2<=shift+SSP-1;i2++)

{

precio=Alto;

if(SsMax<precio) SsMax=precio;

precio=Bajo;

if(SsMin>=precio) SsMin=precio;

}

smin = SsMin+(SsMax-SsMin)*K/100;

smax = SsMax-(SsMax-SsMin)*K/100;

val1[shift]=0;

val2[shift]=0;

si (Cierre[turno]<mín)

{

tendencia alcista = false;

}

si (Close[shift]>smax)

{

tendencia alcista = true;

}

if (uptrend!=old && uptrend==true)

{

val1[shift]=Low[shift]-Range*0.5;

if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))

{

Alert("Trendsignal ",Period()," ",Symbol()," BUY");alertBar = Bars;

if(Enablemail == true) {SendMail(subjectDown+" "+ Symbol(),textDown+" "+ Close[1]+" "+ Symbol()); }

PrevAlertTime = CurTime();

}

}

if (uptrend!=old && uptrend==false)

{

val2[shift]=High[shift]+Range*0.5;

if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))

{

Alert("Trendsignal ",Period()," ",Symbol()," SELL");alertBar = Bars;

if(Enablemail == true) {SendMail(subjectUp +" "+ Symbol(),textUp+" "+ Close[1]+" " + Symbol());}

PrevAlertTime = CurTime();

}

}

Comment(shift);

old=tendencia;

}

return(0);

}

//+------------------------------------------------------------------+PLEASEEEE CONTESTAR AMIGOS FOREX CON EA DE INDICADOR CUANDO FLECHA COMPRAR-VENDER EA ..GRANDES RESUTLS SE PUEDE VER CON ESTE EA DE TRAILING STOP.. PLESAAASEE COMO SOY NUEVO EN LA PROGRAMACIÓN ......GRACIAS

 

Gran Indicador 2 EA- Por favor, ayudar a que EA - como nuevo en la programación.. GREAAT INDI

Estimado todos los amigos de la divisa,

Soy muy nuevo en la programación / lenguaje, etc.. Pero yo tenía un indicador muy grande que quiero convertirlo en EA .

SOLICITAR CUALQUIER PROGRAMADOR O AMIGO FOREX PARA AYUDARME INTHIS .. EL INDICADOR SE ADJUNTA AQUÍ .. CUANDO DA FLECHA DEBE COMPRAR EN EA Y CUANDO FLECHA ABAJO DEBE VENDER JUNTO CON STOP PROFIT, STOP LOSS, TRAILLING STOP OPCIONES POR FAVOREEEEEEEEEEEEEE AMIGOSSSSSS

ESPERO QUE EL PROGRAMADOR KNOWLEDGABLE O PERSONA ME AYUDARÁ EN ESTO PARA HACER QUE EL INDICADOR EN EA PLEASE.....GRACIAS DE ANTEMANO A LOS QUE HACEN EA A MÍ DE ESTE INDICADOR ..... GRANDES RESULTADOS ... WATING A ESCUCHAR PARA LOS AMIGOS DE AYUDA....THANKSSSSSS

EXPERTOS

//+------------------------------------------------------------------+

//| trendsignal.mq4

//| //+------------------------------------------------------------------+

#property indicator_chart_window

#propiedad indicator_buffers 2

#property indicator_color1 DodgerBlue

#property indicator_color2 Magenta

//---- parámetros de entrada

extern int RISK=3;

extern int CountBars=350;

extern int Alert_Delay_In_Seconds=0;

extern bool Enablemail = true;

extern string subjectUp="Señal de compra";

extern string subjectDown="Señal de venta";

extern string textUp="Largo";

extern string textDown="Corto";

int SSP=9;

int PrevAlertTime=0;

//---- buffers

double val1[];

double val2[];

double alertBar;

//+------------------------------------------------------------------+

//| Función de inicialización del indicador personalizada ||.

//+------------------------------------------------------------------+

int init()

{

string nombre_corto;

//---- línea del indicador

IndicatorBuffers(2);

SetIndexStyle(0,DRAW_ARROW);

SetIndexArrow(0,233);

SetIndexStyle(1,DRAW_ARROW);

SetIndexArrow(1,234);

SetIndexBuffer(0,val1);

SetIndexBuffer(1,val2);

//----

return(0);

}

//+------------------------------------------------------------------+

//| SilverTrend_Signal ||

//+------------------------------------------------------------------+

int inicio()

{

if (CountBars>=Bars) CountBars=Bars;

SetIndexDrawBegin(0,Bares-CountBars+SSP);

SetIndexDrawBegin(1,Bares-CountBars+SSP);

int i,shift,counted_bars=IndicatorCounted();

int i1,i2,K;

double Range,AvgRange,smin,smax,SsMax,SsMin,price

bool uptrend,old;

//----

if(Bars<=SSP+1) return(0);

//---- cero inicial

if(barras_contadas<SSP+1)

{

for(i=1;i<=SSP;i++) val1[CountBars-i]=0.0;

for(i=1;i<=SSP;i++) val2[CountBars-i]=0.0;

}

//----

K=33-RISK;

for (shift = CountBars-SSP; shift>=0; shift--)

{

Range=0;

AvgRange=0;

for (i1=desplazamiento; i1<=desplazamiento+SSP; i1++)

{AvgRange=AvgRange+MathAbs(High-Low);

}

Rango=AvgRango/(SSP+1);

SsMax=Alto[shift]; SsMin=Bajo[shift];

for (i2=shift;i2<=shift+SSP-1;i2++)

{

precio=Alto;

if(SsMax<precio) SsMax=precio;

precio=Bajo;

if(SsMin>=precio) SsMin=precio;

}

smin = SsMin+(SsMax-SsMin)*K/100;

smax = SsMax-(SsMax-SsMin)*K/100;

val1[shift]=0;

val2[shift]=0;

si (Close[shift]<smin)

{

tendencia alcista = false;

}

si (Close[shift]>smax)

{

tendencia alcista = true;

}

if (uptrend!=old && uptrend==true)

{

val1[shift]=Low[shift]-Range*0.5;

if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))

{

Alert("Trendsignal ",Period()," ",Symbol()," BUY");alertBar = Bars;

if(Enablemail == true) {SendMail(subjectDown+" "+ Symbol(),textDown+" "+ Close[1]+" "+ Symbol()); }

PrevAlertTime = CurTime();

}

}

if (uptrend!=old && uptrend==false)

{

val2[shift]=High[shift]+Range*0.5;

if (Bars>alertBar && shift==0 && (CurTime() - PrevAlertTime > Period()*Alert_Delay_In_Seconds))

{

Alert("Trendsignal ",Period()," ",Symbol()," SELL");alertBar = Bars;

if(Enablemail == true) {SendMail(subjectUp +" "+ Symbol(),textUp+" "+ Close[1]+" " + Symbol());}

PrevAlertTime = CurTime();

}

}

Comment(shift);

old=tendencia;

}

return(0);

}

//+------------------------------------------------------------------+PLEASEEEE CONTESTAR AMIGOS FOREX CON EA DE INDICADOR CUANDO FLECHA COMPRAR-VENDER EA ..GRANDES RESUTLS SE PUEDE VER CON ESTE EA DE TRAILING STOP.. PLESAAASEE COMO SOY NUEVO EN LA PROGRAMACIÓN ......GRACIAS

 

Necesito un programador

Hola necesito una persona que me ayude y que esté dispuesta a escribirme un EA, el EA está basado en fractal breakouts. Daré la información completa si encuentro a alguien que me ayude. Gracias.

 

Indicador rentable necesita ser convertido en EA

No sé si este es el lugar adecuado para publicar o no, pero pensé que iba a pedir y si alguien está interesado en este sistema lo suficiente como para hacer un EA para él, entonces yo lo apreciaría mucho.

Es un sistema básico de flechas que funciona en gráficos H1, no más bajos.

No se repite, sin embargo, esperar hasta que la vela se ha cerrado antes de entrar

Comprar @ Flecha hacia arriba

Cerrar y vender a la siguiente flecha descendente

Invertir para vender.

No estoy seguro de lo que la pérdida de la parada sería, pero si im honesto nunca he utilizado una pérdida de la parada cuando se utiliza este sistema.

trendsignal_1.mq4

Archivos adjuntos:
 

...

Lo incliné en el gráfico de 1h y...había demasiados perdedores...puede ser que en un plazo muy largo pueda llegar a ser rentable...con mercados en tendencia...pero...lo dudo...

 

Tal vez tengas razón, un poco inconsistente para un ea

 

...

puede ser que evitar el plano mejore las estadísticas...además de la martingala

 

Sí, Martingale ayudaría, que también significaría posiblemente ser capaz de utilizar en un marco de tiempo inferior tal vez

 

Por favor, ayúdenme con un código.

Hola a todos

¡Mi primer post!

¡He pasado el día tratando de encontrar esto en línea o incluso ver si puedo poner trozos de código juntos en MT4 para conseguir que esto funcione, pero yo no sé cómo programar en MT4 y punto!

¿Podría alguien ayudar y darme el código/EA si lo tiene?

Sólo necesito un EA básico en el que el stoploss se mueva hasta el punto de equilibrio si 2 medias móviles se cruzan, ¡eso es todo! Obviamente esto es sólo para el símbolo/gráfico al que se adjunta el EA, ¡no para todas las posiciones abiertas en otros pares!

¡No importa que valores de MA se usen porque obviamente puedo cambiar eso en el código, pero más allá de eso no puedo hacer nada en la programación de MT4!

¡¡Por favor, ayuda a alguien!!

Muchas gracias por su tiempo

Razón de la queja: