算法的''离心机'' - 页 8

 
首先,我们需要定义什么是"理想的进入点"和"理想的退出点"。
 
Реter Konow:

2.ZigZag不会显示完美的进入点。不是这样的。那里会有一个很大的误差范围。一个有GA的优化器可以做得更好。 IMHO。

ZigZag只显示理想的进入/退出点,没有其他内容。

虽然如果我们谈论的是一个特定的ZZ,那么是的,我们可以讨论,我用了我的--它没有min.bar设置--它只是从高点到低点画线,设置是高点到低点的最小距离。

https://www.mql5.com/ru/forum/318267#comment_12508440

 
你需要的 "之 "字形不是按条,而是按点,门槛是比点差多1个点,并按分钟计算。这就是问题所在!
 

哎呀!8888


 
Dmitry Fedoseev:
而在会议记录上,它

并非如此,我一直在优化器中测试这一切;)

在M1上的最低设置会大大影响价差,最好在pp或其他TF上采取更多的设置,但不能超过H1,在H4及以上会有更低的回报。

 
Igor Makanu:

并非如此,我一直在优化器中测试这一切;)

在M1上的最低设置会大大影响价差,最好在pp或其他TF上采取更多的设置,但不能超过H1,在H4及以上会有更低的回报。

什么是 "之 "字形?

 
Олег avtomat:
首先,我们需要定义什么是"理想的进入点"和"理想的退出点"。

理想的进入点是 "理想交易 "的价格和时间起点。

理想出场点--''理想交易''的价格和时间完成。

理想的交易是时间长度和利润比例最好的交易。

我认为。

 
Dmitry Fedoseev:

什么是 "之 "字形?

很久以前为MT5制作的,https://www.mql5.com/ru/forum/318267#comment_12508440

//+------------------------------------------------------------------+
//|                                                     ZigZagZZ.mq5 |
//|                                                            IgorM |
//|                              https://www.mql5.com/ru/users/igorm |
//+------------------------------------------------------------------+
#property copyright "IgorM"
#property link      "https://www.mql5.com/ru/users/igorm"
#property version   "1.00"
#property indicator_chart_window
#property indicator_buffers 1
#property indicator_plots   1

// plot ZigZagZZ
#property indicator_label1  "ZigZagZZ"
#property indicator_type1   DRAW_SECTION
#property indicator_color1  clrDarkBlue
#property indicator_style1  STYLE_SOLID
#property indicator_width1  3
// input parameters
input int   Deviation=100;
// indicator buffers
double         ZZBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
// indicator buffers mapping
   SetIndexBuffer(0,ZZBuffer,INDICATOR_DATA);
   IndicatorSetInteger(INDICATOR_DIGITS,_Digits);
   PlotIndexSetDouble(0,PLOT_EMPTY_VALUE,0.0);
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int        rates_total,
                const int        prev_calculated,
                const datetime   &time[],
                const double     &open[],
                const double     &high[],
                const double     &low[],
                const double     &close[],
                const long       &tick_volume[],
                const long       &volume[],
                const int        &spread[])
  {
   static bool UP;
   static double max,min;
   static int LastExt=0;
   static const double dev=NormalizeDouble(Deviation*_Point,_Digits);
   int limit=prev_calculated-1;
   if(prev_calculated==0)
     {
      ArrayInitialize(ZZBuffer,0.0);
      limit=2; LastExt=0;
      if(low[0]<high[1]) { min=low[0];  max=high[1];   UP=true;  }
      else               { max=high[0]; min  = low[1]; UP=false; }
     }
   for(int i=limit; i<rates_total; i++)
     {
      ZZBuffer[i]=0.0;
      if(UP)
        {
         if(low[i]-min<=0.0) { min=low[i]; ZZBuffer[LastExt]=0.0; LastExt=i; ZZBuffer[i]=min; }
         else
           {
            if(high[i]-min-dev>0.0) { max=high[i]; LastExt=i; ZZBuffer[i]=max; UP=false; }
           }
        }
      else
        {
         if(high[i]-max>=0.0) { max=high[i]; ZZBuffer[LastExt]=0.0; LastExt=i; ZZBuffer[i]=max; }
         else
           {
            if(low[i]-max+dev<0.0) { min=low[i]; LastExt=i; ZZBuffer[i]=min; UP=true; }
           }
        }
     }
   return(rates_total);
  }
//+------------------------------------------------------------------+
 
Igor Makanu:

很久以前为MT5制作的,https://www.mql5.com/ru/forum/318267#comment_12508440

是的,正确的 "之 "字形任务。

 
Igor Makanu:

ZigZag只显示理想的进入/退出点,没有其他内容。

虽然如果我们谈论的是一个特定的ZZ,那么是的,我们可以讨论,我用了我的--它没有min.bar设置--它只是从高点到低点画线,设置是高点到低点的最小距离。

https://www.mql5.com/ru/forum/318267#comment_12508440

ZigZag并不依赖于 "完美交易 "的原则--最佳交易时间与利润比率。ZZ将需要在其所有的高峰和低点进入和退出。这不是一个理想的解决方案。