金字塔风洞操盘圣手ZPGF四合一源码[金字塔模型]
-
相关简介:金字塔风洞操盘圣手ZPGF四合一源码[金字塔模型] 金字塔公式 金字塔模型策略源码: MA5:=MA(C,5); MA20:=MA(C,20); A51:= REF(MA5,1)*0.98; A52:= REF(MA5,2)*0.98; B52:= BARSLAST(REF(C,2)=REF(MA5,2) AND REF(C,1)REF(MA5,1))+2; B51:= BARSLAST(REF(C,2)=REF(MA5,2) AND REF(C,1)REF(MA5,1))+1; DZ:=IF(
-
文章来源:股海网作者:股海网发布时间:2013-04-11浏览次数:
金字塔风洞操盘圣手ZPGF四合一源码[金字塔模型]
金字塔公式 金字塔模型策略源码:
MA5:=MA(C,5);
MA20:=MA(C,20);
A51:= REF(MA5,1)*0.98;
A52:= REF(MA5,2)*0.98;
B52:= BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+2;
B51:= BARSLAST(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))+1;
DZ:=IF((REF(C,2)>=REF(MA5,2)) AND (REF(C,1)<REF(MA5,1)),IF(REF(MA5,2)<REF(MA5,1),A51,A52),IF(BARSSINCE(REF(C,2)>=REF(MA5,2) AND REF(C,1)<REF(MA5,1))>0,IF(REF(MA5, B52)< REF(MA5, B51),REF(MA5,B51)*0.98, REF(MA5,B52)*0.98), REF(MA5,1)));
A201:= REF(MA20,1)*0.98;
A202:= REF(MA20,2)*0.98;
B202:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+2;
B201:= BARSLAST(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))+1;
ZZ:=IF((REF(C,2)>=REF(MA20,2)) AND (REF(C,1)<REF(MA20,1)),IF(REF(MA20,2)<REF(MA20,1),A201,A202),IF(BARSSINCE(REF(C,2)>=REF(MA20,2) AND REF(C,1)<REF(MA20,1))>0,IF(REF(MA20, B202)< REF(MA20, B201),REF(MA20,B201)*0.98, REF(MA20,B202)*0.98), REF(MA20,1)));
短止:DZ,colorwhite;
中止:ZZ,colormagenta;
白轨:MA(CLOSE,25)+MA(CLOSE,25)*20/100,colorwhite;
影子线:MA(CLOSE,25)+MA(CLOSE,25)*13/100,POINTDOT,colorgray;
黄轨:MA(CLOSE,25)+MA(CLOSE,25)*6/100,coloryellow;
牛熊轨:MA(CLOSE,25), POINTDOT,colorblue;
下白轨:MA(CLOSE,25)-MA(CLOSE,25)*15/100,colorwhite;
反止:MA(HIGH,5),colormagenta;
a:=LLV(REF(LOW,1),2)+(HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2,colorgreen;
【强弱值】:a,colorgreen;
DRAWICON(REF(C,1)<REF(dz,1) AND C>=dz AND C>a,LOW,1);
DRAWICON(REF(C,1)<REF(a,1) AND C>=a,LOW,1);
enterlong:(ref(c,1)<ref(dz,1) and c>=dz and c>a) or (ref(c,1)<ref(a,1) and c>=a);