Current location: Home page > Stock software formula > Flying Fox Formula >Article Current location: Flying Fox Formula >Article

Flying fox source code: short line double dragons, five dragons dance

Click: Times Source: Top Financial Writer: Stock Market Sniper -Small +Large

Short line Shuanglong:

The formula features:
Short line operation KDJ combined with band trend.
Overlay the classic RSI, and decide whether to leave or stay.
The trend is as accurate as the zero axis without looking at the ribbon.
Buy and sell, three indicators prompt, will never be cured. What to copy the bottom, grab the rebound, do in the long run, arbitrary.
KDJ is the most commonly used indicator in the short term, which has quick response and strong sense of direction.
 
The secondary drawing is intuitive and simple.
20 years of self use, a map of the world. It's up to you whether it's good or not.
Tongdaxin and other software are also universal as long as the trend line statement is slightly modified, hidden or deleted.
 
 
 
Source code
 
RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100; 
KO:=SMA(RSV,N1,1),Precision1;
DK:=SMA(KO,N2,1),Precision1;
JO:=3*KO-2*DK,Precision1;
FILLRGN(JO>90,JO,90),COLOR20E839;  
FILLRGN(JO<12,JO,12),COLORRED;  
FILLRGN(JO<>90,90,10),COLOR000000;
DRAWBAND(90,0,10,0);
J:JO,LINETHICK1,ColorWhite,Precision1;DRAWTEXT(ISLASTBAR, J,' J'),ColorWhite,LINETHICK16;
K:KO,COLORFF00FF,Precision1,nodraw;
D:DK,ColorGreen,Precision1,nodraw;
A2:=BARSLAST(REF(CROSS(KO,DK),1));
B2:=REF(C,A2+1)>C AND REF(KO,A2+1)<KO AND CROSS(KO,DK),coloryellow;
C2:=BARSLAST(REF(CROSS(DK,KO),1));
D2:=REF(C,C2+1)<C AND REF(KO,C2+1)>KO AND CROSS(DK,KO);
KDJ bottom back:=B2>0;
DRAWTEXT (B2>0, k * 1.1, 'K back'), COLORFF00FF; DRAWICON (B2>0, k * 1.1,1);
KDJ top back:=D2>0; DRAWTEXT (D2>0, k * 1.2, 'K top back'), ColorGreen;
DRAWTEXT (CROSS (K, D), k * 0.95, 'Kgold'), ColorYellow;
RSI:SMA(MAX(c-REF(c,1),0),6,1)/SMA(ABS(c-REF(c,1)),6,1)*100,Precision0,COLORred;DRAWTEXT(ISLASTBAR,RSI,'       RSI'),ColorRed;
tja:=(2*C+H+L)/4;
tjb:=LLV(L,9);
tja1:=HHV(H,9);
BX:=EMA((tja-tjb)/(tja1-tjb)*100,8);
BX1:=EMA(BX,5);
DRAWBAND(BX,RGB(255,00,255),BX1,RGB(110,200,255));
Short line is empty: PARTINE (bX>BX1,0), COLOR0000FF, LINETHICK2; DRAWTEXT (ISLASTBAR, short line is empty, 'short line is empty'), ColorBlue,LINETHICK15;
 PARTLINE(BX<=BX1,0), ColorGreen,LINETHICK2;
DRAWTEXT (CROSS (BX, BX1), BX * 0.95, '↑▲ reverse'), ColorYellow;
TR1:=SMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),14,1);
HD:=H-REF(H,1);
LD:=REF(L,1)-L;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),14,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),14,1);
PDI:=DMP*100/TR1;
STICKLINE(RSI>90,0,30,0.5,0),ColorGreen;
DRAWTEXT(RSI>90,30*1.1,'! RIS'),ColorGreen;
 10,linedot;  90,linedot;




The Five Dragons Dance:

The original works reveal the stock price law by using the five classic indicators of CCI/KDJ/RSI/WR/MDI. Feihu trader software can be used, not for Tongdaxin. (Top financial and stock colleges: http://www.58188.com )

 
TYP:=(H+L+C)/3;    
CCIO:=(TYP-MA(TYP,9))/(0.015*AVEDEV(TYP,9)),NODRAW,PRECISION1;
FILLRGN(CCIO>150, CCIO,150),COLORFFFF00;    
FILLRGN(CCIO<-200, CCIO,-200),COLORA69AFA;    
FILLRGN(CCIO<>150,150,-200),COLOR000000;
RSV:=(C-LLV(L,N))/(HHV(H,N)-LLV(L,N))*100;  
KO:=SMA(RSV,N1,1),PRECISION1;
DK:=SMA(KO,N2,1),PRECISION1;
JO:=3*KO-2*DK,PRECISION1;
FILLRGN(JO>88,JO,88),COLOR20E839;   
FILLRGN(JO<12,JO,12),COLORRED;   
DRAWBAND(88,0,12,0); {The area is colorless}
CCI:CCIO,COLORYELLOW,PRECISION1,LINEDOT;DRAWTEXT(ISLASTBAR,CCI,'       CCI'), COLORYELLOW,LINETHICK16;
J:JO,LINETHICK1,COLORWHITE,PRECISION1;DRAWTEXT(ISLASTBAR, J,' J'),COLORWHITE,LINETHICK16;
K:KO,COLORFF00FF,PRECISION1,NODRAW;
D:DK,COLORGREEN,PRECISION1,NODRAW;
A2:=BARSLAST(REF(CROSS(KO,DK),1));
B2:=REF(C,A2+1)>C AND REF(KO,A2+1)<KO AND CROSS(KO,DK),COLORYELLOW;
C2:=BARSLAST(REF(CROSS(DK,KO),1));
D2:=REF(C,C2+1)<C AND REF(KO,C2+1)>KO AND CROSS(DK,KO);
KDJ bottom back:=B2>0;
DRAWTEXT (B2>0, K * 1.1, 'K back'), COLORFF00FF; DRAWICON (B2>0, K * 1.1,1);
KDJ top back:=D2>0; DRAWTEXT (D2>0, K * 1.1, 'K top back'), COLORFFCC66;
DRAWTEXT (CROSS (K, D), K * 0.95, 'K gold'), COLORYELLOW;
RSI:SMA(MAX(C-REF(C,1),0),6,1)/SMA(ABS(C-REF(C,1)),6,1)*100,PRECISION0,COLORRED;DRAWTEXT(ISLASTBAR,RSI,'       RSI'),COLORRED;
R1:=SMA(CCIO,3,1);    
D1:=SMA(R1,3,1);    
J1:=3*R1-2*D1;    
RR1:=EMA(J1,5);    
RR2:=REF(RR1,1);
RR:=RR1>RR2;
Buy:=RR AND NOT (REF (RR, 1)) AND (RR1<- 130 AND RR1<- 130), LINETHICK0; DRAWTEXT (Buy, CCIO * 0.95, '↑ B'), LINETHICK17,COLORRED;
Selling:=REF (RR, 1)=1 AND NOT (RR) AND RR1>100, LINETHICK0; DRAWTEXT (selling, CCIO * 0.95, '↓ S'), LINETHICK16,COLORGREEN;
TJA:=(2*C+H+L)/4;
TJB:=LLV(L,9); {9-34D}
TJA1:=HHV(H,9); {9-34D}
BX:=EMA((TJA-TJB)/(TJA1-TJB)*100,8);
BX1:=EMA(BX,5); {Analyst Formula Network}
{STICKLINE(BX-BX1>0, BX,BX1,8,1),COLORRED;
STICKLINE(BX-BX1<0, BX,BX1,8,1),COLOR00FF00;}
DRAWBAND(BX,RGB(255,00,255),BX1,RGB(110,200,255));
Short line is empty: PARTINE (BX>BX1,0), COLOR0000FF, LINETHICK2; DRAWTEXT (ISLASTBAR, short line is empty, 'short line is empty'), COLORBLUE,LINETHICK15;
PARTLINE(BX<=BX1,0), COLORGREEN,LINETHICK2;
DRAWTEXT (CROSS (BX, BX1), BX * 0.95, '↑▲ reverse'), COLORYELLOW;
TR1:=SMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(L-REF(C,1))),14,1);
HD:=H-REF(H,1);
LD:=REF(L,1)-L;
DMP:=SMA(IF(HD>0 AND HD>LD,HD,0),14,1);
DMM:=SMA(IF(LD>0 AND LD>HD,LD,0),14,1);
PDI:=DMP*100/TR1;
STICKLINE(RSI>88,0,50,0.5,0),COLORGREEN;
DRAWTEXT(RSI>88,50*1.1,'! RIS'),COLORGREEN;

Previous: Feihu source code: watershed

Next: Feihu source code: time-sharing main diagram, macd structure sub diagram

Recommended reading