通达信凤凰线通道源码附图

AA:=MA((2*CLOSE+HIGH+LOW)/4,5);
通道1:AA*N/100;
通道2:AA*(200-N)/100;
 CC:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
 DD:=DMA(CLOSE,CC);
通道3:(1+M/100)*DD;
通道4:(1-M/100)*DD;
 X:=1;
 XOPEN:=(REF(O,X)+REF(C,X))/2;
 XCLOSE:=CLOSE;
 XHIGH:=MAX(HIGH,XOPEN);
 XLOW:=MIN(LOW,XOPEN);
 VOLALITY:=MA(XHIGH-XLOW,8);
凰线:=MA(XCLOSE,5)+VOLALITY/2;
凤线:=MA(XCLOSE,5)-VOLALITY/2;
 BU:=CROSS(XCLOSE,凰线);
SEL:=CROSS(凤线,XCLOSE);
 VAR1:=BARSLAST(BU);
 VAR2:=BARSLAST(SEL);
 DRAWICON(REF(VAR1,1)>VAR2 AND VAR1=0,通道2*0.99,1);
 DRAWICON(REF(VAR2,1)>VAR1 AND VAR2=0,通道1*1.01,2);
 STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,2,0 ),COLORRED;
 STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XHIGH,XCLOSE ,0.5,0 ),COLORRED;
 STICKLINE(XCLOSE>XOPEN AND VAR1<VAR2,XOPEN,XLOW ,0.5,0 ),COLORRED;
 STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XOPEN ,2,0 ),COLORYELLOW;
 STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XHIGH,XOPEN ,0.5,0 ),COLORYELLOW;
 STICKLINE(XCLOSE<=XOPEN AND VAR1<VAR2,XCLOSE,XLOW ,0.5,0 ),COLORYELLOW;
 STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,2,0 ),COLORGREEN;
 STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XOPEN ,XHIGH ,0.5,0 ),COLORGREEN;
 STICKLINE(XCLOSE<=XOPEN AND VAR1>VAR2,XCLOSE,XLOW ,0.5,0 ),COLORGREEN;
 STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE ,XOPEN ,2,0 ),COLORLIBLUE;
 STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XCLOSE,XHIGH ,0.5,0 ),COLORLIBLUE;
 STICKLINE(XCLOSE>XOPEN AND VAR1>VAR2,XOPEN,XLOW ,0.5,0 ),COLORLIBLUE;




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

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

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