以下是【红线持股】用他做波段买卖.不会吃亏{补通达信源码}【副图.源码.附图】

用这个公式做波段买卖.股票.不会吃亏.所以我给他起名【红线持股】下边是公式源码;——————大智慧的公式————–
DRAWGBKlast(C>0,strip(RGB(100,100,0),RGB(0,0,200),0)); 0,DOTLINE;
 B1:=(HHV(H,8)-C)/(HHV(H,8)-LLV(LOW,8))*100-70;
 B2:=SMA(B1,8,1)+100;
 B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
 B4:=SMA(B3,3,1);
 B5:=SMA(B4,3,1)+100;
 B6:=B5-B2;
 B7:IF(B6>60,B6-60,0),LINETHICK0;
 PARTLINE(B7,(B7>REF(B7,1))-1,rgb(0,200,200),1,rgb(255,0,0) ),LINETHICK2,LAYER0;

STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),4,0 ),COLOR0022FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),3,0 ),COLOR0055FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),2,0 ),COLOR0077FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),1,0 ),COLOR0099FF;

{小于零部分}
B8:=B6-60;
 PARTLINE(B8,(B8>REF(B8,1))-1,rgb(0,255,0),1,rgb(255,0,0) ),DOTLINE,LAYER7;
 

—————-下边是【通达信】的源码;—————————————————–
0,DOTLINE;
 B1:=(HHV(H,8)-C)/(HHV(H,8)-LLV(LOW,8))*100-70;
 B2:=SMA(B1,8,1)+100;
 B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
 B4:=SMA(B3,3,1);
 B5:=SMA(B4,3,1)+100;
 B6:=B5-B2;
 B7:IF(B6>60,B6-60,0),COLOR00FF00,LINETHICK2;
 IF(B7>REF(B7,1),B7,DRAWNULL),COLOR0000FF,LINETHICK2;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),3,0 ),COLOR0022FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),2,0 ),COLOR0055FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),1,0 ),COLOR0077FF;
 STICKLINE(REF(B7,1)<B7,B7,REF(B7,1),0,0 ),COLOR0099FF;

{小于零部分}
B8:B6-60,COLOR00FF00,DOTLINE;
 IF(B8<REF(B8,1),B8,DRAWNULL),COLOR00FF00,DOTLINE;
 IF(B8>REF(B8,1),B8,DRAWNULL),COLOR0000FF,DOTLINE;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。