止损线和平仓线的区别是什么?止损线指标公式源码

2023-04-01 21:58:22       来源:驱动中国网

区别:

1、区别不同

平仓线为强制止损线,是一种防止资方亏损的强制性风险控制措施。止损线是指交易原则中自己规定的跌超。

2、亏损不同

止损线在股票下跌时使用,预警线可下跌可上涨使用。

止损线指标公式源码:

FL:=MA(CLOSE,15)+ABS(MA(CLOSE,15)-REF(MA(CLOSE,15),1)),COLORWHITE;

FS:=MA(CLOSE,15)+MA(CLOSE,15)-REF(MA(CLOSE,15),1),COLORWHITE;

BB:=IF(MA(CLOSE,5)

NX:=EMA(C,250);

A:=BB-(EMA(C,3)-BB),COLORWHITE;

DIFF:=EMA((NX-(EMA(C,3)-NX)),5),LINETHICK2;

止损线:=EMA(COST(60),10) COLORRED,LINETHICK2;

牛熊线:=EMA(COST(27),120);

XG1:=CROSS(BB,DIFF);

超准:=EMA(C,26);

超级趋势线2:=PLOYLINE(MA(C,3)>超准,超准);

超级趋势线:=PLOYLINE(MA(C,3)<超准,超准);

XG2:=超级趋势线>超级趋势线2;

XG3:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/CAPITAL*100>5 AND C/REF(C,1)>1.03;

XG4:=C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND C>MA(C,60) AND C>MA(C,120);

XG5:=(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

XG6:=XG1 AND XG2 AND XG3 AND XG4 AND XG5;

XG7:=V/MA(V,5)>=1 AND V/CAPITAL*100>15 AND C/REF(C,1)>1.03;

XG8:=MA(C,60)>MA(C,120) AND (ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60 AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

XG9:=XG1 AND XG2 AND XG7 AND XG8;

XG10:=O>REF(H,1) AND O/REF(C,1)>1.04 AND C>O AND V/MA(V,5)>=1 AND V/CAPITAL*100>3 AND C/REF(C,1)>1.03;

XG11:=MA(C,60)>MA(C,120) AND IF(CODELIKE('300'),0,1) AND IF(NAMELIKE('S'),0,1) AND IF(NAMELIKE('*'),0,1) AND DYNAINFO(4)>0 AND H>L;

XG12:=COUNT(XG1,2)>=1 AND XG2 AND XG4 AND XG10 AND XG11;

XG6 OR XG9 OR XG12;

x 广告
x 广告

Copyright @  2015-2022 海外生活网版权所有  备案号: 沪ICP备2020036824号-21   联系邮箱:562 66 29@qq.com