当前位置:分析家公式网 → 股票公式 → 大智慧L2公式 → 一键转帖:转折趋势主图 - 简单清晰供大家分享优化
软件名称:[B]转折趋势主图 - 简单清晰供大家分享优化[/B]
软件类型:国产软件
运行环境:Win9X/2000/XP/2003/
软件语言:简体中文
授权方式:解密版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2009-01-28 11:24:58
软件简介:
转折趋势主图,简单清晰供大家分享优化
{转折趋势}
{---------------- 快速趋势线 -----------------}
IF DATATYPE=8 then begin
partline(c*2-ref(c,3),c>0),MOVE3,color005555,LAYER7,linethick2;
partline(ref(c,1)*2-ref(c,4),c>0),MOVE2,color005500,LAYER7,linethick2;
partline(ref(c,2)*2-ref(c,5),c>0),MOVE1,color553355,LAYER7,linethick2;
END;
{---------------- 快速趋势线结束 -----------------}
{DRAWGBKlast(C, STRIP(RGB(40,40,173),RGB(1,1,14),0));}
H均线:=WMA(H,5);
L均线:=WMA(L,5);
转折线:IF(C>REF(H均线,1),L均线-(MA(H,5)-WMA(H,5)),IF(C<REF(L均线,1),H均线+(MA(H,5)-WMA(H,5)),L)),LINETHICK2,colorFFFFFF,LAYER0;
看多:C>转折线,linethick0,color0000ff;
看空:C<=转折线,linethick0,color00ff00;
看空期:=BARSLAST(看多);
看多期:=BARSLAST(看空);
预买:看多期=1,color00ffff,linethick0;
清仓:看空期=1,colorblue,linethick0;
STICKLINE(C>转折线,H,L,1,0),colorred;
STICKLINE(C>转折线,O,C,6,0),colorred;
STICKLINE(C>转折线 AND C<O,O,C,6,1),colorred;
STICKLINE(C<=转折线,H,L,1,0),color00ff00;
STICKLINE(C<=转折线,O,C,6,0),color00ff00;
STICKLINE(C<=转折线 AND C>O,O,C,6,1),color00ff00;
STICKLINE(预买,O,(C+O)/2,6,0),color00ffff;
STICKLINE(清仓,O,(C+O)/2,6,0),colorblue;
{回归预测}{HG}
A1:=(H+L+2*C)/4;
B1:=EMA(A1,2);
预测本周期价:FORCAST(B1,9),linethick0;
{---------------- 快速趋势线 -----------------}
IF DATATYPE=8 then begin
partline(c*2-ref(c,3),c>0),MOVE3,color005555,LAYER7,linethick2;
partline(ref(c,1)*2-ref(c,4),c>0),MOVE2,color005500,LAYER7,linethick2;
partline(ref(c,2)*2-ref(c,5),c>0),MOVE1,color553355,LAYER7,linethick2;
END;
{---------------- 快速趋势线结束 -----------------}
{DRAWGBKlast(C, STRIP(RGB(40,40,173),RGB(1,1,14),0));}
H均线:=WMA(H,5);
L均线:=WMA(L,5);
转折线:IF(C>REF(H均线,1),L均线-(MA(H,5)-WMA(H,5)),IF(C<REF(L均线,1),H均线+(MA(H,5)-WMA(H,5)),L)),LINETHICK2,colorFFFFFF,LAYER0;
看多:C>转折线,linethick0,color0000ff;
看空:C<=转折线,linethick0,color00ff00;
看空期:=BARSLAST(看多);
看多期:=BARSLAST(看空);
预买:看多期=1,color00ffff,linethick0;
清仓:看空期=1,colorblue,linethick0;
STICKLINE(C>转折线,H,L,1,0),colorred;
STICKLINE(C>转折线,O,C,6,0),colorred;
STICKLINE(C>转折线 AND C<O,O,C,6,1),colorred;
STICKLINE(C<=转折线,H,L,1,0),color00ff00;
STICKLINE(C<=转折线,O,C,6,0),color00ff00;
STICKLINE(C<=转折线 AND C>O,O,C,6,1),color00ff00;
STICKLINE(预买,O,(C+O)/2,6,0),color00ffff;
STICKLINE(清仓,O,(C+O)/2,6,0),colorblue;
{回归预测}{HG}
A1:=(H+L+2*C)/4;
B1:=EMA(A1,2);
预测本周期价:FORCAST(B1,9),linethick0;
[url=http://www.70822.com/soft/sort013/sort03/down-5907.html]转折趋势主图 - 简单清晰供大家分享优化[/url]