以下是飞狐世事如棋主图指标公式源码
飞狐世事如棋主图指标公式源码:
工作线:=MA(CLOSE,1);
线:MA(CLOSE,18)COLORGREEN,LINETHICK2;
强势线:MA(CLOSE,3)COLORRED,LINETHICK2;
TT2:=DMA((((HIGH+LOW)+(CLOSE*2))/4.15),0.9);
TT1:=REF(EMA(TT2,3),1);
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;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
稻壳1:EMA(CLOSE,144),POINTDOT,COLORWHITE;
稻壳2:EMA(C,318);
AA1:=AMOUNT/VOL;
BB1:=L AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100
DD1:=L MA(C,5)*0.921;
EE1:=VOL MA(V,5)*1.5;
FF1:=BB1ANDCC1ANDDD1ANDEE1;
F:=100*(C-REF(C,1))/REF(C,1);
P1:=IF(C REF(O,1)ANDF 0,1,0);
P2:=IF(C REF(O,2)ANDF 0,1,0);
TT3:=P1=0ANDREF(P1,1)=1ANDP2=0ANDREF(P2,1)=1;
TT4:=P1=1ANDREF(P1,1)=0ANDP2=1ANDREF(P2,1)=0;
Z1:=MA(C,13);
ZX:=REF(Z1,13/2+1);
DRAWICON(CROSS(ZX,C),H*1.01,2);
DRAWTEXT(CROSS(工作线,趋势线)ANDJ 55,LOW,'入')COLORWHITE;
DRAWTEXT(CROSS(CLOSE,TT1)ANDJ 55,LOW,'买'),COLORRED;
DRAWTEXT(CROSS(88,RSI),HIGH*1.02,'顶'),COLOR00FFFF;
DRAWTEXT(FF1,L*0.99,'超短'),COLOR00FF00;
STICKLINE(TT3,OPEN,CLOSE,3,0),COLORFF00FF;
STICKLINE(TT4,OPEN,CLOSE,3,0),COLORGREEN;
TT5:=5;
V1:=MA(HIGH,30)*1.15;
V2:=MA(HIGH,3)*1.03;
V3:=MA(LOW,3)*0.97;
V4:=MA(LOW,30)*0.85;
N:=10;
T1:=CONST(HHVBARS(V,N));
T0:IF(CURRBARSCOUNT =N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL);
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;
DRAWTEXT(ISLASTBAR,T0,'平台');
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
TR1:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
DMP:=SUM(IF(((HD 0)AND(HD LD)),HD,0),10);
DMM:=SUM(IF(((LD 0)AND(LD HD)),LD,0),10);
PDI:=((DMP*100)/TR1);
MDI:=((DMM*100)/TR1);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:=(RSI5-WR10);
天缘买:=(AV+NEWVOL);
DRAWTEXT(CROSS(天缘买,0),L*0.95,'天缘买'),COLORFF00FF;
DRAWICON(CROSS(天缘买,-5),L*0.98,1);
{AND天缘买 REF(天缘买,1)};
VAR2:=LLV(LOW,10);
VAR3:=HHV(HIGH,25);
动力线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4);
BUYOK:=FILTER(crOSS(动力线,0.2),20);
SELLOK:=FILTER(CROSS(3.2,动力线),20);
DRAWtext(BUYOK,L*0.98,'小买'),color66AAEE;
DRAWtext(SELLOK,H*1.02,'卖'),colorgreen;
DRAWtext(sum(BUYOK,barslast(sellok)) =2andbuyok,L*0.96,'必买'),colorred;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
:=SMA(RSV2,5,1)+2*STD(CLOSE,37),COLORRED;
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
:=SMA(RSV3,5,1),COLORYELLOW;
Drawtext(CROSS(短线,长线)AND长线 18AND长线 REF(长线,1)ORCROSS(长线,5),l*0.94,'抢钱'),color22FFFF;
抢钱:=if(CROSS(短线,长线)AND长线 18AND长线 REF(长线,1)ORCROSS(长线,5),1,0),colorred;
{三线计算止损价}
StopL:=min(min(ref(l,3),ref(l,2)),ref(l,1));
LongShow:=if(c oand(o-l) =(h-c)*2and(o-l) =(C-O)*1.5,1,0);{长下影阳线}
drawicon(BARSTATUS=2,StopL,12);
Drawtext(BARSTATUS=2,L*0.99,'止n损n'+NumToStr(StopL,2)),colorgreen;
N:=20;
BOLLBB:=15;
P:=2;
MID:MA(CLOSE,N);
UPPER:MID+P*STD(CLOSE,N);
LOWER:MID-P*STD(CLOSE,N);
xg:=(UPPER-LOWER)/MID*100 BOLLBBANDVOL MA(VOL,5)ANDMA(VOL,5) MA(VOL,20);
DRAWTEXT(xg=1ANDVOL/MA(VOL,20) 0.5,LOWER,'缩量收口'),colorred;
STICKLINE(C/REF(C,1) 1.0989,O,C,5,0),colormagenta;
飞狐世事如棋主图指标公式截图