我跟楼主相反,是习惯性看空,总觉得K线受地心引力的作用会往下掉.我有2/3的单子是空单,80%
亏损单是空单,暴的三个仓也都是空单.
这一思维定势似乎改变不了,曾经买个氢气球系在显示器上,提示会上涨,但还是不行.
这个指标我也找两年了,没找到,招行软件倒有这个功能,可惜软件太垃圾.
楼主试试下面这条代码,我刚找到不久,还没来得及测试.
//+------------------------------------------------------------------+
//| KLine_Reverse.mq4 |
//| 520FX |
//| http://www.520FX.com |
//+------------------------------------------------------------------+
#property copyright "520FX"
#property link "http://www.520FX.com"
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 White
#property indicator_color2 Yellow
extern int 均线周期=12;
extern int 均线类型=0;
extern string 说明="均线类型:0--SMA 1-EMA 2--SMMA 3 LWMA";
double KLine[],MaLine[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(2);
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,KLine);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,MaLine);
return(0);
}
int start()
{
int limit;
int counted_bars=IndicatorCounted();
if(counted_bars<0) return(-1);
if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;
for (int i=limit-1;i>=0;i--)
{
KLine=(-1)*(High+Open+Close+Low)/4;
}
for (i=limit-1;i>=0;i--)
{
MaLine=iMAOnArray(KLine,0,均线周期,0,均线类型,i);
}
return(0);
}
//+------------------------------------------------------------------+ |