由于这里无法上传文件,这个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);
}
//+------------------------------------------------------------------+
#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);
}
//+------------------------------------------------------------------+
면책 조항: 본 게시글에 표현된 견해는 전적으로 작성자의 견해이며 Followme의 공식 입장을 대변하지 않습니다. Followme는 제공된 정보의 정확성, 완전성 또는 신뢰성에 대해 책임을 지지 않으며, 서면으로 명시적으로 언급되지 않는 한 해당 내용을 기반으로 취해진 어떠한 조치에 대해서도 책임을 지지 않습니다.
이 글이 마음에 드시나요? 작성자에게 팁을 보내 감사의 마음을 전하세요.

더 오래된 의견은 없습니다. 소파를 가장 먼저 잡으십시오.