Note

AOEA源码分享(HLV高低点指标部分)

· Views 6,579

由于这里无法上传文件,这个EA是通用版本包括一个指标HLV和一个EA执行程序AOEA两个文件,从这个EA设计到成型发布,源码一直是公开的(在我所在的QQ群中),而且确实是有一些废柴在淘宝上要价叫卖的,所以今天就在这里分享发布,希望你们能够多多了解马丁策略,无论他是好也罢,坏也罢,十八般武艺精通一种就是天下无敌的存在。

这个指标用好了是可以用来界定趋势走向形态以及压力支撑位置的,包括上升、下降和震荡,自己去体会琢磨,你们会受益的。

###################源码部分
#property copyright ""
#property indicator_chart_window
#property indicator_buffers 4
#property indicator_color1 White
#property indicator_color2 Yellow
#property indicator_color3 White
#property indicator_color4 Yellow
//--- buffers
int bar=10000;
extern int m = 200;
extern double StopK = 0.618;
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer1);
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer2);
   SetIndexStyle(2,DRAW_LINE);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexStyle(3,DRAW_LINE);
   SetIndexBuffer(3,ExtMapBuffer4);
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int    countedBars=IndicatorCounted();
   if(countedBars < 0)
       countedBars = 0;
   int i=0;
   int k = Bars - countedBars;
   for(i=0;i<=k;i++)
     {
        double llv=Low[iLowest(Symbol(),0,MODE_LOW,m,i)];
        double hhv=High[iHighest(Symbol(),0,MODE_HIGH,m,i)];
        ExtMapBuffer1[i]=llv;
        ExtMapBuffer2[i]=hhv;
        ExtMapBuffer3[i]=hhv-(hhv-llv)*StopK;
        ExtMapBuffer4[i]=llv+(hhv-llv)*StopK;
     }
   return(0);
  }
//+------------------------------------------------------------------+

Disclaimer: The content above represents only the views of the author or guest. It does not represent any views or positions of FOLLOWME and does not mean that FOLLOWME agrees with its statement or description, nor does it constitute any investment advice. For all actions taken by visitors based on information provided by the FOLLOWME community, the community does not assume any form of liability unless otherwise expressly promised in writing.

FOLLOWME Trading Community Website: https://www.followme.com

If you like, reward to support.
avatar

Hot

点赞
回测黄金直接爆了
hart
Author
@刘锋2017:这个EA只能是用在AUDUSD M5上,其他的需要更改参数。
已经挂上了,试试看
看不懂
看得我一脸懵逼

-THE END-