主图黑马操盘
-
相关简介:C/C++ Code 复制内容到剪贴板 买线:=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)ANDAAA=1,AA),LINETHICK3,colorFF; PARTL
-
文章来源:择股网作者:股海网发布时间:2009-08-23浏览次数:
C/C++ Code复制内容到剪贴板
- 买线:=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);
- 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;
下载链接:( 说明:股海资源如需解压密码的请输入本站域名:www.guhai.com.cn请仔细输入!)
|
上一篇:超级RSI
下一篇:自动测幅--波段幅度侦测工具(飞狐版)