Aide au codage - page 473

 
zigflip:
S'il vous plaît, aidez à réparer cet indicateur, parce qu'il continue d'alerter même lorsque toutes les options d'alerte sont réglées sur "false".

est la version de Mr Tools je pense...

sincèrement,

il essaie de dire quelque chose... malheureusement... personne n'écoute...

 
Pava:
il essaie de dire quelque chose... malheureusement... personne n'écoute...

Qui est à l'appareil ?

Tout le monde écoute.

Juste une question de décalage horaire...

Voilà nmc, aucune alerte ne doit plus venir, sinon alerte Mladen ! !!

Cordialement.

Tomcat98

 

Que changer pour remplacer la flèche de localisation ?

Dossiers :
arow.jpg  180 kb
 
popej30:
Que changer pour remplacer la flèche de localisation ?

Changez le prix des points bas de Low[nnn] à High[nnn].

Et changez le prix pour les points supérieurs de High[nnn] à Low[nnn]

 
Tomcat98:
Qui est à l'appareil ?

Tout le monde écoute.

Juste une question de décalage horaire...

Voilà nmc, aucune alerte ne devrait plus venir, sinon alerte Mladen ! !!

Cordialement.

Tomcat98

Bon travail, merci.

 

Que diriez-vous de cet indicateur... il utilise peut-être le même code que certains indicateurs harmoniques ZUP, mais de toute façon, s'il est utilisé avec les ZUP et d'autres indicateurs, il supprime certains rayons et d'autres choses, comme la suppression des triangles ou des lignes utilisées pour les formes Gartley, etc.

Je me demande si cela peut être corrigé ? Il semble que la fonction "Complet" ne fonctionne pas, ce qui devrait permettre la superposition, mais c'est juste une supposition. Si c'est trop long à réparer, ne vous inquiétez pas. (J'ai juste fait quelques modifications cosmétiques à la version originale mais a même problème).

sincèrement,

Dossiers :
 
zigflip:
que diriez-vous de cet indicateur... il utilise peut-être le même code que certains indicateurs harmoniques ZUP, mais de toute façon, s'il est utilisé avec les ZUP et d'autres indicateurs, il supprime certains rayons et d'autres choses, comme la suppression des triangles ou des lignes utilisées pour les formes Gartley, etc.

Je me demande si cela peut être réparé ? Il semble que la fonction "Complet" ne fonctionne pas, ce qui devrait permettre de superposer les couches, mais c'est juste une supposition. Si c'est trop long à réparer, ne vous inquiétez pas. (J'ai juste apporté quelques modifications cosmétiques à la version originale mais le problème est le même).

sincèrement,

Il y a une erreur qui pourrait causer des problèmes. Vérifiez-le maintenant : gann_sq9_mxi_nmc.mq4

Dossiers :
 
mladen:
Changez le prix pour les points bas de Low[nnn] à High[nnn] Et changez le prix pour les points hauts de High[nnn] à Low[nnn]

Montrez-moi où se trouve ......

#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:
Montrez-moi où ......

#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);

}

Vérifiez quelles valeurs sont assignées aux variables Signal1 et Signal2 (le High et le Low aux lignes 130, 131, 135 et 136). Inversez-les

_____________

Btw : cet indicateur assigne des valeurs aux valeurs futures.

 
mladen:
Vérifiez quelles valeurs sont assignées aux variables Signal1 et Signal2 (le High et le Low aux lignes 130, 131, 135 et 136). Inversez-le

_____________

Btw : cet indicateur assigne des valeurs aux valeurs futures

Changé ... Merci