公式指标论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

心悦诚服主图指标 (源码)

2019-9-12 07:49| 发布者: admin| 查看: 31| 评论: 0

input:N(10,0,90);
DRAWTEXTREL(10,15,'★可调【买卖标记:N='+N+', [0---不显示,优化:个股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 CSTICKLINE(CROSS(80,卖黄金) AND CSTICKLINE(CROSS(80,卖黄金) AND CSTICKLINE(CROSS(80,卖黄金) AND CSTICKLINE(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.gpxiazai.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 CVOL>MA(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;

大智慧心悦诚服主图指标公式


鲜花

握手

雷人

路过

鸡蛋
返回顶部