【大智慧】心悅誠服主圖指標公式
攻城獅 2015.11.26 03:37
input:N(10,0,90);
DRAWTEXTREL(10,15,’★可調【買賣標記:N=’+N+’, [0—不顯示,優(yōu)化:個股N=20,大盤N=30]】’),COLOR00FFFF,linethick2;
{K線}
STICKLINE(CLOSE>OPEN,HIGH,LOW,0.5,0 ),COLOR0000FF;
STICKLINE(OPEN>=CLOSE,HIGH,LOW,0.5 ,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
{賣黃金,RSI=80}
LC:=REF(C,1);
賣黃金:((SMA(MAX((C – LC),0),3,1) / SMA(ABS((C – LC)),3,1)) * 100),LINETHICK0;
STICKLINE(CROSS(80,賣黃金) AND CSTICKLINE(CROSS(80,賣黃金) AND C STICKLINE(CROSS(80,賣黃金) AND C STICKLINE(CROSS(80,賣黃金) AND C STICKLINE(CROSS(80,賣黃金) AND C STICKLINE(CROSS(80,賣黃金) AND C {心悅誠服}
BBI:=(2*C+H+L+O/2)/4.5;
心悅:EMA(((SLOPE(BBI,18)*21)+C),43),COLOR00FF00,LINETHICK1;
PARTLINE(心悅,心悅>ref(心悅,1),rgb(255,0,0)),LINETHICK3,LAYER3;
{www.chiang1015.com 概念股網_最新股票指標公式}
阻攔:EMA(REF(HHV(H*0.987,30),1),2),COLOR0077FF;
支護:EMA(REF(LLV(L*1.013,30),1),2),COLOR99ff99;
FILLRGN(阻攔,心悅,阻攔>心悅,RGB(0,80,0)),COLORFF9900,LAYER7;
FILLRGN(支護,心悅,支護<心悅,RGB(50,0,30)),COLOR00FF00,LAYER7;
FILLRGN(阻攔,支護,心悅>ref(心悅,1),RGB(0,0,255)),COLORFF9900,LAYER5;
誠服:WMA(BBI,8),COLOR00FFFF,PRECIS2;
{買賣標記}
A3:=REF(H,N)=HHV(H,2*N+1);
B3:=FILTER(A3,N);
C3:=BACKSET(B3,N+1);
D3:=FILTER(C3,N);{高點}
A4:=REF(L,N)=LLV(L,2*N+1);
B4:=FILTER(A4,N);
C4:=BACKSET(B4,N+1);
D4:=FILTER(C4,N);{低點}
drawbmp(D3 or (D3 AND CMA(VOL,5) AND VOL>MA(VOL,60)),(H)*1.04,’LC.bmp’),align1,layer0;
drawbmp(D4 or (D4 AND C>O AND VOL>ref(LLV(VOL,60),1)),(l)*0.99,’LR.bmp’),align1,layer0;
申明:本文為作者投稿或轉載,在概念股網 http://www.chiang1015.com/ 上發(fā)表,為其獨立觀點。不代表本網立場,不代表本網贊同其觀點,亦不對其真實性負責,投資決策請建立在獨立思考之上。