A. 请按照下面指标源码做个选股公式,谢谢!
VOLUME:=VOL;
MA1:=MA(VOLUME,5);
启动:= (MA1+MA1)>VOLUME;
买入:=DYNAINFO(4)>0 AND HHV(HIGH,10)/LLV(LOW,10)<1.25 AND CLOSE>=HHV(HIGH,10)
AND REF(CLOSE,1)<(LLV(LOW,15)+(HHV(HIGH,15)-LLV(LOW,15))*0.85) AND C>O;
选股:(C>REF(HHV(H,3),1) AND (C-REF(C,1))/REF(C,1)>0.07) AND 启动 AND 买入;
B. 主力识别指标源码是什么
主力识别指标源码是:.RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1);D:=SMA(K,3,1);J:=3*K-2*D;J1:=REVERSE(J);AA:=REF(MA(C,1),10)>REF(MA(C,60),10);买点:CROSS(J,J1)AA;STICKLINE(买点,0,30,6,0),COLORBLUE;STICKLINE(买点,30,60,4,0),COLORWHITE;STICKLINE(买点,60,80,2,0),COLORYELLOW;DRAWTEXT(买点,70,´敌军潜入´),COLORRED;{主力进出场}VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);VAR3:=EMA(VAR2,10);VAR4:=LLV(LOW,33);VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORRED,NODRAW;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0),COLORRED;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0),COLOR000055;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.6,0),COLOR000077;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,2.1,0),COLOR000099;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,1.5,0),COLOR0000BB;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.9,0),COLOR0000DD;STICKLINE(VAR5>REF(VAR5,1),0,VAR5,0.3,0),COLOR0000FF;洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLOR005500;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.6,0),COLOR007700;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,2.1,0),COLOR009900;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,1.5,0),COLOR00BB00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.9,0),COLOR00DD00;STICKLINE(VAR5<REF(VAR5,1),0,VAR5,0.3,0),COLOR00FF00;VAR12:=SMA(ABS(VAR1-H),13,1)/SMA(MAX(VAR1-H,0),10,1);VAR13:=EMA(VAR12,10);VAR14:=HHV(H,33);VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);冲顶:IF(VAR15>REF(VAR15,1),VAR15,0),COLORFF00FF,NODRAW;STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLORFF00FF;STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0),COLOR550055;STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.6,0),COLOR770077;STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.1
C. 求大师分享,告诉我这个红绿背景主图是什么指标公式源码。那里可以下载
NA:=STRCAT(CON2STR(YEAR,0),' 年 ');
YA:=STRCAT(CON2STR(MONTH,0),' 月 ');
RA:=STRCAT(CON2STR(DAY,0),' 日 ');
SJ:=STRCAT(STRCAT(NA,YA), RA);
DRAWTEXT_FIX(C>0,0.88,0,0,SJ);
{布林+宝塔+蓝灰操盘}
{蓝灰底}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
STICKLINE(买线>=卖线,HHV(H,60),LLV(L,60),5,0),COLOR000045;
STICKLINE(买线<卖线,HHV(H,60),LLV(L,60),5,0),COLOR004500;
{红轨道}
红轨道:=MA(MA(CLOSE,3),1),LINETHICK1,COLORYELLOW;
轨道:MA(MA(CLOSE,3),3),COLOR32CD32,LINETHICK2;
SHENG:=IF(红轨道>=轨道,轨道,DRAWNULL);
升:SHENG,COLORMAGENTA,LINETHICK2;
{变色K线}
N1:=14;
M:=6;
TR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N1);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N1);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N1);
PDI:=DMP*100/TR1,LINETHICK2;
MDI:=DMM*100/TR1;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M);
ADXR:=EXPMEMA(ADX,M);
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);
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC,CLOSE,REF(CLOSE,1),3,1),COLOR0000FF;
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);
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18,CLOSE,REF(CLOSE,1),3,0),COLORC08000;
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,REF(CLOSE,1),REF(CLOSE,2),3,0),COLORMAGENTA ;
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,REF(CLOSE,1),REF(CLOSE,2),3,0) ,COLOR00FF00; }
{箱体线}
N:=7;
T1:=CONST(LLVBARS(LOW,N));
T1HIGH:=CONST(REF(HIGH,T1));
CC:=CONST(CURRBARSCOUNT);
T2:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T1)) AND (HIGH>T1HIGH)));
T2HIGH:=CONST(REF(HIGH,T2));
T3:=CONST(BARSLAST((CURRBARSCOUNT >(CC+T2)) AND (HIGH>T2HIGH)));
T3HIGH:=CONST(REF(HIGH,T3));
突破杀入线:DRAWLINE(CURRBARSCOUNT=T3+1, T3HIGH, ISLASTBAR, T3HIGH, 1),LINETHICK1,COLORYELLOW;
DRAWTEXT(ISLASTBAR, T3HIGH, '杀入线!'),LINETHICK1,COLORYELLOW;
AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
BA:=EMA(AB,5);
A1{高}:=REFDATE(REF(HHV(H,96),5),DATE);
B1{低}:=REFDATE(REF(LLV(L,96),5),DATE);
DY{中}:=((A1)+(B1))/2;
箱顶:IF(AB>0 AND AB-BA<=0,A1,A1),COLORGREEN,DOTLINE;
箱腰:IF(AB>0 AND AB-BA<=0,DY,DY),COLORYELLOW,DOTLINE;
箱低:IF(AB>0 AND AB-BA<=0,B1,B1),COLORRED,DOTLINE;
DRAWTEXT(ISLASTBAR,箱顶,'箱顶'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱腰,'箱腰'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,箱低,'箱低'),COLORYELLOW;
VARAA:=IF(CLOSE>150,91.3,0.913);
{突破:INTPART(CLOSE/VARAA )*VARAA,POINTDOT,LINETHICK4,COLORRED;
再突破:突破+VARAA,POINTDOT,LINETHICK4,COLOR00FF00 ;
回踩:(突破+再突破)/2,POINTDOT,COLORWHITE,LINETHICK4;}
STICKLINE(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱低,箱腰,0.1,-1),COLORRED;
STICKLINE(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱顶,箱腰,0.1,-1),COLORGREEN;
DRAWICON(CROSS(ZIG(3,5),REF(ZIG(3,5),1)),箱腰,1);
DRAWICON(CROSS(REF(ZIG(3,5),1),ZIG(3,5)),箱腰,2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.01,0,'K线底部出红色或粉色,可低吸建仓!'),COLORRED;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.05,0,'绿点表示长期的压力点!'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.10,0,'白点表示中短期的压力和支撑点,'),COLORGREEN;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.02,0.16,0,'红点表示有效支撑或突破长中短期压力点!股价向下跌破,原则清仓!'),COLORGREEN;
EE:=(H+L+O+2*C)/5;
CRTP:=EE+(H-L);
CRZL:=2*EE-L;
CRZC:=2*EE-H;
CRFZ:=EE-(H-L);
高:CONST(CRTP),COLORRED;
阻:CONST(CRZL),COLORC7C9FF;
支:CONST(CRZC),COLOR7C9CFF;
反:CONST(CRFZ),COLORDD00DD;
DRAWTEXT(ISLASTBAR, 反, '反转价'),LINETHICK1,COLORDD00DD;
DRAWTEXT(ISLASTBAR, 支, '支撑'),LINETHICK1,COLOR7C9CFF;
DRAWTEXT(ISLASTBAR, 阻, '阻力'),LINETHICK1,COLORC7C9FF;
DRAWTEXT(ISLASTBAR, 高, ' 高破线'),LINETHICK1,COLORGREEN;
均线:=EXPMA(C,12),COLORGRAY,LINETHICK2;
日:=50;
昨前:=3;
高2:=REF(HHV(H,日),昨前);
低2:=REF(LLV(L,日),昨前);
H4:=高2-(高2-低2)*0.618;
H5:=高2-(高2-低2)*0.809;
支撑80.9%:REFDATE(H5,DATE),COLORRED;
支撑61.8%:REFDATE(H4,DATE),COLORGREEN,;
STICKLINE(CURRBARSCOUNT=1,支撑80.9%,支撑80.9%,300,-1),COLORGREEN;
STICKLINE(CURRBARSCOUNT=1,支撑61.8%,支撑61.8%,300,-1),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND 支撑80.9%,支撑80.9%,'备钱'),COLORGREEN;
DRAWTEXT(CURRBARSCOUNT=1 AND 支撑61.8%,支撑61.8%,'转运'),COLORRED;
WH1:=IF(L=LLV(L,9),L,0);
WH2:=CONST(BARSLAST(WH1!=0));
WH3:=CONST(IF(WH2=0,H,REF(H,WH2)));
WH4:=CONST(REF(BARSLAST(H>WH3),WH2+1)+WH2+1);
WH5:=CONST(IF(WH4=0,H,REF(H,WH4)));
WH6:=CONST(REF(BARSLAST(H>WH5),WH4+1)+WH4+1);
WH7:IF(CURRBARSCOUNT<=WH2+10,CONST(IF(WH6=0,H,REF(H,WH6))),DRAWNULL),COLORRED,DOTLINE;
STICKLINE(CURRBARSCOUNT<=WH2+1 AND L=LLV(L,9),O,C,3,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=WH2+10,WH7,'LINE'),COLORRED;
DRAWTEXT(ISLASTBAR,WH7,'进场'),COLORRED;
WH8:IF(CURRBARSCOUNT<=WH2+1,IF(L=LLV(L,9),L,DRAWNULL),DRAWNULL),CIRCLEDOT;
H81:=IF(H=HHV(H,9),H,DRAWNULL);
H82:=CONST(BARSLAST(H81!=DRAWNULL));
H83:=CONST(IF(H82=0,L,REF(L,H82)));
H84:=CONST(REF(BARSLAST(L<H83),H82+1)+H82+1);
H85:=CONST(IF(H84=0,L,REF(L,H84)));
H86:=CONST(REF(BARSLAST(L<H85),H84+1)+H84+1);
H87:=IF(CURRBARSCOUNT<=H82+10,CONST(IF(H86=0,L,REF(L,H86))),DRAWNULL),DOTLINE;
H88:=IF(CURRBARSCOUNT<=H82+1,IF(H=HHV(H,9),H,DRAWNULL),DRAWNULL),CIRCLEDOT;
DRAWTEXT(CURRBARSCOUNT=H82+10,H87,'LINE'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,H87,'止损'),COLORYELLOW;
DIF:=EMA(DCLOSE,12)-EMA(DCLOSE,26);
DEA:=EMA(DIF,9);
AAA:=(DIF-DEA)*2*60;
起爆:=CROSS(AAA-REF(AAA,1),15);
DRAWTEXT(起爆,MA(L,3),'↖暴张'),COLORYELLOW,LINETHICK2;
LC:=REF((O+H+L+2*C)/5,1);
{短线擒黑码}
RSI:=SMA(MAX(C-LC,0),7,1)/SMA(ABS(C-LC),7,1)*10;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,23))/(0.015*AVEDEV(TYP,23));
买:=CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),COLORRED;
DRAWTEXT(CROSS(RSI,7.1) AND MA(V,5)>MA(V,10),MA(L,3),'↖◆短线擒黑码◆'),COLORWHITE;
DRAWICON(买,MA(L,3),17);
卖:=CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),COLORGREEN;
DRAWTEXT(CROSS(7.1,RSI) AND MA(V,10)>MA(V,5),箱顶,'■■逃跑■■'),COLORGREEN;
DRAWICON(卖,MA(H,3),28);
{绝密买点}
A81:=EMA(C,3),COLORWHITE;
A82:=EMA(C,5),COLORYELLOW;
A83:=EMA(C,7),COLORMAGENTA;
A84:=EMA(C,12),COLORGREEN;
A85:=EMA(C,20),COLORRED;
A86:=EMA(C,50),COLORBLUE,LINETHICK2;
SS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 ;
SSS8:=CROSS(A81,A85) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018;
DRAWICON(SS8 ,MA(L,3),5);
DRAWTEXT(SS8,MA(L,3),'↖绝密买点'),COLORYELLOW;
ZYX1:="DMI.PDI"(12,6);
ZYX2:="DMI.MDI"(12,6);
ZYX3:=ZYX1>65 AND ZYX1>REF(ZYX1,1);
ZYX4:=LLV(ZYX1,0);
ZYX5:=BARSLAST(ZYX4=ZYX1);
ZYX6:=(0-REF(ZYX2,4))/(ZYX4-REF(ZYX2,ZYX5))>2;
ZYX7:=ZYX1>REF(ZYX1,1);
ZYX8:=VOL>2*MA(VOL,30);
ZYX9:="DMI.ADX"(12,6);
ZYXA:="DMI.ADXR"(12,6);
ZYXB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
ZYXC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
ZYXD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
{ZYXE:=0-"MACD.DIFF"(7,21,3);}
ZYXF:=TROUGHBARS(3,15,1)<4;
ZYX10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
ZYX11:=IF(ZYXF=1,50,0);
ZYX12:=CROSS(ZYX2,ZYX1) AND CROSS(ZYXA,ZYX9);
ZYX13:=CROSS(ZYX2,ZYX1) AND CROSS(ZYX9,ZYXA);
ZYX14:=ZYXB AND ZYXC AND ZYXD AND ZYX10 AND ZYX6 AND ZYX7 AND ZYX8*50;
ZYX15:=BARSLAST(CROSS(ZYX2,ZYX1)=1);
ZYX16:=BARSLAST(CROSS(ZYX1,ZYX2)=1);
ZYX17:=HHV(ZYX1,ZYX16);
ZYX18:=BARSLAST(ZYX1=ZYX17);
{STICKLINE(FILTER(ZYXF=1,5),50,0,10,0),COLORRED;}
ZYX19:=ZYX3 OR ZYX12 OR ZYX13*100;
ZYX1A:=ZYX13*100;
DRAWICON(FILTER(ZYXF=1,3),MA(L,3),23);
DRAWTEXT(FILTER(ZYXF=1,3),箱低,'■■铁底■■'),COLORGREEN;
{量能平台}
ND:=10;
PTD:=CONST(LLVBARS(V,ND));
TDPX:IF(CURRBARSCOUNT<=ND,CONST(IF(PTD=0,O,REF(O,PTD))),DRAWNULL),COLORFF0000;
IF(CURRBARSCOUNT=PTD+1,TDPX,DRAWNULL),CIRCLEDOT,COLORFF0000,LINETHICK2;
DRAWTEXT(ISLASTBAR,TDPX,' 【地平线】'),COLORFF0000;
G21:=30;
T112:=CONST(HHVBARS(V,G21));
T122:=IF(CURRBARSCOUNT<=G21+7,CONST(IF(T112=0,H,REF(H,T112))),DRAWNULL);
T122A:=IF(CURRBARSCOUNT=T112+1,T122,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,T122,'30天量能平台'),COLORWHITE;
W10:=10;
TW1:=CONST(HHVBARS(V,W10));
TW0:=IF(CURRBARSCOUNT<=W10+7,CONST(IF(TW1=0,C,REF(C,TW1))),DRAWNULL);
TW0A:=IF(CURRBARSCOUNT=TW1+1,TW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,TW0,'10量能平台'),COLORWHITE;
W20:=20;
TW20:=CONST(HHVBARS(V,W20));
TW22:=IF(CURRBARSCOUNT<=W20+7,CONST(IF(TW20=0,C,REF(C,TW20))),DRAWNULL);
TW22A:=IF(CURRBARSCOUNT=TW20+1,TW22,DRAWNULL),COLORWHITE;
DRAWTEXT(ISLASTBAR,TW22,'20量能平台'),COLORWHITE;
MW:=10;
MW1:=CONST(LLVBARS(V,MW));
MW0:=IF(CURRBARSCOUNT<=MW+7,CONST(IF(MW1=0,O,REF(O,MW1))),DRAWNULL);
MW0A:=IF(CURRBARSCOUNT=MW1+1,MW0,DRAWNULL),CIRCLEDOT,COLORWHITE;
DRAWTEXT(ISLASTBAR,MW0,'地量反弹量能平台'),COLORWHITE;
{N1:=18;N2:=36;N3:=55;}
EM1:=EMA(C,18),NODRAW;
EM2:=EMA(C,36),COLORRED;
EM3:=EMA(C,55),COLORGREEN;
TJ8:=BETWEEN(EM2,EM1,EM3);
{DRAWICON(TJ8=0,L,14);}
B18:='<-----------------财富平台';
DRAWTEXT(VOL=HHV(VOL,20),C ,B18),COLORRED;
{超跌反弹}
RSV:=(CLOSE-LLV(LOW,11))/(HHV(HIGH,11)-LLV(LOW,11))*100;
短期底部:=LLV(OPEN,30);
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=(3*K-2*D),LINETHICK2;
D2:=SMA(J,3,1)*0.82;
D. 股市当中有哪些好用的指标,带源码的
指标不是万能的,不是万能钥匙,灵丹妙药,指标五花八门,林林总总,不计其数。每一类指标只能反映股票运行规律的一个侧面。
我自以为是的适合自己的好用的主图指标如下:
DRAWKLINE(H,O,L,C);
涨停1:=(C/REF(C,1))>=1.095 AND (C/REF(C,1))<=1.105;
STICKLINE(涨停1,O,C,4,0),COLORYELLOW;
涨停2:=(C/REF(C,1))>1.105 AND (C/REF(C,1))<=1.195;
STICKLINE(涨停2,O,C,4,0),COLORLIRED;
涨停3:=(C/REF(C,1))>1.195 ;
STICKLINE(涨停3,O,C,4,0),COLORMAGENTA;
EXPMA17:EXPMEMA(C,17)COLORMAGENTA LINETHICK2;
MA55:MA(C,55) COLORWHITE;
MA89:MA(C,89)COLORYELLOW ;
MA144:MA(C,144) COLORRED LINETHICK2;
CCL:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DDL:=DMA(CLOSE,CCL);
上:=(1+7/100)*DDL,DOTLINE,COLORGREEN;
下:=(1-7/100)*DDL,DOTLINE,COLORGREEN;
中:=(上+下)/2,DOTLINE,COLORGREEN;
上上:=EMA(上,181),DOTLINE,COLORRED;
下下:=EMA(下,181),DOTLINE,COLORRED;
中中:=EMA(中,181),DOTLINE,COLORRED;
DRAWICON(上>=上上,上上,17);
主十增仓:10*WINNER(CLOSE*0.9)*8,NODRAW COLORYELLOW;
十换手:SUM(VOL/CAPITAL*100,10),NODRAW COLORWHITE;
ER:=V/FINANCE(7)*100;
MAXCYC:=DMA((C+O)/2,ER/TMA(ER,(1-ER),1));
T1T:=BARSLAST(C>MAXCYC*POW(1.1,0.9));
T2T:=BARSLAST(C<maxcyc*pow(1.1,-0.9)); p=""> </maxcyc*pow(1.1,-0.9));>
T3T:=CROSS(T1T,T2T) OR CROSS(T2T,T1T) OR BARSSINCE(T1T+1)=0 OR BARSSINCE(T2T+1)=0 OR BARSCOUNT(C)=0;
T4T:=REF(MAXCYC,BARSLAST(T3T));
主力盈利:LN(C/T4T)/LN(1.1)*10,NODRAW;
{盈利天:BARSLASTCOUNT(主力盈利>0) COLORMAGENTA,NODRAW;}
获利比例:WINNER(CLOSE)*100,NODRAW;
DRAWICON(获利比例>0 AND 获利比例<=2,L*0.98,9);
DRAWICON(获利比例>2 AND 获利比例<=5,L*0.98,23);
P1:=90;
AO:=P1+(100-P1)/2;
BO:=(100-P1)/2;
CCO:=COST(AO);
DDO:=COST(BO);
筹码集中度:(CCO-DDO)/(CCO+DDO)*100/2,COLORRED,NODRAW;
DRAWICON(获利比例>80 AND 筹码集中度<10,L*0.98,25);
翻倍:=REFDATE(REF(LLV(LOW,90),3),DATE)=LOW AND (CLOSE-LOW>0-CLOSE OR OPEN-LOW>CLOSE-OPEN);
STICKLINE(翻倍,H,H*1.2,2,0),COLORLIRED;
DRAWTEXT(翻倍,H*1.2,'机会来了'),COLORYELLOW;
DRAWTEXT(翻倍,H*1.15,'坚决持有'),COLORCYAN;
DRAWTEXT(翻倍,H*1.1,'后市暴涨'),COLORMAGENTA;
N:=1.5;
M:=3;
DIFF:=EMA((EMA(CLOSE,N*12)-EMA(CLOSE,N*26))/EMA(CLOSE,N*26)*1000,M);
DEAF:=EMA(DIFF,N*9),COLOR000088;
加仓:IF(DIFF>=REF(DIFF,1) AND DEAF<ref(deaf,1),diff,drawnull),colorlired,nodraw; p=""> </ref(deaf,1),diff,drawnull),colorlired,nodraw;>
短线出局:=IF(DIFF REF(DEAF,1),DIFF,DRAWNULL),NODRAW;
STICKLINE(加仓 ,C,C*1.0015,8,0),COLORYELLOW;
在告诉你答案之前,先简短的讲讲我的经历吧!十多年前,我是世界500强企业的一名职员。通过自学,考试后现在转行为证券公司的一名投顾。在我转行之前也是到处找资料学习。相关的书籍啊,指标啊等等,但掌握了一些基础知识后发现即使学会了这些东西还是远远不能在这个市场上生存的。通过认真思考我发现,如果做投资没有自己的交易体系,那是很危险的一件事。在自己的交易体系建立之前,我做过外汇,做过权证,做过商品期货,做过期权,当然也有股票。现在从业了,所以也就只是做做股票的模拟盘。所以对于指标类的东西还是有所发言权的。言归正传,下面来回答一下你的问题吧!
1.如果你真的想在这个投资市场上畅意的行走,你首先应该建立自己的交易体系。
2.在你建立交易体系之后,我现在正式回答你的问题。正常情况下,你只需要认真研究系统默认的几个指标就可以了,K线,均线,量,KDJ,MACD就这几个,其它杂乱的指标都是通过这几个基础指标编辑演变而成的,因为是手机截图,所以这里截了两个图,如果需要操盘,建议最好是用电脑。
3.K线,K线就是红绿柱,他代表最高价,最低价,开盘价和收盘价。在这里我就不详细赘述了。
4.均线,均线分日,月,周,季,年均线等。那要看你是什么周期,比如日均线m5就是五天内的平均价,也就是五日均线。M10就是十天均线等等。
5.量,量就比较复杂一点,常常需要配合其他指标使用,它代表成交量或成交额。周期也是和均线一样。
6.MACD和KDJ,同样需要结合周期来使用,最常见的就是金叉和死叉,但是也需要结合市场环境来看。
给大家一个去掉不适合自己参与的过滤选股器吧,懂代码的可以自己修改,不懂得那就直接用,有几个参数最好自己做一下修改,比如,股价,交易密度,等等。
它的功能是选出适合自己的带有涨停板的活跃股,他不是操作的依据,只是帮你过滤掉那些不适合参与的股票,每天盘后下载数据,复盘选股,他不适合最预警,只适合复盘高效选股。
仅供参考(通达信使用者)
公式名称:去掉无效选股
参数:N=2:2000:60(周期数)
N1=1:200:3(涨停板个数)
SS=2:2000:50(股价)
NN=2:30:15(交易密度)
ENTERLONG:=CROSS(MA(CLOSE,5),MA(CLOSE,20));{这是一个均线自动交易代码暂时先保存着以备后用}
EXITLONG:=CROSS(MA(CLOSE,5),MA(CLOSE,3));{这是一个均线自动交易代码暂时先保存着以备后用}
ZTTJ1:=(CLOSE>=ZTPRICE(REF(CLOSE,1),0.1));
ZTTJ:=(CLOSE>=ZTPRICE(REF(CLOSE,1),IF(FINANCE(3)=3,0.2,0.1)));
ZTTM:=COUNT(ZTTJ,N)>=N1;
AR2:=EVERY(ZTTJ,2);
AR3:=COUNT(AR2,60)>=1;
RZ1:=INBLOCK('壳资源')=0; RZ2:=INBLOCK('商誉减值')=0; RZ4:=INBLOCK('风险品种')=0;
RZ6:=INBLOCK('细分龙头')=1; RZ7:=INBLOCK('已高送转')=0;
{通达信去掉创业板*ST} S1:=IF(CODELIKE(馄'),1,0);
{通达信去掉退市股}{去掉不需要的板块}{通达信去掉*、S、ST}
S2:=IF(NAMELIKE('S'),0,1); S3:=IF(NAMELIKE('*'),0,1);
{通达信去掉停牌}
S4:=DYNAINFO(17)>0;
S5:= BETWEEN(FINANCE(7)/10000000,1,400) AND FINANCE(7)*C/100000000<360 AND C<ss p="" ;
{去掉融券融资 AND S6}
S6:=FINANCE(52)=0;
S7:=IF(CODELIKE(鬈'),0,1);{通达信去掉科创板}
S10:=FINANCE(30)>=-5;
S12:=DYNAINFO(39)<500;
S13:=SUM(DYNAINFO(37),20)>0.2;
S14:=FINANCE(30)/FINANCE(20)*100>-50;
ST:S2 AND S3 AND S4 AND S7 AND RZ4 AND S13 AND ZTTM AND C<ss;{and p="" s1}
AA1:=C/REF(C,1)>1.03 AND C<ss p="" s7;{强势选股}
AB1:=FROMOPEN*NN;
AB2:=DYNAINFO(50)>AB1;
S11:=IF(AB2,AA1,DRAWNULL);
大家好,给大家分享一个监测庄家动向的指标——猎庄擒牛。指标通过对庄家资金的监测,可以捕捉到庄家何时进场拉升,何时出货离场。洞察到庄家的这些动向之后,散户猎庄擒牛并不只是说说而已。
“猎庄擒牛”指标要点:
一、指标提示“庄家出现”信号时,表明监测到此处有庄家大资金进场,行情即将开启拉升,可跟进建仓。
二、指标提示“庄家出货”信号时,表明监测到此处庄家在进行筹码派发,应果断止盈离场,落袋为安。
效果图:
“猎庄擒牛”主要作用就是对庄家大资金动向的监测,从而给出预警信号。当然指标还有其它关于筹码和趋势的信号判断,这里就不做过多讲解,大家拿到后可以去慢慢摸索。
大道至简,简单有效不要复杂。股市中最有效的技术指标就是那些最贴近市场本质的数据跟踪指标,我最常用的就是K线,均线,MACD和量能及均量线,够用了。
在一个多变复杂的市场中,越简单反而才是越有效,过于复杂的技术工具适应能力太差。
通达信精准指标——趋势布林线主图+神针起爆副图+源码 给大家分享一个趋势布林线主图,搭配神针起爆副图,适用于短线和中长线,是基于系统布林线而研发的,比系统自带的更加精准。 主图当出现红色箭头为建仓信号,当出现绿色箭头为减仓或者平仓信号。 副图红色趋势为上升趋势,绿色趋势为下跌趋势,红色趋势变为绿色交叉点为减仓信号。 绿色趋势变为红色为建仓信号,出现神针起爆红柱可作为启动点和建仓点。
主副图点位一一对应,产生共振。 源码
这套指标主要利用主副图共振点来进行操作,精准率很高,喜欢的朋友可以关注我的首页,留言指标二字,我会免费分享给大家。
好用的公式有很多,但是适合自己才行!今天我分享几个我自己经常用的公式分享给大家!
擒牛大中短
这个公式主要就是抓买卖点的指标,不含未来函数,可以放心操作!
主力波段吸筹该公式是精准判断操作位置,依然没有未来函数!
其次,如果大家想炒股,先学习一些基本的炒股知识,并且少量投入,切不可一梭哈。不要迷信技术指标,所谓的指标都是事后才出来的,有精力的可以去看看指标编程,无非都出自于成交量、成交额、均线等等,所以都是滞后的。简单的K线、成交量、2条均线,辅助参考判断即可。技术指标越复杂,越难以付诸实施。
所以,还请大家不要迷恋技术指标,我曾经花了1年多的时间研究、编写各种技术指标,到现在,我已经放弃了,只留了交易软件里面最原始的指标,做辅助判断而已,记住只是辅助判断。还请大家不要走弯路,一入股市深似海,到处都是坑,切记!!!
这个我认为因人而异,毕竟适合自己的指标才是好指标。这里我们来分享下我常用的指标
第一,均线,均线是时候非常实用的指标,无论是短线,中线,长线都非常实用。
(1)如果是短线,5日均线就够了。5日均线比较神奇。
①当K线从5日均线下方上穿5日均线,而且均线开始拐头,结合量能,底部放量,那么短线就可以把我了,而且是超短机会。基本都有不错的收益。
②当市场均线多头排列,只要K线在5日均线上方,沿着5日均线上行,那么也是一个持仓的机会。
(2)中线,中线一般就是看20日均线,这个均线比较实用,也称为万能均线,只要K线站稳在20日均线上方,而且拐头向上,结合筹码,筹码低位单峰,中线就可以把握。
(3)长线,长线就是60日均线上穿120日均线,而且趋势上行。
第二,MACD,领略到精髓,赚钱非常简单。
1、 MACD在0轴上方——每发生一次金叉,股价将创新高,但是二次金叉不要追。2、 MACD在0轴下方——每发生一次死叉,股价将创新低新低后可以适当的补仓。3, MACD在0轴上方——金叉死叉次数越多越好、牛股,4,, MACD在0轴下方——金叉死叉次数越多越差、熊股。5,MACD水下两次金叉,第二次金叉就是买入机会。6.MACD的黄白两线不能和柱状形成背离,背离则会产生行情反转。
好了我就分享了我常用的这两个希望对大家有帮助。
如果想听实话,我就告诉你。最好用的指标是:K线、成交量(手)、均线和MACD。其它指标都可以忽略。
你进入丛林,容易绕花眼睛,七选八选-选个漏眼。其实最显眼的就是最好的。
E. 请大神把下面的源码改成通达信主图指标,跪谢!
MA7:MA(CLOSE,7),COLORFFFFFF,LINETHICK1;
MA15:EMA(C,15),LINETHICK1,COLORYELLOW;
MA18:=EMA(CLOSE,18),COLORGREEN;
买线:=ZIG(3,10);
卖线:=MA(买线,3);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L*0.99,'买'),LINETHICK1,COLOR00AAFF;
DRAWTEXT(SEL,H*1.01,'卖'),LINETHICK1,COLOR00FF00;
DRAWTEXT('X09A.T'>0,L*0.99,'B'),LINETHICK1,COLORFFFFFF;
DRAWTEXT('X09A.T1'>0,L*0.99,'B'),LINETHICK1,COLOR0000FF;
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLOR0000CC;
STICKLINE(买线>=卖线,CLOSE,OPEN,7,0),COLOR0000CC;
STICKLINE(买线<卖线,CLOSE,OPEN,7,0),COLORCCCC00;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORCCCC00;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,7,0),COLOR00AAFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,7,0),COLOR00DD00;
由于
DRAWTEXT('X09A.T'>0,L*0.99,'B'),LINETHICK1,COLORFFFFFF;
DRAWTEXT('X09A.T1'>0,L*0.99,'B'),LINETHICK1,COLOR0000FF;
这段引入了另外公式X09A.T1和 X09A.T ,你必须新建另外这两个公式才可以,否则,无法正常显示。
F. 秒杀一切妖股指标公式源码是什么
如下:
{百底公式1}
{AB:=EMA(((2*C+H+L)/4-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100,8);
BA:=EMA(AB,5);
顶1:=REFDATE(REF(HHV(H,100),5),DATE);
底1:=REFDATE(REF(LLV(L,100),5),DATE);
中1:=((顶1)+(底1))/2;
顶:IF(AB>0 AND AB-BA<=0,顶1,顶1),COLOR00FF00;
中:IF(AB>0 AND AB-BA<=0,中1,中1),COLORWHITE;
底:IF(AB>0 AND AB-BA<=0,底1,底1),COLORYELLOW;
DRAWTEXT(ISLASTBAR,(顶),STRCAT('',CON2STR(顶,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(中),STRCAT('',CON2STR(中,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(底),STRCAT('',CON2STR(底,2))),COLORWHITE;
{百底公式2}
N:100 NODRAW ;
高:IF(CURRBARSCOUNT<=N,CONST(HHV(H,N)),DRAWNULL),COLORGREEN ;
低:IF(CURRBARSCOUNT<=N,CONST(LLV(L,N)),DRAWNULL),COLORYELLOW;
NOTEXT中:低+(高-低)/2 COLORWHITE;
{涨幅:(C-低)/低*100 NODRAW COLORFF00FF;}
涨幅:((C-低)/(高-低))*100 NODRAW COLORFF00FF;
涨天数:LLVBARS(L,100)COLORWHITE NODRAW;
{跌幅:((C-高)/高)*100 NODRAW COLORD9D919;};
跌幅:((C-高)/(高-低))*100 NODRAW COLORD9D919;
跌天数:HHVBARS(H,100)COLORWHITE NODRAW;
DRAWTEXT(ISLASTBAR,(高-(高-低)/50),STRCAT('',CON2STR(高-(高-低)/50,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(NOTEXT中),STRCAT('',CON2STR(NOTEXT中,2))),COLORWHITE;
DRAWTEXT(ISLASTBAR,(低),STRCAT('',CON2STR(低,2))),COLORWHITE;
MA5:MA(C,5),COLORYELLOW;
NOTEXT5:IF((C<=MA5 OR MA5<=REF(MA5,1)),MA5,DRAWNULL),COLORFFFF00;
振幅:((高-低)/低)*100 NODRAW COLORGREEN;
均周月:INBLOCK('均周')AND INBLOCK('均月') COLORWHITE NODRAW;
逃周月:INBLOCK('逃周')AND INBLOCK('逃月')NODRAW COLORYELLOW;
{VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.01,'高抛'),COLORFFFFFF;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 100),5);
AK:=EMA((((CLOSE - VAR1) / (VAR2 - VAR1)) * 50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB = 1),(LOW * 0.99),'低吸'),COLORYELLOW;};
{百底距:=((C-低)/低)*100;
XG1:=BETWEEN(C,低,低*(1+0.03));
盘整天:BARSLASTCOUNT(XG1)NODRAW COLORYELLOW;}
{上涨值:=MA((H+REF(L,1))/2,3);
买进高点:=MA((H+REF(H,1))/2,3);
VAR1:=((O+H+L+2*C)/5)*2-L;
突破买入值:=MA(VAR1,3);{LSS轴点突破买入值}
{下跌值:=MA((REF(H,1)+L)/2,3);
卖出低点:=MA((REF(L,1)+L)/2,3);
VAR2:=((O+H+L+2*C)/5)*2-H;
突破卖出值:=MA(VAR2,3);
次日卖出点:=(上涨值+买进高点+突破买入值+H)/4;
次日买入点:=(下跌值+卖出低点+突破卖出值+L)/4;
均价:=(2*C+L+H/4);
买入价:IF(均价/REF(均价,1)>1,次日买入点*1.01,次日买入点)COLORWHITE NODRAW;
次低价:IF(均价/REF(均价,1)>1,次日买入点/1.0382,次日买入点)NODRAW COLORYELLOW;
卖出价:IF(均价/REF(均价,1)>1,次日卖出点*1.0191,次日卖出点)NODRAW;
必卖价:IF(均价/REF(均价,1)>1,次日卖出点*1.05,次日卖出点)COLORD9D919 NODRAW;}
{AC:=REF(C,1);
涨停K线:=IF((C-AC)*100/AC>=(10-0.01*100/AC),1,0);
跌停K线:=IF((AC-C)*100/AC>=(10-0.01*100/AC),1,0);
STICKLINE(涨停K线,OPEN,CLOSE,2.5,0),COLORYELLOW;
STICKLINE(跌停K线,OPEN,CLOSE,2.5,0),COLORED9564;}
{涨停颜色粉色,完美区分20%10%5%,创业板20200823前10%照样变色}
BK:=IF(INBLOCK('科创板'),0.2,IF(INBLOCK('创业板'),0.2,IF(INBLOCK('ST板块'),0.05,0.1)));
XA_1:=IF(DATE<=1200823,1,0);
STICKLINE((C>=ZTPRICE(REF(CLOSE,1),0.1) AND C=H) AND XA_1=1,O,C,3,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(CLOSE,1),0.1) AND C=L) AND XA_1=1,O,C,3,0),COLORED9564;
STICKLINE((C>=ZTPRICE(REF(C,1),BK) AND C=H),C,O,3,0),COLORYELLOW;
STICKLINE((C<=DTPRICE(REF(C,1),BK) AND C=L),C,O,3,0),COLORED9564;
{STICKLINE((H>=ZTPRICE(REF(C,1),BK) AND C<H) OR (H>=ZTPRICE(REF(CLOSE,1),0.1) AND C<H AND XA_1=1),H,MAX(C,O),0.1,0),COLORYELLOW;{涨停后回落}
{STICKLINE((L<=DTPRICE(REF(C,1),BK) AND C>L) OR (L<=DTPRICE(REF(CLOSE,1),0.1) AND C>L AND XA_1=1),L,MIN(C,O),0.1,0),COLORED9564;{跌停后回升}
{Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLORWHITE;}
{DRAWTEXT_FIX(1,0.00,0.00,0,'主题投资:')COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.00,0,EXTERNSTR(0,1))COLORYELLOW;
DRAWTEXT_FIX(1,0.00,0.06,0,'主营业务:')COLORWHITE;
DRAWTEXT_FIX(1,0.06,0.06,0,EXTERNSTR(0,2))COLORWHITE;
DRAWTEXT_FIX(1,0.00,0.12,0,'公司亮点:')COLORYELLOW;
DRAWTEXT_FIX(1,0.06,0.12,0,EXTERNSTR(0,3))COLORYELLOW; }
{流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;}
{涨停统计}
{涨停:=CLOSE/REF(CLOSE,1)>=1.095;
ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);}
{DRAWNUMBER(涨停,HIGH*1.04,ZTCS),COLORYELLOW;}
{GZT1:=STRCAT('共涨停: ',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT('上市: ',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT('距今:',CON2STR(CONST(BARSLAST(涨停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('涨停统计:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.18,0,ZTTJ),COLORWHITE;}。
G. 求助股票源码指标高手!
VAR1:=MA1>MA2;
VAR2:=MA2>MA3;
CON1:=SUM(VAR1,8)=8 AND SUM(VAR2,8)=8;{MA1>MA2 MA2>NA3 持续8个日期以上都满足}
CON2:=O>MA1 AND C>MA1;{并且(开盘价、收盘价)>MA1}
CON3:=C/REF(C,1)>1.07;{涨幅大于1.07}
DRAWTEXT(CON1 AND CON2 AND CON3,LOW,'抢')
1、不知道LZ的MA1、ma2、ma3是什么,所以没有加上去啦。
2、并且(开盘价、收盘价)>MA1--→这个也是连续8天吗?如果也要连续八天实体都在MA1之上,只要加上CON22:=SUM(CON2,8)=8,然后DRAWTEXT里面的CON2改成CON22就可以了。
3、建议抢字输出不要在LOW(如果您是主图叠加的话),因为会遮住的,最好乘以一个比率,例如LOW*0.98,指标也是一门艺术,好的指标起码也要给您好的心情。
H. 求高手将我的这个操盘手指标加上5日线,120日线,250日线,我这个只有10日,20日,60日线,源码如下
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK1,COLORMAGENTA;
MA60:MA(CLOSE,60),LINETHICK1,COLORGREEN;
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
买线:=EMA(C,9);
卖线:=EMA(SLOPE(C,34)*10+C,33);
DRAWTEXT(CROSS(买线,卖线),L-0.5,'←买入'),COLORRED;
DRAWICON(CROSS(买线,卖线),L-0.4,1);
DRAWTEXT(CROSS(卖线,买线),H+0.5,'←卖出'),COLORGREEN;
DRAWICON(CROSS(卖线,买线),H+0.4,2);
STICKLINE(买线>=卖线,LOW,HIGH,0.1,0),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.1,0),COLORCYAN;
STICKLINE(买线<卖线,CLOSE,OPEN,3,1),COLORCYAN;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,1.5,0),COLORCYAN;