通达信〈短买〉二字处改为选股指标
通达信〈短买〉二字处改为选股指标
【股票资源馆】让数据触手可得!专业和谐破解高端炒股软件!
是国内最好的股票软件、股票公式指标、股票书籍下载网站;提供最全面的股票知识、炒股教程、黑马股票、股票资讯、期货外汇等给大家在线参考学习。
编写条件:
编写方法:
网友求助:
请编辑一个同花顺的黄金分割主图指标,非常感谢!
解答如下:
//参数 n(1,500,130) 调整计算区间--竖线
DRAWGBKLAST(CLOSE>0,STRIP(RGB(100,100,100),RGB(100,100,100),1));
VERLINE(CROSS(ISNULL(REFX(&CLOSE,n)),0.5),2),COLOR00ffff;
t1:=HHVBARS(H,n);
t2:=LLVBARS(L,n);
HH:=REF(H,t1);
LL:=REF(L,t2);
kk:=(HH-LL);
HH1:=LL+KK*0.236;
HH2:=LL+KK*0.382;
HH3:=LL+KK*0.5;
HH4:=LL+KK*0.618;
HH5:=LL+KK*0.809;
//----------------------------------------------------------------
tt:=BARSCOUNT(CLOSE);
x1:BACKSET(HH,tt),COLORFFffFF;
x2:BACKSET(HH1,tt),COLORFFffFF;
x3:BACKSET(HH2,tt),COLORFFffFF;
x4:BACKSET(HH3,tt),COLORFFffFF;
x5:BACKSET(HH4,tt),COLORFFffFF;
x6:BACKSET(HH5,tt),COLORFFffFF;
x7:BACKSET(LL,tt),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH,'```'+TOSTRING(HH,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH1,'```'+TOSTRING(HH1,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH2,'```'+TOSTRING(HH2,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH3,'```'+TOSTRING(HH3,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH4,'```'+TOSTRING(HH4,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH5,'```'+TOSTRING(HH5,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),LL,'```'+TOSTRING(LL,2)),COLORFFffFF;
//------------------------------------------------------------------------------
STICKLINE(CLOSE>0 ,CLOSE,OPEN,10,0),color000000;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,9,0 ),COLOR999900;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLORbbbb00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,6,0 ),COLORcccc00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,4,0 ),COLORdddd00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
STICKLINE(OPEN>CLOSE ,HIGH,LOW,2,0 ),COLORffff00;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,9,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR0000bb;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,6,0) ,COLOR0000cc;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,2,0) ,COLOR0000ee;
STICKLINE(CLOSE>=OPEN ,HIGH,LOW,2,0 ),COLOR000fFF;
DRAWGBKLAST(CLOSE>0,STRIP(RGB(100,100,100),RGB(100,100,100),1));
VERLINE(CROSS(ISNULL(REFX(&CLOSE,n)),0.5),2),COLOR00ffff;
t1:=HHVBARS(H,n);
t2:=LLVBARS(L,n);
HH:=REF(H,t1);
LL:=REF(L,t2);
kk:=(HH-LL);
HH1:=LL+KK*0.236;
HH2:=LL+KK*0.382;
HH3:=LL+KK*0.5;
HH4:=LL+KK*0.618;
HH5:=LL+KK*0.809;
//----------------------------------------------------------------
tt:=BARSCOUNT(CLOSE);
x1:BACKSET(HH,tt),COLORFFffFF;
x2:BACKSET(HH1,tt),COLORFFffFF;
x3:BACKSET(HH2,tt),COLORFFffFF;
x4:BACKSET(HH3,tt),COLORFFffFF;
x5:BACKSET(HH4,tt),COLORFFffFF;
x6:BACKSET(HH5,tt),COLORFFffFF;
x7:BACKSET(LL,tt),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH,'```'+TOSTRING(HH,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH1,'```'+TOSTRING(HH1,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH2,'```'+TOSTRING(HH2,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH3,'```'+TOSTRING(HH3,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH4,'```'+TOSTRING(HH4,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),HH5,'```'+TOSTRING(HH5,2)),COLORFFffFF;
DRAWTEXT(ISNULL(REFX(&CLOSE,1)),LL,'```'+TOSTRING(LL,2)),COLORFFffFF;
//------------------------------------------------------------------------------
STICKLINE(CLOSE>0 ,CLOSE,OPEN,10,0),color000000;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,9,0 ),COLOR999900;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,8,0 ),COLORbbbb00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,6,0 ),COLORcccc00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,4,0 ),COLORdddd00;
STICKLINE(OPEN>CLOSE ,CLOSE ,OPEN,2,0 ),COLOReeee00;
STICKLINE(OPEN>CLOSE ,HIGH,LOW,2,0 ),COLORffff00;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,9,0) ,COLOR000099;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,8,0) ,COLOR0000bb;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,6,0) ,COLOR0000cc;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,4,0) ,COLOR0000dd;
STICKLINE(CLOSE>=OPEN ,CLOSE,OPEN,2,0) ,COLOR0000ee;
STICKLINE(CLOSE>=OPEN ,HIGH,LOW,2,0 ),COLOR000fFF;
{股票资源馆:www.lixiangluntan.com专业和谐高端炒股软件--公式编写交流--加QQ751161480--}炒股软件
资金流向指标把绿色向下显示的方法
资金流向指标把绿色向下显示的方法