分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]波段买卖主图 多空买卖副图(通达信公式 主副图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:5.00 KB
官方主页:Home Page
更新时间:2020-04-18 00:15:03
软件简介:

 主图是趋势指标,副图是波段类指标。

分享一下一个抄月殳老师傅给的一个主图指标及一个副图指标,都是用来做波段的
公式用法:
波段买卖指标的使用方法:K线变红,并且下方的两条槽出现红色和紫色出现就是买点;
K线变绿,或者下方的红色槽消失,卖点出现!红色槽跟紫色槽都不在,空仓状态!

{波段买卖}
P1:=10;P2:=30;
MAR1:=MA(CLOSE,P1);
C1:=C>=MAR1;
C2:=C<MAR1;
AA:=C1>=C2 ;
BB:=C2>C1 ;
STICKLINE(AA,C,O,3,0),COLORRED;
STICKLINE(AA,H,L,0,0),COLORRED;
STICKLINE(BB,C,O,3,0),COLOR00FF00;
STICKLINE(BB,H,L,0,0),COLOR00FF00;
STICKLINE(AA,CLOSE,OPEN,3,0),COLOR000099;
STICKLINE(AA,CLOSE,OPEN,2.2,0),COLOR0000CC;
STICKLINE(AA,CLOSE,OPEN,1.5,0),COLOR0000FF;
STICKLINE(AA,CLOSE,OPEN,0.5,0),COLORCC66FF;
STICKLINE(BB,CLOSE,OPEN,3,0),COLORFF7700;
STICKLINE(BB,CLOSE,OPEN,2.2,0),COLORFF9900;
STICKLINE(BB,CLOSE,OPEN,1.5,0),COLORFFBB00;
STICKLINE(BB,CLOSE,OPEN,0.5,0),COLORCYAN;
MAA:MAR1,COLOR00FF00,LINETHICK2;
{WWW.70822.com 股旁网_通达信股票指标公式}
IF(MAA>=REF(MAA,1),MAA,DRAWNULL),COLORRED,,LINETHICK2;
IF(MAA<REF(MAA,1),MAA,DRAWNULL),COLORFFFFFF,LINETHICK2;
MAB:MA(CLOSE,P2),COLOR00FF00,LINETHICK2;
IF(MAB>=REF(MAB,1),MAB,DRAWNULL),COLORMAGENTA,LINETHICK2;
IF(MAB<REF(MAB,1),MAB,DRAWNULL),COLORGREEN,LINETHICK2;
DRAWICON(MAA>=REF(MAA,1) AND CROSS(MAA,MAB),MAA*0.98,1);
DRAWICON(CROSS(MAB,MAA),MAB*1.02,2);
VAR2:=(2*CLOSE+HIGH+LOW)/4;
VAR3:=IF(YEAR>=2099 AND MONTH>2,0,1);
VAR4:=LLV(LOW,5);
VAR5:=HHV(HIGH,4);
VAR6:=EMA((VAR2-VAR4)/(VAR5-VAR4)*100,4)*VAR3;
VAR7:=EMA(0.667*REF(VAR6,1)+0.333* VAR6,2)*VAR3;
DRAWTEXT(CROSS(VAR6, VAR7) AND VAR6<30,L-0.05,'←低吸'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR7, VAR6) AND VAR6>70,H+0.05,'←高抛'),COLOR00FFFF;
DRAWICON(CROSS(VAR6, VAR7) AND VAR6<30,L-0.05,13);
DRAWICON(CROSS(VAR7, VAR6) AND VAR6>70,H+0.05,14);
AAA:= MAA>=REF(MAA,1);{C>=MAA;}
BBB:= MAA<REF(MAA,1);{ C<MAA;}
DDD:=MAB>=REF(MAB,1);
EEE:=MAB<REF(MAB,1);
TT:=IF(ISLASTBAR,240/FROMOPEN,1);
NN:=120;
HH:=HHV(V*TT,NN);
LL:=LLV(V,NN);
最高:=CONST(HH);
最低:=CONST(LL);
最高2:=CONST(HHV(H,NN));
最低2:=CONST(LLV(L,NN));
PP:=IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,20)),0.9,IF((最高2*0.9-(最高2-最低2)*0.5)>CONST(LLV(L,50)),0.7,0.6)),NODRAW;
RCC1:=最高2*0.9-(最高2-最低2)*PP;
最低3:=MIN(RCC1,最低2);
AA1:=最低3;
STICKLINE(AAA,AA1-0.000*AA1,AA1-0.040*AA1,4,0),COLOR0000FF;
STICKLINE(BBB,AA1-0.000*AA1,AA1-0.040*AA1,4,1),COLOR686868;
STICKLINE(DDD,AA1-0.050*AA1,AA1-0.090*AA1,4,0),COLORFF00FF;
STICKLINE(EEE,AA1-0.050*AA1,AA1-0.090*AA1,4,1),COLOR686868;
DRAWTEXT_FIX(1,0.5,0.84,0,'★★ 红色--均线A持股★★粉色--均线B持股★★'),COLOR00FFFF;
 

{多空买卖}
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4; 
VAR2:=SUMBARS(VOL,CAPITAL); 
VAR3:=HHV(VAR1,VAR2); 
VAR4:=LLV(VAR1,VAR2); 
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4); 
VAR6:=(VAR1-VAR4)/(VAR3-VAR4); 
VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60); 
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30); 
VAR9:=EMA(VAR8,7); 
VARA:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100; 
VARB:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5; 
波段买入: IF(VARA+VARB<7 AND CROSS(VAR8,VAR9) AND VAR9<-18 AND VAR9<VARB,60,50),COLORYELLOW , ; 
DRAWICON(波段买入=60,70,1),COLORRED; 
VARC:=HHV(HIGH,9)-LLV(LOW,9); 
VARD:=HHV(HIGH,9)-CLOSE; 
VARE:=CLOSE-LLV(LOW,9); 
VARF:=VARD/VARC*100-70; 
VAR10:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100; 
VAR11:=(2*CLOSE+HIGH+LOW)/4; 
VAR12:=SMA(VARE/VARC*100,3,1); 
VAR13:=LLV(LOW,34); 
VAR14:=SMA(VAR12,3,1)-SMA(VARF,9,1); 
VAR15:=IF(VAR14>100,VAR14-100,0); 
VAR16:=HHV(HIGH,34); 
VAR17:EMA((VAR11-VAR13)/(VAR16-VAR13)*100,8); 
巫修全制: VAR17,COLORYELLOW ; 
VAR18:=EMA(VAR17,5); 
STICKLINE(VAR17>0 AND VAR17-VAR18>=0,79,80,6,0),COLORRED ; 
STICKLINE(VAR17>0 AND VAR17-VAR18<0,79,80,6,1),COLOR00FF00 ; 
STICKLINE(VAR17>0 AND VAR17-VAR18>=0,19,20,6,0),COLORRED, ; 
STICKLINE(VAR17>0 AND VAR17-VAR18<0,19,20,6,1),COLOR00FF00 ; 
STICKLINE(VAR17-VAR18>0,VAR17,VAR18,8,1),COLORRED ;
STICKLINE(VAR17-VAR18<0,VAR17,VAR18,8,1),COLOR00FF00 ;
 
 
 

[url=http://www.70822.com/soft/sort013/sort05/down-146936.html]波段买卖主图 多空买卖副图(通达信公式 主副图 源码 测试图)[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:31.25000 毫秒