您需要 登录 才可以下载或查看,没有帐号?注册
我想取出的值~可是~他都打印不出.我如何修改~各位回覆!
double ExtUpFractalsBuffer[];
double ExtDownFractalsBuffer[];
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
int start()
{
int i,nCountedBars;
bool bFound;
double dCurrent;
nCountedBars=IndicatorCounted();
//---- last counted bar will be recounted
if(nCountedBars2)
{
nCountedBars--;
i=Bars-nCountedBars-1;
}
//----Up and Down Fractals
while(i =2)
{
//----Fractals up
bFound=false;
dCurrent=High[i];
if(dCurrent High[i+1] dCurrent High[i+2] dCurrent High[i-1] dCurrent High[i-2])
{
bFound=true;
ExtUpFractalsBuffer[i]=dCurrent;
}
//----6 bars Fractal
if(!bFound (Bars-i-1) =3)
{
if(dCurrent =High[i+1] dCurrent High[i+2] dCurrent High[i+3]
dCurrent High[i-1] dCurrent High[i-2])
{
bFound=true;
ExtUpFractalsBuffer[i]=dCurrent;
}
}
//----7 bars Fractal
if(!bFound (Bars-i-1) =4)
{
if(dCurrent =High[i+1] dCurrent==High[i+2] dCurrent High[i+3] dCurrent High[i+4]
dCurrent High[i-1] dCurrent High[i-2])
{
bFound=true;
ExtUpFractalsBuffer[i]=dCurrent;
}
}
//----8 bars Fractal
if(!bFound (Bars-i-1) =5)
{
if(dCurrent =High[i+1] dCurrent==High[i+2] dCurrent==High[i+3] dCurrent High[i+4] dCurrent High[i+5]
dCurrent High[i-1] dCurrent High[i-2])
{
bFound=true;
ExtUpFractalsBuffer[i]=dCurrent;
}
}
//----9 bars Fractal
if(!bFound (Bars-i-1) =6)
{
if(dCurrent =High[i+1] dCurrent==High[i+2] dCurrent =High[i+3] dCurrent==High[i+4] dCurrent High[i+5]
dCurrent High[i+6] dCurrent High[i-1] dCurrent High[i-2])
{
bFound=true;
ExtUpFractalsBuffer[i]=dCurrent;
}
}
//----Fractals down
bFound=false;
dCurrent=Low[i];
if(dCurrent
你好!我想编写一平仓条件,可一直不成功。当下单成功后赢利超过7点之后赢利又小于6点平仓。就这个平仓条件能辛苦帮我写一下吗?这样能保住赢利不会变亏损。先行谢谢了!!!~~~
外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!