主题753
精华0
阅读权限120
注册时间2015-3-30
在线时间0 小时
最后登录2020-5-2
美元12
爱心果13826
贡献0
- 积分
- 16247
指标研习组
- 听众
- 5
|
30爱心果
请老师帮忙写一个在出现“进”时选股。谢谢了.
N:=13;M:=9;M1:=3;
VAR1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR2:=SMA(VAR1,M1,1);
卖线: SMA(VAR2,M1,1);
必卖线: SMA(卖线,M1,1);
VAR3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
VAR4:=SMA(VAR3,M1,1);
VAR5:=SMA(VAR4,M1,1);
买入线: SMA(VAR5,M1,1);
高压线: 80;
触底线: 15;
DRAWTEXT(买入线>76.5 AND CROSS(卖线,必卖线),必卖线*1.15,'进');
DRAWTEXT(买入线>56 AND 买入线<=76 AND CROSS(卖线,必卖线),卖线,'留意');
DRAWTEXT(买入线<45 AND 卖线>78 AND 必卖线>78 AND CROSS(必卖线,卖线),必卖线,'跑'),COLORGREEN ;
DRAWTEXT(CROSS(买入线,78.5),买入线,'关注'),COLORRED ;
DRAWTEXT(CROSS(买入线,85),买入线,'重点关注'),COLORWHITE ;
上拐:=必卖线<50 AND 卖线<必卖线 AND 卖线>REF(卖线,1);
下拐:=必卖线>50 AND 卖线>必卖线 AND 卖线<REF(卖线,1);
DRAWICON(上拐,买入线,1);
DRAWICON(下拐,必卖线,2);
|
最佳答案
查看完整内容
{进预警}
N:=13;
M:=9;
M1:=3;
VAR1:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
VAR2:=SMA(VAR1,M1,1);
卖线:=SMA(VAR2,M1,1);
必卖线:=SMA(卖线,M1,1);
VAR3:=(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M))*100;
VAR4:=SMA(VAR3,M1,1);
VAR5:=SMA(VAR4,M1,1);
买入线:=SMA(VAR5,M1,1);
进预警:买入线>76.5 AND CROSS(卖线,必卖线);
|