散户之家 » 公式分享 » 提供“麒麟主图”源代码


2008-1-31 00:24 渡人渡己
提供“麒麟主图”源代码

[font=Times New Roman][color=#000000]N1:=3;[/color][/font]
[font=Times New Roman][color=#000000]M1:=MA(C,5);[/color][/font]
[font=Times New Roman][color=#000000]M2:MA(C,20),COLORGREEN;[/color][/font]
[color=#000000][font=宋体]均线变异[/font][font=Times New Roman]:IF(M1>M2,M2,M1),COLOR0000FF;[/font][/color]
[font=Times New Roman][color=#000000]VAR1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100;[/color][/font]
[font=Times New Roman][color=#000000]VAR3:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;[/color][/font]
[font=Times New Roman][color=#000000]VAR6:=VAR3-VAR1;[/color][/font]
[font=Times New Roman][color=#000000]Z:=MA(VAR6,N1);[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 {AND ZZ=2},O,C,2,0),COLORRED;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 {AND ZZ=2},H,MAX(O,C),0,1),COLORRED;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 {AND ZZ=2},MIN(O,C),L,0,1),COLORRED; [/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 {AND ZZ=1},O,C,2,1),COLORCYAN;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 {AND ZZ=1},H,MAX(O,C),0,1),COLORCYAN;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 {AND ZZ=1},MIN(O,C),L,0,1),COLORCYAN;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 AND M2>C,O,C,2,0),COLORBLUE;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 AND M2>C,H,MAX(O,C),0,1),COLORBLUE;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z>=0 AND M2>C,MIN(O,C),L,0,1),COLORBLUE; [/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 AND M2<C,O,C,2,1),COLORYELLOW;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 AND M2<C,H,MAX(O,C),0,1),COLORYELLOW;[/color][/font]
[font=Times New Roman][color=#000000]STICKLINE(Z<0 AND M2<C,MIN(O,C),L,0,1),COLORYELLOW;[/color][/font]
[font=Times New Roman][color=#000000]WW:=(MA(CLOSE,4)+MA(CLOSE,8)+MA(CLOSE,16)+MA(CLOSE,32))/4;[/color][/font]
[font=Times New Roman][color=#000000]DRAWICON(CROSS(CLOSE,WW),LOW-0.002,1);[/color][/font]
[font=Times New Roman][color=#000000]DRAWICON(CROSS(WW,CLOSE),HIGH+0.006,2);[/color][/font]

2008-1-31 00:35 可乐
助人中感受快乐
受人帮助体味幸福----------谢谢楼主分享!

2008-1-31 00:37 可乐
大智慧吗?没有定义的标识符...

2008-1-31 00:38 可乐
通达信可以,谢谢!!!

2008-1-31 06:24 青云草
谢谢楼主分享!

2008-1-31 08:30 孤竹
顶一个:lol :lol :lol

2008-2-1 09:13 王楷沣
多谢楼主...................

页: [1]


Powered by Discuz! Archiver 5.5.0  © 2001-2006 Comsenz Inc.