编码帮助 - 页 473

 
zigflip:
请帮助修复这个指标,因为它一直在发出警报,即使每个警报选项都被设置为 "假"。

我想这是工具先生的版本...。

真心的。

它想说些什么...不幸的是...没有人听...

 
Pava:
它想说些什么...不幸的是...没有人听...

谁在打电话?

每个人都在听。

只是时差的问题......

这里是nmc,没有提醒应该来了,否则提醒Mladen!!!。

真诚的。

Tomcat98

 

用什么来代替位置箭头?

附加的文件:
arow.jpg  180 kb
 
popej30:
用什么来代替位置箭头?

将低点的价格从Low[nn] 改为High[nn] 。

并将上点的价格从High[nn]改为Low[nn] 。

 
Tomcat98:
谁在打电话?

每个人都在听。

只是时差的问题......

这里是nmc,没有提醒应该来了,否则提醒Mladen!!。

真诚的。

Tomcat98

好东西,谢谢你

 

这个指标怎么样......它可能使用了与一些ZUP谐波指标相同的代码,但无论如何,如果与ZUP和其他一些指标一起使用,它会删除一些射线和其他东西, 如删除用于Gartley等形状的三角形或线。

我想知道它是否可以被修复?似乎 "Complet "功能 不工作,应该允许分层,但只是我猜测。如果它太长了,无法修复,也不用担心。(我只是对原始版本做了一些外观上的修改,但有同样的问题)。

诚然。

附加的文件:
 
zigflip:
这个指标怎么样......它可能使用了一些与一些ZUP谐波指标相同的代码,但无论如何,如果与ZUP和其他一些指标一起使用,它可以删除一些射线和其他东西, 比如删除用于Gartley等形状的三角形或线条。

不知道它是否可以被修复?似乎 "Complet "功能不工作,应该允许分层,但只是我的猜测。如果修复起来太长了,也不用担心。(我只是对原始版本做了一些外观上的修改,但有同样的问题)。

诚然。

有一个错误可能导致问题。现在查看:gann_sq9_mxi_nmc.mq4

附加的文件:
 
mladen:
将低点的价格从Low[nn]改为High[nn] 并将高点的价格从High[nn]改为Low[nn]

显示我在哪里 ......

#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:
告诉我哪里有......

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

}

检查 分配给Signal1和Signal2变量的值(第130、131、135和136行的高和低)。将其反转

_____________

Btw:该指标为未来值分配了数值

 
mladen:
检查分配给Signal1和Signal2变量的值(第130、131、135和136行的高和低)。颠倒一下

_____________

顺便说一下:该指标为未来值分配了数值

改变了...谢谢你