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