同花顺波浪黄金主图指标公式
2019-05-28 作者:股匠网整理 来源:本站整理
VAR1:=CLOSE>REF(CLOSE1) AND CLOSE>REF(CLOSE2);
VAR2:=REF(VAR11) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR3:=REF(VAR21) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR4:=REF(VAR31) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR5:=REF(VAR41) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR6:=REF(VAR51) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR7:=REF(VAR61) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR8:=REF(VAR71) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR9:=REF(VAR81) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VARA:=REF(VAR91) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VARB:=REF(VARA1) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VARC:=REF(VARB1) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VARD:=CLOSE<REF(CLOSE1) AND CLOSE<REF(CLOSE2);
VARE:=REF(VARD1) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VARF:=REF(VARE1) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR10:=REF(VARF1) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR11:=REF(VAR101) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR12:=REF(VAR111) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR13:=REF(VAR121) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR14:=REF(VAR131) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR15:=REF(VAR141) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR16:=REF(VAR151) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR17:=REF(VAR161) AND CLOSE<=REF(CLOSE1) AND CLOSE>=REF(CLOSE2);
VAR18:=REF(VAR171) AND CLOSE>=REF(CLOSE1) AND CLOSE<=REF(CLOSE2);
VAR19:=REF(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR181) AND VAR1;
STICKLINE(CLOSE>=REF(C1)CLOSEREF(C1)2.81)colorred;
STICKLINE(CLOSE<REF(C1)CLOSEREF(C1)2.80)colorgreen;
STICKLINE(VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18CLOSEREF(CLOSE1)2.80)colorgreen;
STICKLINE(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARCCLOSEREF(CLOSE1)2.80)colorred;
VAR1A:=REF(VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC1) AND VARD;
抬高买:STICKLINE(VAR19REF(CLOSE1)REF(CLOSE2)20)COLOR33AACC;
DRAWTEXT(VAR19REF(CLOSE1)'←高买')COLOR33FFCC;
低损:STICKLINE(VAR1AREF(CLOSE1)REF(CLOSE2)20)colorblue;
DRAWTEXT(VAR1AREF(CLOSE1)'←低损')COLORFF99FF;
DRAWTEXT_FIX(100.010'超跌比高黄托底买进,超买蓝压顶比低卖出。')COLORFFFF00;
ZF:=(C-REF(CBARSLAST(VAR19)))/REF(CBARSLAST(VAR19))*100;
DF:=(C-REF(CBARSLAST(VAR1A)))/REF(CBARSLAST(VAR1A))*100;
LS:=VARD OR VARE OR VARF OR VAR10 OR VAR11 OR VAR12 OR VAR13 OR VAR14 OR VAR15 OR VAR16 OR VAR17 OR VAR18;
HS:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6 OR VAR7 OR VAR8 OR VAR9 OR VARA OR VARB OR VARC;
KK:=LS AND REF(HS1);
KD:=HS AND REF(LS1);
LL:=MIN(CREF(C1));
HH:=MAX(CREF(C1));
DRAWLINE(KKHHKDLL0)colorcyanLINETHICK2;
DRAWLINE(KDLLKKHH0)colormagentaLINETHICK2;
PLOYLINE(VAR19LL)coloryellowLINETHICK2;
PLOYLINE(VAR1AHH)colorblueLINETHICK2;
VAR19JL:=CONST(BARSLAST(VAR19));
VAR1AJL:=CONST(BARSLAST(VAR1A));
STICKLINE(CURRBARSCOUNT<=VAR19JLREF(LLBARSLAST(VAR19))REF(LLBARSLAST(VAR19))120)colorliredLINETHICK2;
STICKLINE(CURRBARSCOUNT<=VAR1AJLREF(HHBARSLAST(VAR1A))REF(HHBARSLAST(VAR1A))120)colorliblueLINETHICK2;
STICKLINE(VAR1AREF(CLOSE1)REF(CLOSE1)801)colorgreenLINETHICK4;
STICKLINE(VAR19REF(CLOSE1)REF(CLOSE1)801)colorredLINETHICK4;
PL:=REF(C1)<REF(C2) AND C>=REF(C1);
DRAWTEXT(PLL'←底')colorred;
PH:=REF(C1)>=REF(C2) AND C<REF(C1);
DRAWTEXT(PHC+0.1'←顶')colorgreen;
GET:ZIG(35)coloryellow;
PL5:=ZIG(35);
EN1:=ZIG(35)>REF(ZIG(35)1) AND REF(ZIG(35)1)<=REF(ZIG(35)2) AND REF(ZIG(35)2)<=REF(ZIG(35)3);
EX1:=ZIG(35)<REF(ZIG(35)1) AND REF(ZIG(35)1)>=REF(ZIG(35)2) AND REF(ZIG(35)2)>=REF(ZIG(35)3);
PL10:=ZIG(310);
EN2:=ZIG(310)>REF(ZIG(310)1) AND REF(ZIG(310)1)<=REF(ZIG(310)2) AND REF(ZIG(310)2)<=REF(ZIG(310)3);
EX2:=ZIG(310)<REF(ZIG(310)1) AND REF(ZIG(310)1)>=REF(ZIG(310)2) AND REF(ZIG(310)2)>=REF(ZIG(310)3);
PL20:=ZIG(320);
EN3:=ZIG(320)>REF(ZIG(320)1) AND REF(ZIG(320)1)<=REF(ZIG(320)2) AND REF(ZIG(320)2)<=REF(ZIG(320)3);
EX3:=ZIG(320)<REF(ZIG(320)1) AND REF(ZIG(320)1)>=REF(ZIG(320)2) AND REF(ZIG(320)2)>=REF(ZIG(320)3);
PL40:=ZIG(340);
走强1:=BARSLAST(PL5<REF(PL51));
走弱1:=BARSLAST(PL5>REF(PL51));
走强2:=BARSLAST(PL10<REF(PL101));
走弱2:=BARSLAST(PL10>REF(PL101));
走强3:=BARSLAST(PL20<REF(PL201));
走弱3:=BARSLAST(PL20>REF(PL201));
ZTJZ5:=IF(PL10>REF(PL101)COUNT(EN1走强2)0);
ZTJD5:=IF(PL10>REF(PL101)COUNT(EX1走强2)0);
DTJZ5:=IF(PL10<REF(PL101)COUNT(EN1走弱2)0);
DTJD5:=IF(PL10<REF(PL101)COUNT(EX1走弱2)0);
ZTJZ10:=IF(PL20>REF(PL201)COUNT(EN2走强3)0);
ZTJD10:=IF(PL20>REF(PL201)COUNT(EX2走强3)0);
DTJZ10:=IF(PL20<REF(PL201)COUNT(EN2走弱3)0);
DTJD10:=IF(PL20<REF(PL201)COUNT(EX2走弱3)0);
DRAWTEXT(EN1 AND DTJZ5=1L*0.98'㈠')COLORFFFF00;
DRAWTEXT(EX1 AND DTJD5=2H*1.02'㈡')COLORFFFF00;
DRAWTEXT(EN2 AND ZTJZ5=1L*0.90'㈢买')COLORFFFF00;
DRAWTEXT(EX1 AND PL10>REF(PL101) AND ZTJD5=1H*1.02'⑴')COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL101) AND ZTJZ5=2L*0.98'⑵抬高坚决买')COLOR0000FF;
DRAWTEXT(EX1 AND PL10>REF(PL101) AND ZTJZ5=2H*1.02'⑶高抛')COLOR0000FF;
DRAWTEXT(EN1 AND PL10>REF(PL101) AND ZTJZ5=3L*0.98'⑷回调坚决买')COLOR0000FF;
DRAWTEXT(EX2 AND PL20>REF(PL201) AND ZTJD10=1H*1.02'⑸顶坚决抛')COLOR0000FF;
DRAWTEXT(EN2 AND DTJZ10=1L*0.94'Ⅰ短线')COLORFF6000;
DRAWTEXT(EX2 AND DTJD10=2H*1.06'Ⅱ')COLORFF6000;
DRAWTEXT(EN3 AND ZTJZ10=1L*0.94'Ⅲ买')COLORFF6000;
DRAWTEXT(EX2 AND PL20>REF(PL201) AND ZTJD10=1H*1.06'①卖出')LINETHICK3COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL201) AND ZTJZ10=2L*0.94'②补仓')LINETHICK3COLOR00FFFF;
DRAWTEXT(EX2 AND PL20>REF(PL201) AND ZTJD10=2 OR (ZTJD10=0 OR ZTJD10=2) AND EX2H*1.06'③清仓')LINETHICK3COLOR00FFFF;
DRAWTEXT(EN2 AND PL20>REF(PL201) AND ZTJZ10=3L*0.94'④持股')LINETHICK3COLOR00FFFF;
DRAWTEXT(EN2 AND DTJZ10=1L*0.94'【A】')COLOR00FF00;
DRAWTEXT(EX2 AND DTJD10=2H*1.03'【B】')COLOR00FF00;
DRAWTEXT(EN3 AND ZTJZ10=1L*0.94'【C】')COLOR00FF00;
折线:ZIG(320);
前波峰值:=PEAK(3201);
前波谷值:=TROUGH(3201);
DRAWNUMBER(折线>REF(折线1) AND REF(折线1)<REF(折线2)REF(C1)-(前波峰值-REF(C1))/前波峰值*100);
DRAWNUMBER(折线<REF(折线1) AND REF(折线1)>REF(折线2)REF(C1)(REF(C1)-前波谷值)/前波谷值*100);
上一篇: 同花顺追击主力指标公式
下一篇: 同花顺量价和指标公式