平台整理後的突破與跌破

By | 2015-12-21

先前有提到資深業內會進場的型態之一是平台整理後的突破與跌破,就像下面這個圖這樣的走勢。

平台整理後突破

 

 

 

 

 

 

 

 

 

剛好XQ系統內建有一個專門找出這種股票的腳本,我就直接PO上來給大家參考。

input:LS(0); setinputname(1,"多空設定");
settotalbar(300);
setbarback(50);

variable:HP(0);HP = Highest(H[1],20);
variable:LP(0);LP = Lowest(L[1],20);
variable:MID(0); MID = (HP+LP)/2;
variable:Q1(0); Q1 = (HP+MID)/2;
variable:Q2(0); Q2 = (MID+LP)/2;

variable:i(0),j(0);

j=0;
for i = 1 to 20
begin
if (C[i] > MID and C[i+1]< MID) or
 (C[i] < MID and C[i+1]> MID) then j+=1;
end;

condition1 = HP > LP*1.14 and j >8 and average(v,20)>200;

if LS>0 and H >HP and condition1 then ret=1;
if LS<0 and L <LP and condition1 then ret=1;

你可能會有興趣的文章

回應