黑马股票股票侦探公式指标源码[其他软件公式]
相关标签: 打天下股票操盘软件 、 股票实战操盘 、 股票操盘 、 打天下股票操盘系统 、 股票中短线操盘技巧 、 异动股票操盘技术 、 逸飞股票操盘训练工具 、 股票稳定盈利操盘系统 、 股票操盘密码 、
黑马股票股票侦探公式指标源码
买线:=EMA(CLOSE,2);
卖线:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42);
B:=CROSS(买线,卖线);
S:=CROSS(卖线,买线);
AA:EMA(EMA(EMA(EMA(CLOSE,7),7),7),7),LINETHICK2,colorFF;
AAA:=1;
PARTLINE(AA>=ref(AA,1) AND AAA=1,AA),LINETHICK3,colorFF;
PARTLINE(AA<ref(AA,1) AND AAA=1,AA),LINETHICK3,colorFF00;
DD:EMA(EMA(EMA(EMA(EMA(EMA(EMA(CLOSE,133),7),7),7),7),7),7),LINETHICK2,colorFF00FF;
EE:EMA(EMA(EMA(EMA(EMA(EMA(EMA(EMA(CLOSE,256),7),7),7),7),7),7),7),LINETHICK2,colorFFFF;
TRS:=MAX(MAX(HIGH-LOW,ABS(ref(CLOSE,1)-HIGH)),ABS(ref(CLOSE,1)-LOW));
ATR:=MA(TRS,13);
VAR21:=ref(CLOSE,1)-ref(ATR,1);
GG:HHV(VAR21,13),LINETHICK2,colorFF8010;
HH:MA(CLOSE,12),colorFF00;
BB:EMA(EMA(EMA(EMA(EMA(CLOSE,30),7),7),7),7),LINETHICK2,colorFFFFFF;
CC:EMA(EMA(EMA(EMA(EMA(EMA(CLOSE,62),7),7),7),7),7),LINETHICK2,colorFF0000;
FF:=CROSS(CLOSE,BB) AND B;
DRAWTEXT(FF,LOW,'▲'),colorFFFF;
VAR2:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VAR3:=(20*VAR2+19*ref(VAR2,1)+18*ref(VAR2,2)+17*ref(VAR2,3)+16*ref(VAR2,4)+15*ref(VAR2,5)+14*ref(VAR2,6)+13*ref(VAR2,7)+12*ref(VAR2,8)+11*ref(VAR2,9)+10*ref(VAR2,10)+9*ref(VAR2,11)+8*ref(VAR2,12)+7*ref(VAR2,13)+6*ref(VAR2,14)+5*ref(VAR2,15)+4*ref(VAR2,16)+3*ref(VAR2,17)+2*ref(VAR2,18)+ref(VAR2,20))/210;
VAR4:=MA(VAR3,13);
VAR5:=EMA(MA(CLOSE,3),34);
VAR6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR7:=MA(VAR6,5);
VAR8:=MA(VAR6,10);
DRAWTEXT(ref(CROSS(VAR3,VAR4),2) AND VAR3>1.005*VAR4,VAR4,'买'),colorFFFFFF;
DRAWTEXT(CROSS(VAR6,VAR7) AND VAR7<VAR8,VAR3*0.95,'转'),colorFFFF;
DRAWTEXT(CROSS(VAR7,VAR6) AND VAR7>VAR8,VAR3*1.05,'卖'),colorFFFFFF;
P:=SYSPARAM(1);
主动买卖盘:=VOL/((HIGH-LOW)*2-(ABS(CLOSE-OPEN)));
主动买盘:=IF(CLOSE>OPEN,主动买卖盘*(HIGH-LOW),IF(CLOSE<OPEN,主动买卖盘*(HIGH-OPEN+CLOSE-LOW),VOL/2));
主动卖盘:=IF(CLOSE>OPEN,-主动买卖盘*(HIGH-CLOSE+OPEN-LOW),IF(CLOSE<OPEN,-主动买卖盘*(HIGH-LOW),-VOL/2));
买卖比:=主动买盘/主动卖盘;
WJ:=(HIGH+LOW+CLOSE)/3;
VD1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));
VD2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
VD3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);
VD4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
VD5:=VOL/(IF(HIGH=LOW,4,HIGH-LOW));
VD6:=VD1*VD5;
VD7:=VD2*VD5;
VD8:=VD3*VD5;
VD9:=VD4*VD5;
买入量:=VD9+VD8;
卖出量:=VD6+VD7;
买入资金:=买入量*CLOSE/100;
卖出资金:=卖出量*CLOSE/100;
总成交资金:=买入资金+卖出资金;
资金进出:=买入资金-卖出资金;
买卖资金比:=买入资金-卖出资金;
DRAWTEXTEX(CLOSE,0,10,25,'■主买主卖: '+NUMTOSTR(买卖比[P],2)),colorFF00FF;
DRAWTEXTEX(CLOSE,0,10,10,'■资金流入: '+NUMTOSTR(买卖资金比[P],2)),colorFFFF;
E:=(HIGH+LOW+OPEN+2*CLOSE)/5;
ZL:=2*E-LOW;
ZC:=2*E-HIGH;
FZ:=E-(HIGH-LOW);
DRAWTEXTEX(CLOSE,0,10,40,'■上升阻力:'+NUMTOSTR(ZL,2)),colorFF;
DRAWTEXTEX(CLOSE,0,10,55,'■下跌支撑:'+NUMTOSTR(ZC,2)),colorFF00;
DRAWTEXTEX(CLOSE,0,10,70,'■下跌反转:'+NUMTOSTR(FZ,2)),colorFFFFFF;
VAR1:=CLOSE>ref(CLOSE,1) AND CLOSE>ref(CLOSE,2);
VAR2:=ref(VAR1,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR3:=ref(VAR2,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR4:=ref(VAR3,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR5:=ref(VAR4,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2); {文章来至程序化交易网 cxh99.com}
VAR6:=ref(VAR5,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR7:=ref(VAR6,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR8:=ref(VAR7,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR9:=ref(VAR8,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VARA:=ref(VAR9,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VARB:=ref(VARA,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VARC:=ref(VARB,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VARD:=CLOSE<ref(CLOSE,1) AND CLOSE<ref(CLOSE,2);
VARE:=ref(VARD,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VARF:=ref(VARE,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR10:=ref(VARF,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR11:=ref(VAR10,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR12:=ref(VAR11,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR13:=ref(VAR12,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR14:=ref(VAR13,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR15:=ref(VAR14,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR16:=ref(VAR15,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR17:=ref(VAR16,1) AND CLOSE<=ref(CLOSE,1) AND CLOSE>=ref(CLOSE,2);
VAR18:=ref(VAR17,1) AND CLOSE>=ref(CLOSE,1) AND CLOSE<=ref(CLOSE,2);
VAR19:=(ref(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,1)) AND VAR1;
STICKLINE(VAR19,LOW,LOW*0.98,8,0),colorFFFF;
VAR1A:=(ref(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,1)) AND VARD;
STICKLINE(VAR1A,HIGH*1.01,HIGH,8,0),colorFF00;
AA角:=ATAN((AA/ref(AA,1)-1)*100)*180/3.1416;
BB角:=ATAN((BB/ref(BB,1)-1)*100)*180/3.1416;
CC角:=ATAN((CC/ref(CC,1)-1)*100)*180/3.1416;
DD角:=ATAN((DD/ref(DD,1)-1)*100)*180/3.1416;
EE角:=ATAN((EE/ref(EE,1)-1)*100)*180/3.1416;
DRAWTEXTEX(CLOSE,0,10,85,'■AA角:'+NUMTOSTR(AA角,2)),colorFF;
DRAWTEXTEX(CLOSE,0,10,100,'■BB角:'+NUMTOSTR(BB角,2)),colorFFFFFF;
{}
DRAWTEXTEX(CLOSE,0,10,115,'■CC角:'+NUMTOSTR(CC角,2)),colorFF0000;
DRAWTEXTEX(CLOSE,0,10,130,'■DD角:'+NUMTOSTR(DD角,2)),colorFF00FF;
DRAWTEXTEX(CLOSE,0,10,145,'■EE角:'+NUMTOSTR(EE角,2)),colorFFFF;
P:=SYSPARAM(1);
N:=IF(P=DATACOUNT,IF(DATACOUNT>120,120,DATACOUNT),DATACOUNT-P+1);
C_B2:=AMOUNT/VOL/100;
C_B3:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
C_B4:=SUM(AMOUNT,N)/C_B2/100;
CYC:=DMA(C_B3,VOL/C_B4);
成本:=CYC[SYSPARAM(3)];
PARTLINE(CLOSE,成本),LINEDOT,colorFFFF;
DRAWTEXTEX(CLOSE>0,1,1,0,'统计:'+NUMTOSTR(N,0)+'
天的平均成本 = '+NUMTOSTR(成本,2)+'元'),colorFFFF;
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容