密码买点同花顺副图指标
N1:=50;N:=8;
80,colorgreen;
20,colorred;
LC:=REF(CLOSE,1);
☆:SMA(MAX(CLOSE-LC,0),N,1)/SMA(ABS(CLOSE-LC),N,1)*100,coloryellow;
☆1:IF(☆<20,40,20),colorred;
☆2:IF(☆>80,60,80),colorgreen;
☆↑:STICKLINE(FILTER(REF(☆,1)<20 AND ☆>REF(☆,1),5),20,40,8,0),colorred;
☆↓:STICKLINE(FILTER(REF(☆,1)>80 AND ☆<REF(☆,1),5),60,80,8,0),colorgreen;
DRAWTEXT(FILTER(REF(☆,1)<20 AND ☆>REF(☆,1),5),40 ,'买入' ),colorred;
DRAWTEXT(FILTER(REF(☆,1)>80 AND ☆<REF(☆,1),5),60 ,'卖出' ),colorgreen;
x: REF(CLOSE,1);
冰山: SMA(MAX(CLOSE-x,0),8,1)/SMA(ABS(CLOSE-x),8,1)*100 ;
排顺序: IF(CROSS(冰山,15),20,0),STICK,linethick1;
DRAWICON(排顺序>0,20,1 );
DRAWTEXT(CROSS(排顺序,11) , LOW,'→ 低吸 '),COLOr00B7B4 ;
买入A:IF(1/WINNER(CLOSE)>100 AND ABS((COST(50)-CLOSE)/CLOSE*100)>30 AND IF(1/WINNER(CLOSE)<REF(1/WINNER(CLOSE),1) AND REF(1/WINNER(CLOSE),1)>REF(1/WINNER(CLOSE),2),120,0),30,0),STICK,colorred , linethick2;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
N1赋值:50
N赋值:8
80,COLORGREEN
20,画红色
LC赋值:1日前的收盘价
输出☆:SMA(收盘价-LC和0较大值,N,1)/SMA(收盘价-LC的绝对值,N,1)*100,画黄色
如果☆<20返回40否则返回20
如果☆>80返回60否则返回80
☆↑:STICKLINE(FILTER(1日前的☆<20 AND ☆>1日前的☆,5),20,40,8,0),画红色
☆↓:STICKLINE(FILTER(1日前的☆>80 AND ☆<1日前的☆,5),60,80,8,0),COLORGREEN
DRAWTEXT(FILTER(1日前的☆<20 AND ☆>1日前的☆,5),40 ,'买入' ),画红色
DRAWTEXT(FILTER(1日前的☆>80 AND ☆<1日前的☆,5),60 ,'卖出' ),COLORGREEN
输出X: 1日前的收盘价
输出冰山: SMA(收盘价-X和0较大值,8,1)/SMA(收盘价-X的绝对值,8,1)*100
输出排顺序: IF(冰山上穿15,20,0),STICK,LINETHICK1
当满足条件排顺序>0时,在20和1 之间画图标
DRAWTEXT(排顺序上穿11 , 最低价,'→ 低吸 '),COLOR00B7B4
输出买入A:IF(1/收盘价计算的获利盘比例>100 AND (获利盘为50%的成本分布-收盘价的绝对值/收盘价*100)>30 AND IF(1/收盘价计算的获利盘比例[REF(1/收盘价计算的获利盘比例,2),120,0),30,0),STICK,画红色 , LINETHICK2]