投机七剑合壁版主图=====山水先生改编
{投机七剑山水先生改编}{飞狐版}
DRAWGBK(O>REF(C,1),COLORRGB(127,0,63) ,COLORRGB(0,0,0),1);
DRAWGBK(O=REF(C,1),COLORRGB(0,0,0) ,COLORRGB(0,0,60),1);
DRAWGBK(O<REF(C,1),COLORRGB(63,128,0) ,COLORRGB(0,0,30),1);
DRAWTEXT(BARPOS=SYSPARAM(2),H,'\n
\n★山水先生★\n★祝福朋友们2009发大财★\n★山水先生★拜个年啦★\n★祝你:★★★★★★★★
\n 人气=╔══╗╔════╗
\n 财气=║╔╗║╚═╗╔═╝
\n 情气=║╚╝║╔═╝╚═╗
\n 智慧=║╔╗║╚═╗╔═╝
\n 身体=║╚╝║╔═╝╚═╗
\n 幸福=╚══╝╚════╝
\n ★★★★★2009 ★★★★★
\n')SHIFT0,PXDN48,align4,ColorRED;
MA5:=MA(C,5);
MA10 :=MA(close,10);
MA60:=MA(close,60);
红山水:MA(MA(CLOSE,3),1),LINETHICK2,COLOR00FF00;
绿山水:MA(MA(CLOSE,3),3),LINETHICK2,COLORFF0000;
partline(红山水>绿山水,红山水),LINETHICK2,COLORFF;
partline(红山水>绿山水,绿山水),LINETHICK2,COLORFFFF;
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
baijin1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
baijin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
baijin3:=GJTJ1>60 AND GJTJ4>70;
drawtext(baijin1 AND baijin2 AND baijin3,l-0.02,'白金');
huangjin1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
huangjin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
DRAWTEXT(huangjin1 AND huangjin2,l-0.03,'黄金');
XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
drawtext(COUNT(XG,3)=1 AND XG and c>ma(c,20),l-0.02,'启动金三角'),colorred;
zhencang1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
zhencang2:=BARSLAST(CROSS(GJTJ4,GJTJ2));
zhencang3:=GJTJ3<GJTJ4 AND GJTJ2<GJTJ4;
zhencang4:=BARSLAST(CROSS(GJTJ4,GJTJ3))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
zhencang5:=GJTJ2<GJTJ3 AND GJTJ2<GJTJ4 AND GJTJ2<GJTJ1 AND GJTJ1=100;
zcB1:=zhencang1>0 AND REF(zhencang1,1)=0 AND REF(zhencang1,2)>0;
drawtext(zhencang1 AND zhencang2 AND zhencang3 AND zhencang4 AND zhencang5,l-0.05,'震仓启点');
Aa:=BARSLAST(CROSS(97,GJTJ1))<=1 AND BARSLAST(CROSS(GJTJ1,85))<=1;
Bb:=BARSLAST(CROSS(97,GJTJ2))<=1 AND BARSLAST(CROSS(GJTJ2,85))<=1;
Aa1:=Aa AND Bb;
AAa:=BARSLAST(CROSS(97,GJTJ1))<=2 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAa:=BARSLAST(CROSS(97,GJTJ2))<=2 AND BARSLAST(CROSS(GJTJ2,85))<=1;
Aa2:=AA AND Bb ;
AAAa:=BARSLAST(CROSS(97,GJTJ1))<=3 AND BARSLAST(CROSS(GJTJ1,85))<=1;
BAAa:=BARSLAST(CROSS(97,GJTJ2))<=3 AND BARSLAST(CROSS(GJTJ2,85))<=1;
Aa3:=AAAa AND BAAa ;
Bb1:=REF(Aa1,1);
Bb2:=REF(Aa2,1);
Bb3:=REF(Aa3,1);
Dd1:=GJTJ1=100 AND GJTJ2=100 AND Aa1 ;
Dd2:=GJTJ1=100 AND GJTJ2=100 AND Aa2 ;
Dd3:=GJTJ1=100 AND GJTJ2=100 AND Aa3 ;
drawtext(Dd1 OR Dd2 OR Dd3,l-0.02,'短线追涨');
Aw:=BARSLAST(CROSS(95,GJTJ1))<=2;
Bw:=BARSLAST(CROSS(95,GJTJ2))<=2;
Ew:= GJTJ4<GJTJ1 AND GJTJ1<GJTJ2 AND GJTJ1<GJTJ3;
Fw:=GJTJ2>50 AND GJTJ3>50;
Gw:=GJTJ1=100 AND GJTJ2=100;
TXw:=COUNT(Gw,2)=1;
drawtext(Aw AND Bw AND Ew AND Fw AND TXw,l-0.03,'起涨首日');
Aq:=GJTJ3=100;
Bq:=GJTJ4<90;
drawtext(COUNT(Aq,2) = 2 AND Bq,l-0.02,'波启前兆');
喜欢简单的用这个
{投机七剑合壁山水先生改编(源码通用)}
DRAWBKBMP(CLOSE>0,'944.bmp');
MA5:=MA(C,5);
MA10 :=MA(close,10);
MA60:=MA(close,60);
//山水K线专用1
多空:=OPEN;
DRAWTEXT(BARPOS=SYSPARAM(2),HIGH,'欢迎您使用山水先生系列公式:2008国庆优化{FX陈琛5(主图)}(飞狐源码)')align4,COLORYELLOW;
STICKLINE(CLOSE>多空,HIGH,LOW,0.5,0),colorFF;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,8,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,7,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,6,0),color1020AA;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,5,0),color1020BB;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,4,0),color1020CC;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,3,0),color1020DD;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,2,0),color1020EE;
STICKLINE(CLOSE>多空 AND CLOSE>OPEN,OPEN,CLOSE,1,0),color1020FF;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,8,0),color102088;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,7,0),color102099;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,6,0),color1020AA;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,5,0),color1020BB;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,4,0),color1020CC;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,3,0),color1020DD;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,2,0),color1020EE;
STICKLINE(CLOSE>多空 AND CLOSE<OPEN,OPEN,OPEN,1,0),color1020FF;
STICKLINE(CLOSE<多空,HIGH,LOW,0.5,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,8,0),colorFF7700;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,7,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,6,0),colorFF9900;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,5,0),colorFFAA00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,4,0),colorFFBB00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,3,0),colorFFCC00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,2,0),colorFFDD00;
STICKLINE(CLOSE<多空 AND CLOSE<OPEN,OPEN,CLOSE,1,0),colorFFEE00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,8,0),colorFF7700;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,7,0),colorFF8800;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,6,0),colorFF9900;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,5,0),colorFFAA00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,4,0),colorFFBB00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,3,0),colorFFCC00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,2,0),colorFFDD00;
STICKLINE(CLOSE<多空 AND CLOSE>OPEN,OPEN,OPEN,1,0),colorFFEE00;
STICKLINE(CLOSE=多空,OPEN,CLOSE,8,0),colorFFFF00;
STICKLINE(CLOSE=多空,HIGH,LOW,0.5,0),colorFFFF00;
红山水:MA(MA(CLOSE,3),1),LINETHICK2,COLOR00FF00;
绿山水:MA(MA(CLOSE,3),3),LINETHICK2,COLORFF0000;
partline(红山水>绿山水,红山水),LINETHICK2,COLORFF;
partline(红山水>绿山水,绿山水),LINETHICK2,COLORFFFF;
GJTJ1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
GJTJ2:=100*(C-LLV(L,10))/(HHV(C,10)-LLV(L,10));
GJTJ3:=100*(C-LLV(L,20))/(HHV(C,20)-LLV(L,20));
GJTJ4:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30));
baijin1:=BARSLAST(CROSS(30,GJTJ1))<2 AND BARSLAST(CROSS(GJTJ1,50))<2;
baijin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
baijin3:=GJTJ1>60 AND GJTJ4>70;
drawtext(baijin1 AND baijin2 AND baijin3,l-0.02,'白金');
huangjin1:=BARSLAST(CROSS(50,GJTJ1))<3 AND BARSLAST(CROSS(GJTJ1,50))<3;
huangjin2:=BARSLAST(CROSS(GJTJ4,GJTJ1))<2 AND GJTJ1>GJTJ4;
DRAWTEXT(huangjin1 AND huangjin2,l-0.03,'黄金');
XG:=BARSLAST(CROSS(GJTJ4,GJTJ1))<5 AND GJTJ1>GJTJ4;
drawtext(COUNT(XG,3)=1 AND XG and c>ma(c,20),l-0.02,'启动金三角'),colorred;
zhencang1:=BARSLAST(CROSS(GJTJ4,GJTJ1))>3 AND BARSLAST(CROSS(GJTJ1,GJTJ4))<3;
zhencang2 |