N:=6;{止损点,可自行更改}
M:=8;{止盈点,可自行更改}
DRAWICON(轩辕剑,C*((100-N-1)/100),38);
STICKLINE(轩辕剑,C*((100-N)/100),C*((100+M)/100),0,-1);
B:=BARSLAST(轩辕剑);
买入价RAWLINE(B=0,C,B=1,REF(C,B),1),DOTLINE;
止损价RAWLINE(B=0,C*((100-N)/100),B=1,REF(C*((100-N)/100),B),1),DOTLINE,COLORMAGENTA;
止盈价RAWLINE(B=0,C*((100+M)/100),B=1,REF(C*((100+M)/100),B),1),DOTLINE,COLORYELLOW; |