Ajuda na codificação - página 473

 
zigflip:
Por favor, ajude a corrigir este indicador, pois ele continua alertando mesmo quando cada opção de alerta é definida como "falsa".

é mr Tools version i think...

com sinceridade,

está tentando dizer algo...infelizmente...ninguém ouve...

 
Pava:
está tentando dizer algo...infelizmente...ninguém ouve...

Quem está chamando ???

Todos estão escutando.

Apenas uma questão de jet lag...

Aqui está nmc, nenhum alerta deve mais vir, caso contrário alerte Mladen!!!

Sinceramente.

Tomcat98

 

O que mudar para substituir a seta de localização ?

Arquivos anexados:
arow.jpg  180 kb
 
popej30:
O que mudar para substituir a seta de localização ?

Alterar o preço dos pontos baixos de Baixo[nnn] para Alto[nnn].

E mudar o preço dos pontos superiores de Alto[nnn] para Baixo[nnn].

 
Tomcat98:
Quem está chamando ???

Todos estão escutando.

Apenas uma questão de jet lag...

Aqui está nmc, nenhum alerta deve mais vir, caso contrário alerte Mladen!!

Atenciosamente.

Tomcat98

bom material, obrigado

 

Que tal este indicador... ele pode usar algum código igual a alguns indicadores harmônicos ZUP, mas de qualquer forma se usado junto com os ZUPs e alguns outros indicadores, ele remove alguns raios e outras coisas, como a remoção dos triângulos ou linhas usadas para as formas de gartley, etc.

Será que ele poderia ser fixado? Parece que a função "Complet" não está funcionando, o que deveria permitir camadas, mas apenas eu adivinho. Se for muito demorado para ser consertado, não se preocupe. (Acabei de fazer algumas modificações cosméticas na versão original, mas tenho o mesmo problema).

com sinceridade,

Arquivos anexados:
 
zigflip:
Que tal este indicador... ele pode usar algum código igual a alguns indicadores harmônicos ZUP, mas de qualquer forma se usado junto com os ZUPs e alguns outros indicadores, ele remove alguns raios e outras coisas, como a remoção dos triângulos ou linhas usadas para as formas de gartley, etc.

Será que poderia ser consertado? Parece que a função "Completar" não está funcionando, o que deveria permitir camadas, mas apenas eu adivinho. Se for muito demorado para ser consertado, não se preocupe. (Acabei de fazer algumas modificações cosméticas na versão original, mas tenho o mesmo problema).

com sinceridade,

Havia um erro que poderia causar problemas. Verifique agora : gann_sq9_mxi_nmc.mq4

Arquivos anexados:
 
mladen:
Alterar o preço dos pontos baixos de Baixo[nnn] para Alto[nnn] e alterar o preço dos pontos superiores de Alto[nnn] para Baixo[nnn].

Mostre-me onde ......

#property indicator_buffers 4

#property indicator_chart_window

#property indicator_color1 Turquoise

#property indicator_color2 Red

#property indicator_color3 Turquoise

#property indicator_color4 Red

double ExtMapBuffer1[];

double ExtMapBuffer2[];

double ExtMapBuffer3[];

double ExtMapBuffer4[];

//================================================================

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

//================================================================

int init()

{

IndicatorBuffers(4);

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,2);

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,2);

SetIndexArrow(0, 233);

SetIndexArrow(1, 234);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,ExtMapBuffer4);

return(0);

}

void DrawVertical( int bar , double value, color clr)

{

static int cnt = 0;

cnt++;

string dv = "Signal" + cnt;

ObjectCreate(dv, OBJ_VLINE, 0, Time, 0);

ObjectSet(dv, OBJPROP_COLOR, clr);

ObjectsRedraw();

}

void DrawThumb( int bar , int thumb , double value, color clr)

{

static int cnt = 0;

cnt++;

string dv = "thumb" + cnt;

ObjectCreate(dv, OBJ_ARROW, 0, Time, value);

if(thumb == 1)

{

ObjectSet(dv, OBJPROP_ARROWCODE, 67);

}

if(thumb == 2)

{

ObjectSet(dv, OBJPROP_ARROWCODE, 68);

}

ObjectSet(dv, OBJPROP_COLOR, clr);

ObjectSet(dv, OBJPROP_STYLE , STYLE_SOLID);

ObjectSet(dv, OBJPROP_WIDTH , 3);

ObjectsRedraw();

}

int deinit()

{

int I = WindowsTotal();

for (int count = 0; count < WindowsTotal(); count++)

{

int nObjects = ObjectsTotal();

for (int i=nObjects; i>=0; i--)

{

string objName = ObjectName(i);

if(StringFind(objName, "Signal", 0) >= 0)

ObjectDelete(objName);

if(StringFind(objName, "signal", 0) >= 0)

ObjectDelete(objName);

}

}

return(0);

}

int start()

{

int counted_bars=IndicatorCounted();

//----

int pos = Bars - counted_bars;//-1

static int right = 0 ;

static int wrong = 0 ;

while (pos>=0)

{

Signal1=0;

Signal2=0;

Previous_Bar=0;

//================================================================

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

//================================================================

if (Open[pos+1] > Close[pos+1]) Previous_Bar = 1;

if (Open[pos+1] < Close[pos+1]) Previous_Bar = 2;

int confirm = 0;

if(confirm == 1)

{

if (EmaShortPrevious>EmaLongPrevious && EmaShortCurrent<EmaLongCurrent && Previous_Bar == 1) Signal1=High[pos-1];

if (EmaShortPreviousEmaLongCurrent && Previous_Bar == 2) Signal2=Low[pos-1];

}

else

{

if (EmaShortPrevious>EmaLongPrevious && EmaShortCurrent<EmaLongCurrent ) Signal1=High[pos-1];

if (EmaShortPreviousEmaLongCurrent ) Signal2=Low[pos-1];

}

ExtMapBuffer1[pos-1]= Signal1+5*Point;

ExtMapBuffer2[pos-1]= Signal2-5*Point;

if(Vertical_Lines)

{

if(Signal1>0) DrawVertical(pos,0,Blue);

if(Signal2>0) DrawVertical(pos,0,Red);

}

if (Show_Thumbs)

{

if(Signal1>0 && Open[pos-1] > Close[pos-1])

{

DrawThumb(pos-1,1,Signal1+20*Point,Gold);

right=right+1;

}

if(Signal1>0 && Open[pos-1] < Close[pos-1])

{

DrawThumb(pos-1,2,Signal1+20*Point,Green);

wrong=wrong+1;

}

if(Signal2>0 && Open[pos-1] < Close[pos-1])

{

DrawThumb(pos-1,1,Signal2-10*Point,Gold);

right=right+1;

}

if(Signal2>0 && Open[pos-1] > Close[pos-1])

{

DrawThumb(pos-1,2,Signal2-10*Point,Green);

wrong=wrong+1;

}

}

if(Draw_Lines)

{

ExtMapBuffer3[pos]= EmaLongCurrent;

ExtMapBuffer4[pos]= EmaShortCurrent;

}

pos--;

}

return(0);

}

 
popej30:
Mostre-me onde ......

#property indicator_buffers 4

#property indicator_chart_window

#property indicator_color1 Turquoise

#property indicator_color2 Red

#property indicator_color3 Turquoise

#property indicator_color4 Red

double ExtMapBuffer1[];

double ExtMapBuffer2[];

double ExtMapBuffer3[];

double ExtMapBuffer4[];

//================================================================

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

//================================================================

int init()

{

IndicatorBuffers(4);

SetIndexStyle(0,DRAW_ARROW,STYLE_SOLID,2);

SetIndexStyle(1,DRAW_ARROW,STYLE_SOLID,2);

SetIndexArrow(0, 233);

SetIndexArrow(1, 234);

SetIndexBuffer(0,ExtMapBuffer1);

SetIndexBuffer(1,ExtMapBuffer2);

SetIndexStyle(2,DRAW_LINE);

SetIndexBuffer(2,ExtMapBuffer3);

SetIndexStyle(3,DRAW_LINE);

SetIndexBuffer(3,ExtMapBuffer4);

return(0);

}

void DrawVertical( int bar , double value, color clr)

{

static int cnt = 0;

cnt++;

string dv = "Signal" + cnt;

ObjectCreate(dv, OBJ_VLINE, 0, Time, 0);

ObjectSet(dv, OBJPROP_COLOR, clr);

ObjectsRedraw();

}

void DrawThumb( int bar , int thumb , double value, color clr)

{

static int cnt = 0;

cnt++;

string dv = "thumb" + cnt;

ObjectCreate(dv, OBJ_ARROW, 0, Time, value);

if(thumb == 1)

{

ObjectSet(dv, OBJPROP_ARROWCODE, 67);

}

if(thumb == 2)

{

ObjectSet(dv, OBJPROP_ARROWCODE, 68);

}

ObjectSet(dv, OBJPROP_COLOR, clr);

ObjectSet(dv, OBJPROP_STYLE , STYLE_SOLID);

ObjectSet(dv, OBJPROP_WIDTH , 3);

ObjectsRedraw();

}

int deinit()

{

int I = WindowsTotal();

for (int count = 0; count < WindowsTotal(); count++)

{

int nObjects = ObjectsTotal();

for (int i=nObjects; i>=0; i--)

{

string objName = ObjectName(i);

if(StringFind(objName, "Signal", 0) >= 0)

ObjectDelete(objName);

if(StringFind(objName, "signal", 0) >= 0)

ObjectDelete(objName);

}

}

return(0);

}

int start()

{

int counted_bars=IndicatorCounted();

//----

int pos = Bars - counted_bars;//-1

static int right = 0 ;

static int wrong = 0 ;

while (pos>=0)

{

Signal1=0;

Signal2=0;

Previous_Bar=0;

//================================================================

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

// =============== HIDDEN CODE

//================================================================

if (Open[pos+1] > Close[pos+1]) Previous_Bar = 1;

if (Open[pos+1] < Close[pos+1]) Previous_Bar = 2;

int confirm = 0;

if(confirm == 1)

{

if (EmaShortPrevious>EmaLongPrevious && EmaShortCurrent<EmaLongCurrent && Previous_Bar == 1) Signal1=High[pos-1];

if (EmaShortPreviousEmaLongCurrent && Previous_Bar == 2) Signal2=Low[pos-1];

}

else

{

if (EmaShortPrevious>EmaLongPrevious && EmaShortCurrent<EmaLongCurrent ) Signal1=High[pos-1];

if (EmaShortPreviousEmaLongCurrent ) Signal2=Low[pos-1];

}

ExtMapBuffer1[pos-1]= Signal1+5*Point;

ExtMapBuffer2[pos-1]= Signal2-5*Point;

if(Vertical_Lines)

{

if(Signal1>0) DrawVertical(pos,0,Blue);

if(Signal2>0) DrawVertical(pos,0,Red);

}

if (Show_Thumbs)

{

if(Signal1>0 && Open[pos-1] > Close[pos-1])

{

DrawThumb(pos-1,1,Signal1+20*Point,Gold);

right=right+1;

}

if(Signal1>0 && Open[pos-1] < Close[pos-1])

{

DrawThumb(pos-1,2,Signal1+20*Point,Green);

wrong=wrong+1;

}

if(Signal2>0 && Open[pos-1] < Close[pos-1])

{

DrawThumb(pos-1,1,Signal2-10*Point,Gold);

right=right+1;

}

if(Signal2>0 && Open[pos-1] > Close[pos-1])

{

DrawThumb(pos-1,2,Signal2-10*Point,Green);

wrong=wrong+1;

}

}

if(Draw_Lines)

{

ExtMapBuffer3[pos]= EmaLongCurrent;

ExtMapBuffer4[pos]= EmaShortCurrent;

}

pos--;

}

return(0);

}

Verifique quais valores são atribuídos às variáveis Sinal1 e Sinal2 (o Alto e o Baixo nas linhas 130, 131, 135 e 136). Inverta-o

_____________

Btw: esse indicador atribui valores a valores futuros

 
mladen:
Verifique quais valores são atribuídos às variáveis Sinal1 e Sinal2 (o Alto e o Baixo nas linhas 130, 131, 135 e 136). Inverta-o

_____________

Btw: esse indicador atribui valores a valores futuros

Mudou ... Obrigado