栏目分类

你的位置:教育专业软件开发 > 联系我们 > 软件开发价格 Heikiun Ashi主视力析:文采版与MT4版源码对比

软件开发价格 Heikiun Ashi主视力析:文采版与MT4版源码对比

发布日期:2024-11-04 06:18    点击次数:145

图片

周末有位一又友问起Heikiun Ashi认识,那时在外地没怎样复兴,今天在这里与全球通盘共享文采版与MT4版源码的不同,有酷好酷勤学编写认识的一又友通盘来议论下。

Heikiun Ashi认识Heikiun Ashi认识称平均棒图或平滑烛炬图,通过估计每个时刻周期的开盘价、最高价、最廉价和收盘价,生成新的烛炬图,以更了了地展现价钱趋势。这种认识有助于过滤市集杂音,突显主要趋势,提议用于大周期看趋势。Heikiun Ashi认识并不提议单独看成期货、外汇概况黄金的来往决议的依据,投资者应当与其他技能分析认识、基本面分析和市集情谊等成分相结合,进行玄虚判断。MT4版块

图片

文采6版块

图片

源  码  下方共享的Heikiun Ashi认识源码为主图K线样子,软件定制开发是阐述常见的容貌改写。仅看成计谋念念路拓展,不提议凯旋用于期货等投资实盘中(投资有风险,入市须严慎)。来往员不错阐述艾云计谋所提供的认识源码,结合平素的来往教育进行改编,造成我方的来往计谋。

文采版:适用于文采6、7、8等软件

M:=3;XXOPEN:=(REF(OPEN,M)+REF(CLOSE,M))/2;XXCLOSE:=(HIGH+LOW+CLOSE+OPEN)/4;XXHIGH:=MAX1(XXOPEN,XXCLOSE,HHV(HIGH,M));XXLOW:=MIN1 (XXOPEN,XXCLOSE,LLV(LOW,M));STICKLINE(XXCLOSE>XXOPEN,XXCLOSE ,XXOPEN ,8,1 ),COLORRED;DRAWLINE(XXCLOSE>XXOPEN,XXHIGH ,XXCLOSE>XXOPEN,XXCLOSE,COLORRED );DRAWLINE(XXCLOSE>XXOPEN,XXOPEN ,XXCLOSE>XXOPEN,XXLOW ,COLORRED);STICKLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXOPEN ,8,0 ),COLORFFFF66;DRAWLINE(XXCLOSE<=XXOPEN,XXOPEN ,XXCLOSE<=XXOPEN,XXHIGH,COLORFFFF66);DRAWLINE(XXCLOSE<=XXOPEN,XXCLOSE ,XXCLOSE<=XXOPEN,XXLOW,COLORFFFF66);

MT4版:

#property indicator_chart_window

#property indicator_buffers 4

#property indicator_color1 Red

#property indicator_color2 White

#property indicator_color3 Red

#property indicator_color4 White

#property indicator_width1 1

#property indicator_width2 1

#property indicator_width3 3

#property indicator_width4 3

//---

input color ExtColor1 = Red;    // Shadow of bear candlestick

input color ExtColor2 = White;  // Shadow of bull candlestick

input color ExtColor3 = Red;    // Bear candlestick body

input color ExtColor4 = White;  // Bull candlestick body

//--- buffers

double ExtLowHighBuffer[];

double ExtHighLowBuffer[];

double ExtOpenBuffer[];

double ExtCloseBuffer[];

//+------------------------------------------------------------------+

//| Custom indicator initialization function                         |

//|------------------------------------------------------------------|

void OnInit(void)

  {

   IndicatorShortName("Heiken Ashi");

   IndicatorDigits(Digits);

//--- indicator lines

   SetIndexStyle(0,DRAW_HISTOGRAM,0,1,ExtColor1);

   SetIndexBuffer(0,ExtLowHighBuffer);

   SetIndexStyle(1,DRAW_HISTOGRAM,0,1,ExtColor2);

   SetIndexBuffer(1,ExtHighLowBuffer);

   SetIndexStyle(2,DRAW_HISTOGRAM,0,3,ExtColor3);

   SetIndexBuffer(2,ExtOpenBuffer);

   SetIndexStyle(3,DRAW_HISTOGRAM,0,3,ExtColor4);

   SetIndexBuffer(3,ExtCloseBuffer);

//---

   SetIndexLabel(0,"Low/High");

   SetIndexLabel(1,"High/Low");

   SetIndexLabel(2,"Open");

   SetIndexLabel(3,"Close");

   SetIndexDrawBegin(0,10);

   SetIndexDrawBegin(1,10);

   SetIndexDrawBegin(2,10);

   SetIndexDrawBegin(3,10);

//--- indicator buffers mapping

   SetIndexBuffer(0,ExtLowHighBuffer);

   SetIndexBuffer(1,ExtHighLowBuffer);

   SetIndexBuffer(2,ExtOpenBuffer);

   SetIndexBuffer(3,ExtCloseBuffer);

//--- initialization done

  }

//+------------------------------------------------------------------+

//| Heiken Ashi                                                      |

//+------------------------------------------------------------------+

int OnCalculate(const int rates_total,

                const int prev_calculated,

                const datetime &time[],

                const double &open[],

                const double &high[],

                const double &low[],

[扫码下载app,中过数字彩1千万以上的专家都在这儿!]

180期:梅花照玉堂,假金镀真金开(918)

                const double &close[],

                const long &tick_volume[],

                const long &volume[],

                const int &spread[])

  {

   int    i,pos;

   double haOpen,haHigh,haLow,haClose;

//---

   if(rates_total<=10)

      return(0);

//--- counting from 0 to rates_total

   ArraySetAsSeries(ExtLowHighBuffer,false);

   ArraySetAsSeries(ExtHighLowBuffer,false);

   ArraySetAsSeries(ExtOpenBuffer,false);

   ArraySetAsSeries(ExtCloseBuffer,false);

   ArraySetAsSeries(open,false);

   ArraySetAsSeries(high,false);

   ArraySetAsSeries(low,false);

   ArraySetAsSeries(close,false);

//--- preliminary calculation

   if(prev_calculated>1)

      pos=prev_calculated-1;

   else

     {

      //--- set first candle

      if(open[0]<close[0])

        {

app

         ExtLowHighBuffer[0]=low[0];

         ExtHighLowBuffer[0]=high[0];

        }

      else

        {

         ExtLowHighBuffer[0]=high[0];

         ExtHighLowBuffer[0]=low[0];

        }

      ExtOpenBuffer[0]=open[0];

      ExtCloseBuffer[0]=close[0];

      //---

      pos=1;

     }

//--- main loop of calculations

   for(i=pos; i<rates_total; i++)

     {

      haOpen=(ExtOpenBuffer[i-1]+ExtCloseBuffer[i-1])/2;

      haClose=(open[i]+high[i]+low[i]+close[i])/4;

      haHigh=MathMax(high[i],MathMax(haOpen,haClose));

      haLow=MathMin(low[i],MathMin(haOpen,haClose));

      if(haOpen<haClose)

        {

         ExtLowHighBuffer[i]=haLow;

         ExtHighLowBuffer[i]=haHigh;

        }

      else

        {

         ExtLowHighBuffer[i]=haHigh;

         ExtHighLowBuffer[i]=haLow;

        }

      ExtOpenBuffer[i]=haOpen;

      ExtCloseBuffer[i]=haClose;

     }

//--- done

   return(rates_total);

  }

//+------------------------------------------------------------------+

艾云计谋网站软件开发价格

 https://www.aiycl.cn温馨指示:投资有风险,入场需严慎! 本站仅提供存储职业,所有实质均由用户发布,如发现存害或侵权实质,请点击举报。

上一篇:软件开发价格 搭客泊车7个多小时收费217.5元 钟山局势区:合理合规 国庆、春节长假技巧是30元/小时
下一篇:没有了