改文華,謝謝202226
作者:文華財經 來源:cxh99.com 發布時間:2022年09月07日
-
咨詢內容:
?筆參數:=5;段參數:=6;筆低A:=LOW<=LLV(LOW,筆參數),NODRAW;筆高A:=HIGH>=HHV(HIGH,筆參數),NODRAW;筆低:=筆低A AND 筆高A=0,NODRAW;筆高:=筆高A AND 筆低A=0,NODRAW;VP1:=BACKSET(筆高,BARSLAST(筆低)+1);VP2:=BACKSET(筆低,BARSLAST(筆高)+1);VP3:=(筆低A AND VP2 AND VP1) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(筆低A)+1),0.5));VP4:=(VP1 AND 筆高A AND VP2) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(筆高A)+1),0.5));DRAWLINE1(VP3,LOW,VP4,HIGH,0),COLORRED,LINETHICK2;??DRAWLINE1(VP4,HIGH,VP3,LOW,0),COLORGREEN,DOT,LINETHICK7;? ?
段低A:=LOW<=LLV(LOW,段參數*筆參數),NODRAW;段高A:=HIGH>=HHV(HIGH,段參數*筆參數),NODRAW;段低:=段低A AND 段高A=0;段高:=段高A AND 段低A=0;
VP5:=BACKSET(段高,BARSLAST(段低)+1);VP6:=BACKSET(段低,BARSLAST(段高)+1);VP7:=(段低A AND VP6 AND VP5) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段低A)+1),0.5));VP8:=(VP5 AND 段高A AND VP6) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段高A)+1),0.5));DRAWLINE1(VP7,LOW,VP8,HIGH,0),COLORRED,LINETHICK5;DRAWLINE1(VP8,HIGH,VP7,LOW,0),COLORCYAN,DASHDOTDOT;
DRAWICON(VP7,L,5),VALIGN0;DRAWICON(VP8,H,4),VALIGN2;
只保留箭頭而且上下能調謝謝
?
?來源:程序化99
-
文華技術人員:
箭頭的調整設置為參數N? 數值越大,距離越遠,參考:
N:=3;?
筆參數:=5;
段參數:=6;
筆低A:=LOW<=LLV(LOW,筆參數),NODRAW;
筆高A:=HIGH>=HHV(HIGH,筆參數),NODRAW;
筆低:=筆低A AND 筆高A=0,NODRAW;
筆高:=筆高A AND 筆低A=0,NODRAW;
VP1:=BACKSET(筆高,BARSLAST(筆低)+1);
VP2:=BACKSET(筆低,BARSLAST(筆高)+1);
VP3:=(筆低A AND VP2 AND VP1) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(筆低A)+1),0.5));
VP4:=(VP1 AND 筆高A AND VP2) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(筆高A)+1),0.5));
//DRAWLINE1(VP3,LOW,VP4,HIGH,0),COLORRED,LINETHICK2;??
//DRAWLINE1(VP4,HIGH,VP3,LOW,0),COLORGREEN,DOT,LINETHICK7;? ?
段低A:=LOW<=LLV(LOW,段參數*筆參數),NODRAW;
段高A:=HIGH>=HHV(HIGH,段參數*筆參數),NODRAW;
段低:=段低A AND 段高A=0;
段高:=段高A AND 段低A=0;
VP5:=BACKSET(段高,BARSLAST(段低)+1);
VP6:=BACKSET(段低,BARSLAST(段高)+1);
VP7:=(段低A AND VP6 AND VP5) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段低A)+1),0.5));
VP8:=(VP5 AND 段高A AND VP6) OR (CROSS(BACKSET(BARSTATUS=2,BARSLAST(段高A)+1),0.5));
//DRAWLINE1(VP7,LOW,VP8,HIGH,0),COLORRED,LINETHICK5;
//DRAWLINE1(VP8,HIGH,VP7,LOW,0),COLORCYAN,DASHDOTDOT;
DRAWICON(VP7,L-N*MINPRICE,5),VALIGN0;
DRAWICON(VP8,H+N*MINPRICE,4),VALIGN2;