PDA

View Full Version : PLZ帮助我修复这个指标



uwco87
03-04-2009 14:31, 02:31 PM
1附件它不再工作

https://www.histoforex.com/attachments/15185442171415711533.ex4

paulapewewa
08-13-2021 08:19, 08:19 AM
没有代码文件(mq4)=没有修复

uwco87
08-13-2021 09:40, 09:40 AM
// ----------------------------------------------- ------------------- /| Supernova.mq4 |/ ----------------------------------------------- ------------------- #property indior_chart_window #property indior_buffers 2 #property indior_color1 DodgerBlue #property indior_color2 Magenta extern int SF = 1; extern bool Visual_Alert = false; extern bool Audio_Alert = true; extern string Audio_Up_File = alert.wav; extern string Audio_Down_File = alert.wav; extern bool Email_Alert = false; extern int Count_Bars = 1000; extern int Arrow_Offset = 10; double ExtMapBuffer1 []; double ExtMapBuffer2 []; bool up = false; bool dn = false; datetime last_t = 0; int init(){SetIndexStyle(0,DRAW_ARROW); SetIndexArrow(0108); SetIndexBuffer(0,ExtMapBuffer1); SetIndexEmptyValue(0,0.0); SetIndexStyle(1,DRAW_ARROW); SetIndexArrow(1108); SetIndexBuffer(1,ExtMapBuffer2); SetIndexEmptyValue(1,0.0);返回(0); } int deinit(){return(0);} int start(){int l = 0; if(Count_Barsgt; Bars){l = Bars;} else {l = Count_Bars;} for(int i = 1; igt; = 0; i - ){ExtMapBuffer1 [i] = 0; ExtMapBuffer2 [I] = 0; double qqe0_0 = iCustom(Symbol(),0,QQE,SF,0,i); double qqe0_1 = iCustom(Symbol(),0,QQE,SF,0,i 1); double qqe1_0 = iCustom(Symbol(),0,QQE,SF,1,i); double qqe1_1 = iCustom(Symbol(),0,QQE,SF,1,i 1); if(qqe0_0gt; qqe1_0 qqe0_1lt; = qqe1_1!up){ExtMapBuffer1 [i] = Low [i] -Arrow_Offset * Point;向上= TRUE; DN = FALSE; } if(qqe0_0lt; qqe1_0 qqe0_1gt; = qqe1_1!dn){ExtMapBuffer2 [i] = High [i] Arrow_Offset * Point; DN =真;向上= FALSE; }} if(ExtMapBuffer1 [0] gt; 0){if(Visual_Alert)Alert(Cross up on: Symbol() at TimeToStr(TimeCurrent()));如果(Audio_Alert)PlaySound(Audio_Up_File);如果(Email_Alert)SendMail(QQE_Cross Alert,Crossing on: Symbol() at TimeToStr(TimeCurrent())); }如果(ExtMapBuffer2 [0] gt; 0){if(Visual_Alert)Alert(Crossing on: Symbol() at TimeToStr(TimeCurrent()));如果(Audio_Alert)PlaySound(Audio_Down_File);如果(Email_Alert)SendMail(QQE_Cross Alert,Crossing on: Symbol() at TimeToStr(TimeCurrent())); } return(0); }

anigadl
08-13-2021 11:01, 11:01 AM
您的指标取决于是否存在另一个名为QQE的指标。您应该首先检查其他指标是否在您的自定义指标文件夹中。这可能是它不起作用的原因。

uwco87
08-13-2021 12:22, 12:22 PM
非常感谢它现在的工作