咨詢內容:
請教老師一個函數。
TROUGHBARS。
PEAKBARS。
以上兩個函數是未來函數嗎?
?
?來源:程序化99網( m.kzuj.com.cn )
博易技術人員:
您好,是的。
老師,這個指標是我看您指導修改的,我看表面是K線頂部變綠空,底部變紅多,但是我問您了,您回復說里面有未來函數,那么是不是會出現在頂部下來很多頂部K線才會出現變綠提示,在底部上去很多,底部K線才會變紅提示的現象呢?
必買:=IF(TROUGHBARS(3,15,1)=0ANDHIGH>LOW+0.01,CLOSE,0),NODRAW;
必賣:=IF(PEAKBARS(3,15,1)=1,CLOSE,0),NODRAW;
DRAWICON(必買=CLOSE,L*0.991,4);
DRAWICON(必賣=CLOSE,H*1.003,5);
STICKLINE(COUNT(必賣=CLOSE,BARSLAST(必買=CLOSE))=0ANDCLOSE>=OPEN,OPEN,CLOSE,10,1),COLORRED;
STICKLINE(COUNT(必賣=CLOSE,BARSLAST(必買=CLOSE))=0ANDCLOSE>=OPEN,OPEN,LOW,0,0),COLORRED;
STICKLINE(COUNT(必賣=CLOSE,BARSLAST(必買=CLOSE))=0ANDCLOSE>=OPEN,CLOSE,HIGH,0,0),COLORRED;
STICKLINE(COUNT(必賣=CLOSE,BARSLAST(必買=CLOSE))=0ANDCLOSE<OPEN,OPEN,CLOSE,10,0),COLORRED;
STICKLINE(COUNT(必賣=CLOSE,BARSLAST(必買=CLOSE))=0ANDCLOSE<OPEN,LOW,HIGH,0,0),COLORRED;
STICKLINE(COUNT(必買=CLOSE,BARSLAST(必賣=CLOSE))=0ANDCLOSE<=OPEN,OPEN,CLOSE,10,0),COLORGREEN;
STICKLINE(COUNT(必買=CLOSE,BARSLAST(必賣=CLOSE))=0ANDCLOSE<=OPEN,LOW,HIGH,0,0),COLORGREEN;
STICKLINE(COUNT(必買=CLOSE,BARSLAST(必賣=CLOSE))=0ANDCLOSE>OPEN,OPEN,CLOSE,10,1),COLORGREEN;
STICKLINE(COUNT(必買=CLOSE,BARSLAST(必賣=CLOSE))=0ANDCLOSE>OPEN,OPEN,LOW,0,0),COLORGREEN;
STICKLINE(COUNT(必買=CLOSE,BARSLAST(必賣=CLOSE))=0ANDCLOSE>OPEN,CLOSE,HIGH,0,0),COLORGREEN;
STICKLINE(BARSLAST(必買=CLOSE)=BARSLAST(必賣=CLOSE)ANDCLOSE>=OPEN,OPEN,CLOSE,10,1),COLORBLUE;
STICKLINE(BARSLAST(必買=CLOSE)=BARSLAST(必賣=CLOSE)ANDCLOSE>=OPEN,OPEN,LOW,0,0),COLORBLUE;
STICKLINE(BARSLAST(必買=CLOSE)=BARSLAST(必賣=CLOSE)ANDCLOSE>=OPEN,CLOSE,HIGH,0,0),COLORBLUE;
STICKLINE(BARSLAST(必買=CLOSE)=BARSLAST(必賣=CLOSE)ANDCLOSE<OPEN,OPEN,CLOSE,10,0),COLORBLUE;
STICKLINE(BARSLAST(必買=CLOSE)=BARSLAST(必賣=CLOSE)ANDCLOSE<OPEN,LOW,HIGH,0,0),COLORBLUE;
來源 程序化久久網