【通達(dá)信】蟒蛇波段指標(biāo)公式
攻城獅 2016.02.04 00:56
LY:=10;
BL:=40;
CJQS:=XMA(CLOSE,LY);
JBQS:=XMA(CLOSE,BL);
N:=REF(JBQS,BL/2+1-CURRBARSCOUNT)/REF(JBQS,BL/2+2-CURRBARSCOUNT);
M:=REF(CJQS,LY/2+1-CURRBARSCOUNT)/REF(CJQS,LY/2+2-CURRBARSCOUNT);
A蛇被:IF(CURRBARSCOUNT>BL/2,JBQS*1.1,REF(JBQS,BL/2+1- CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*1.1),CROSSDOT;
B蛇腹:IF(CURRBARSCOUNT>BL/2,JBQS*0.9,REF(JBQS,BL/2+1- CURRBARSCOUNT)*POW(N,BL/2+1-CURRBARSCOUNT)*0.9),CROSSDOT;
C蛇被:IF(CURRBARSCOUNT>LY/2,CJQS*1.05,REF(CJQS,LY/2+1- CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*1.05);
D蛇腹:IF(CURRBARSCOUNT>LY/2,CJQS*0.95,REF(CJQS,LY/2+1- CURRBARSCOUNT)*POW(M,LY/2+1-CURRBARSCOUNT)*0.95);
{www.chiang1015.com 概念股網(wǎng)_通達(dá)信股票指標(biāo)公式}
DRAWBAND(D蛇腹,RGB(255,0,0),B蛇腹,RGB(0,255,0));
DRAWBAND(A蛇被,RGB(255,0,0),C蛇被,RGB(0,255,0));
DRAWTEXT(CROSS(H,A蛇被)AND (H> A蛇被),A蛇被,’●’),COLORBLUE;
DRAWBAND(D蛇腹,RGB(255,0,0),A蛇被,RGB(0,255,0));
申明:本文為作者投稿或轉(zhuǎn)載,在概念股網(wǎng) http://www.chiang1015.com/ 上發(fā)表,為其獨(dú)立觀點(diǎn)。不代表本網(wǎng)立場,不代表本網(wǎng)贊同其觀點(diǎn),亦不對其真實(shí)性負(fù)責(zé),投資決策請建立在獨(dú)立思考之上。