赚钱不难精确波段副图公式 源码
VAR1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*50;
AA: (EMA(VAR1,3))*2;
BB:MA(AA,3);{}
DRAWBAND(AA,RGB(150,0,150),BB,RGB(150,150,150));
STICKLINE(AA>=BB,53,47,4,0),COLOREE82EE;
STICKLINE(AA<BB,53,47,4,1),COLORB3EE3A;
STICKLINE(CROSS(AA,20),58,42,2,0),COLORB23AEE;
VAR2:8,COLORGREEN,LINETHICK0;
IF(CROSS(AA,VAR2),40,0),STICK,LINETHICK2;
DRAWICON(CROSS(AA,VAR2),40,13);
DRAWICON(CROSS(80,AA),80,14);
IF(AA<=8,5,0),STICK,COLORFF00FF,LINETHICK5;
STICKLINE(CROSS(80,AA),80,70,0.2,0),COLOR00FF00;
DRAWICON(CROSS(80,AA),70,2);
DRAWTEXT(CROSS(80,AA),68,'卖');
DRAWTEXT(CROSS(AA,VAR2),49,'买');
DRAWICON(CROSS(AA,20),30,1);
STICKLINE(CROSS(AA,20),20,30,0.2,0),COLORRED;
DRAWICON(CROSS(AA,20),20,13);
DRAWICON(CROSS(AA,VAR2),0,13);
DRAWTEXT(CROSS(AA,20),62,'加仓');
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*50
输出
AA: (VAR1的3日指数移动平均)*2
输出
BB:AA的3日简单移动平均
{}
DRAWBAND(AA,RGB(150,0,150),BB,RGB(150,150,150))
当满足条件AA>=BB时,在53和47之间画柱状线
当满足条件AA
STICKLINE(AA上穿20,58,42,2,0),COLORB23AEE
输出
VAR2:8,画绿色,LINETHICK0
IF(AA上穿VAR2,40,0),STICK, 线宽为2
DRAWICON(AA上穿VAR2,40,13)
DRAWICON(80上穿AA,80,14)
如果AA<=8返回5否则返回0
STICKLINE(80上穿AA,80,70,0.2,0),COLOR00FF00
DRAWICON(80上穿AA,70,2)
DRAWTEXT(80上穿AA,68,'卖')
DRAWTEXT(AA上穿VAR2,49,'买')
DRAWICON(AA上穿20,30,1)
STICKLINE(AA上穿20,20,30,0.2,0),画红色
DRAWICON(AA上穿20,20,13)
DRAWICON(AA上穿VAR2,0,13)
DRAWTEXT(AA上穿20,62,'加仓')