当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:主动止盈,黄买入紫卖出 白色是主动止盈
软件名称:[B]主动止盈,黄买入紫卖出 白色是主动止盈[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:2.00 KB
官方主页:Home Page
更新时间:2023-01-12 06:05:08
软件简介:
主动止盈,黄买入紫卖出,白色是主动止盈信号,
往往收阳线的时候出止盈信号。
N1:=1.8;
N2:=1.8;
X_1:=maX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:MA(X_1,5),NODRAW;
X_2:=CLOSE/REF(CLOSE,1)<=0.929 AND REF(CLOSE,1)>=REF(MA(CLOSE,22),1);
X_3:=CLOSE/HIGH<=0.911 AND vol>=REF(HHV(VOL,21),1)*1.5 AND REF(CLOSE,1)>=REF(MA(CLOSE,22),1);
X_4:=CLOSE>=HHV(CLOSE,22) AND CLOSE>=MA(CLOSE,63);
X_5:=BArslAst(X_4>=1);
X_6:=COUNT(CLOSE/MA(CLOSE,63)>=1.4,22);
X_7:=IF(X_6>=1,2/3,1);
X_8:=CLOSE<REF(CLOSE,X_5)-REF(ATR,1)*N1*REF(X_7,1) OR X_2>=1 OR X_3>=1;
X_9:=BARSLAST(X_8>=1);
BUY1:X_4>=1 AND X_9<=REF(X_5,1);
SELL1:-(X_8>=1 AND X_5<=REF(X_9,1));
B:MAX(HHV(CLOSE,21),MA(CLOSE,63)),NODRAW;
S:MAX(CLOSE*0.929,HHV(CLOSE,BARSLAST(BUY1>=1)+1)-ATR*N1*X_7),NODRAW;
X_10:=BARSLAST(BUY1>=1);
X_11:=BARSLAST(SELL1<=(-1));
主动止盈价:IF(X_10<=X_11 OR COUNT(SELL1<=(-1),0)<=0,REF(CLOSE,X_10)+N2*ATR,0),NODRAW;
主动止盈点:IF(X_10<=X_11 OR COUNT(SELL1<=(-1),0)<=0 AND HIGH>=REF(主动止盈价,1) AND COUNT(HIGH>=REF(主动止盈价,1),X_10)<=1 AND X_10>0,0.5,0);
6
[url=http://www.70822.com/soft/sort013/sort05/down-165829.html]主动止盈,黄买入紫卖出 白色是主动止盈[/url]