通达信粪发涂墙主图指标公式

多空:=1;第一点:=9;第二点:=8;
K1:=IF(多空=1,TROUGHBARS(2,1,1),PEAKBARS(1,1,1));
F1:=IF(多空=1,PEAKBARS(1,1,1),TROUGHBARS(2,1,1));
K2:=BacKSET(ISLASTBAR,SUMBARS(K1=0,第一点));
F2:=BACKSET(ISLASTBAR,SUMBARS(F1=0,第二点));
P1:=IF(K2>0,1,-1);
P2:=IF(F2>0,1,-1);
PK1:=crOSS(P1,0);
PK2:=CROSS(P2,0);
KTONOW1:=BArslAST(PK1)=0;
KTONOW2:=BARSLAST(PK2);
STICKLINE(PK1,HHV(H,240),LLV(L,240),0,0),COLORF08080;
STICKLINE(PK2,HHV(H,240),LLV(L,240),0,0),COLOR80F080;
HE:=IF(多空=1,CONST(REF(H,KTONOW2)),CONST(REF(H,KTONOW1)));
LE:=IF(多空=1,CONST(REF(L,KTONOW1)),CONST(REF(L,KTONOW2)));
LL:=HE-LE;
STICKLINE(REF(P2,1)>0 AND 多空=1,LE+LL*0.236,LE+LL*0.236,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=1,LE+LL*0.382,LE+LL*0.382,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=1,LE+LL*0.5,LE+LL*0.5,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=1,LE+LL*0.618,LE+LL*0.618,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=1,LE+LL*0.764,LE+LL*0.764,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=1,HE,HE,1,0),COLORRED;
DRAWLINE(PK1 AND 多空=1,L,PK2,H,1),COLORWHITE;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE+LL*0.191,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE+LL*0.382,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE+LL*0.5,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE-LL*0.191,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE-LL*0.382,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE-LL*0.5,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE-LL*0.618,1),COLOR808080;
DRAWLINE(PK1 AND 多空=1,L,PK2 AND 多空=1,HE-LL*0.809,1),COLOR808080;
STICKLINE(REF(P2,1)>0 AND 多空=0,HE-LL*0.236,HE-LL*0.236,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=0,HE-LL*0.382,HE-LL*0.382,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=0,HE-LL*0.5,HE-LL*0.5,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=0,HE-LL*0.618,HE-LL*0.618,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=0,HE-LL*0.764,HE-LL*0.764,1,0),COLOR808000;
STICKLINE(REF(P2,1)>0 AND 多空=0,LE,LE,1,0),COLORRED;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,L,1),COLORWHITE;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,(HE-LL*0.191),1),COLOR808080;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,(HE-LL*0.382),1),COLOR808080;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,(HE-LL*0.5),1),COLOR808080;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,(HE-LL*0.618),1),COLOR808080;
DRAWLINE(PK1 AND 多空=0,H,PK2 AND 多空=0,(HE-LL*0.809),1),COLOR808080;
KO:=CLOSE;
KC:=REF(CLOSE,1);
STICKLINE(KO>KC,OPEN,LOW,0,0 ),COLOR2828FF;
STICKLINE(KO>KC,CLOSE,HIGH,0,0 ),COLOR2828FF;
STICKLINE(KO<=KC,CLOSE,LOW,0,0 ),COLORFFFF22;
STICKLINE(KO<=KC,OPEN,HIGH,0,0 ),COLORFFFF22;
STICKLINE(KO<=KC ,CLOSE ,OPEN,3,0 ),COLORCC6600;
STICKLINE(KO<=KC ,CLOSE ,OPEN,1,0 ),COLORFFFF11;
STICKLINE(KO>KC,CLOSE,OPEN,3,0 ),COLOR000099;
STICKLINE(KO>KC,CLOSE,OPEN,1,0 ),COLOR2828FF;




未来函数检测结果如下:
该公式包含未来函数:PEAK
该公式包含未来函数:PEAKBARS
该公式包含未来函数:TROUGH
该公式包含未来函数:TROUGHBARS
该公式包含未来函数:BACKSET
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图