{發(fā)現(xiàn)大莊源碼} VAR1:=EMA(EMA(CLOSE,13),13); 控盤:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000; STICKLINE(控盤<0,控盤,0,1,1),COLOR00FF00; STICKLINE(控盤>REF(控盤,1) AND 控盤<0,控盤,0,1,1),COLORFF00FF; 無莊控盤:=控盤<0; STICKLINE(控盤>REF(控盤,1) AND 控盤>0,控盤,0,1,1),COLOR0000FF; 有莊控盤:=控盤>REF(控盤,1) AND 控盤>0; VAR2:=100*WINNER(CLOSE*0.95); STICKLINE(控盤<REF(控盤,1) AND 控盤>0,控盤,0,1,1),COLORFFFF00; 主力出貨:=控盤<REF(控盤,1) AND 控盤>0; STICKLINE(VAR2>50 AND COST(85)<CLOSE AND 控盤>0,控盤,0,1,1),COLOR00FFFF; 高度控盤: VAR2>50 AND COST(85)<CLOSE AND 控盤>0,COLOR00FFFF,LINETHICK2; A10:=CROSS(控盤,0); 控盤B:=FILTER(IF(A10,1,0),5); {分時價格原碼} JJ:=DYNAINFO(11); {波段買賣原碼} P:=55;S:=8;M1:=3; 財:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2; 神:=EMA(財,M1),COLORGREEN,LINETHICK1; DRAWBAND(財,RGB(255,0,0),神,RGB(0,100,50)); {股價與均線偏離買賣條件} BTJ1:=(C-JJ)/JJ<-0.03; BTJ11:=(C-JJ)/JJ<-0.03; BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ<0.005; STJ1:=(C-JJ)/JJ>0.005; {控盤買賣條件} STJ01:=控盤<REF(控盤,1) AND 控盤>0.5; STJ02:=控盤>0; BTJ2:=控盤>REF(控盤,1) AND 控盤<-0.2; BTJ22:=控盤>REF(控盤,1) AND 控盤<0 ; {波段買賣條件} BTJ3:=CROSS(財,神) AND 財<-0.3; BTJ32:=CROSS(財,神) AND 財<-0.1; STJ31:=CROSS(神,財); STJ32:=CROSS(神,財) AND 財>1.618; {以下為信號}; BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13); BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13); BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13); DRAWTEXT(BTJ81,神,'↑買底'),COLORRED; DRAWTEXT(BTJ811,神*1.2,'↑有莊'),COLORWHITE; STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13); STJ82:=FILTER(STJ02 AND STJ32 ,13); STJ83:=STJ81 AND STJ82; DRAWTEXT(STJ83,神,'↓賣'),COLOR00FF00; DIFF: (EMA(CLOSE,8) - EMA(CLOSE,55))*10,COLORRED; DEA: EMA(DIFF,3),COLORGREEN; 莊:= BTJ11 AND BTJ2 AND BTJ3; 有莊:FILTER(莊,55),COLORWHITE; DRAWTEXT(BTJ811,有莊,'有莊'),COLORWHITE;
VAR1賦值:收盤價的13日指數(shù)移動平均的13日指數(shù)移動平均 控盤賦值:(VAR1-昨日VAR1)/昨日VAR1*1000 當滿足條件控盤<0時,在控盤和0位置之間畫柱狀線,寬度為1,1不為0則畫空心柱.,COLOR00FF00 當滿足條件控盤>昨日控盤AND控盤<0時,在控盤和0位置之間畫柱狀線,寬度為1,1不為0則畫空心柱.,COLORFF00FF 無莊控盤賦值:控盤<0 當滿足條件控盤>昨日控盤AND控盤>0時,在控盤和0位置之間畫柱狀線,寬度為1,1不為0則畫空心柱.,COLOR0000FF 有莊控盤賦值:控盤>昨日控盤 AND 控盤>0 VAR2賦值:100*以收盤價*0.95計算的獲利盤比例 當滿足條件控盤<昨日控盤AND控盤>0時,在控盤和0位置之間畫柱狀線,寬度為1,1不為0則畫空心柱.,COLORFFFF00 主力出貨賦值:控盤<昨日控盤 AND 控盤>0 當滿足條件VAR2>50ANDCOST(85)<CLOSEAND控盤>0時,在控盤和0位置之間畫柱狀線,寬度為1,1不為0則畫空心柱.,COLOR00FFFF 輸出高度控盤: VAR2>50 AND 獲利盤為85%的成本分布<收盤價 AND 控盤>0,COLOR00FFFF,線寬為2 A10賦值:控盤上穿0 控盤B賦值:如果A10,返回1,否則返回0的5日過濾 JJ賦值:均價 P賦值:55 S賦值:8 M1賦值:3 財賦值:(收盤價的S日指數(shù)移動平均-收盤價的P日指數(shù)移動平均)*10,畫紅色,線寬為2 神賦值:財?shù)腗1日指數(shù)移動平均,畫綠色,線寬為1 畫帶狀線 BTJ1賦值:(收盤價-JJ)/JJ<-0.03 BTJ11賦值:(收盤價-JJ)/JJ<-0.03 BTJ12賦值:從前5日到前1日持續(xù)JJ>=昨日JJ AND (收盤價-JJ)/JJ<0.005 STJ1賦值:(收盤價-JJ)/JJ>0.005 STJ01賦值:控盤<昨日控盤 AND 控盤>0.5 STJ02賦值:控盤>0 BTJ2賦值:控盤>昨日控盤 AND 控盤<-0.2 BTJ22賦值:控盤>昨日控盤 AND 控盤<0 BTJ3賦值:財上穿神 AND 財<-0.3 BTJ32賦值:財上穿神 AND 財<-0.1 STJ31賦值:神上穿財 STJ32賦值:神上穿財 AND 財>1.618
BTJ81賦值:BTJ1ANDBTJ2ANDBTJ3的13日過濾 BTJ811賦值:BTJ11ANDBTJ2ANDBTJ3的13日過濾 BTJ82賦值:BTJ12ANDBTJ22ANDBTJ32的13日過濾 當滿足條件BTJ81時,在神位置書寫文字,畫紅色 當滿足條件BTJ811時,在神*1.2位置書寫文字,畫白色 STJ81賦值:STJ1ANDSTJ01ANDSTJ31的13日過濾 STJ82賦值:STJ02ANDSTJ32的13日過濾 STJ83賦值:STJ81 AND STJ82 當滿足條件STJ83時,在神位置書寫文字,COLOR00FF00 輸出DIFF: (收盤價的8日指數(shù)移動平均 - 收盤價的55日指數(shù)移動平均)*10,畫紅色 輸出DEA: DIFF的3日指數(shù)移動平均,畫綠色 莊賦值: BTJ11 AND BTJ2 AND BTJ3 輸出有莊:莊的55日過濾,畫白色 當滿足條件BTJ811時,在有莊位置書寫文字,畫白色