等级: 新手上路
- 注册:
- 2021-7-16
- 曾用名:
|
K1:=MACD0<MACD1 and MACD1<MACD2 and MACD2<MACD3 and MACD3<MACD4 AND H<REF(H,1) ;
K2:=MACD0<MACD1 and MACD1<MACD2 and MACD2<MACD3 and MACD3<MACD4 AND H<REF(H,1) ;
K3:=MACD0<MACD1 and MACD1<MACD2 and MACD2<MACD3 and MACD3<MACD4 AND H<REF(H,1) ;
D1:= MACD0>MACD1 and MACD1>MACD2 and MACD2>MACD3 and MACD3>MACD4 AND L>REF(L,1) ;
D2:= MACD0>MACD1 and MACD1>MACD2 and MACD2>MACD3 and MACD3>MACD4 AND L>REF(L,1) ;
D3:= MACD0>MACD1 and MACD1>MACD2 and MACD2>MACD3 and MACD3>MACD4 AND L>REF(L,1) ;
if d1 or d2 or d3 then begin
sellshort(1,0,thisclose);
buy(holding=0,1,thisclose);
end
if k1 or k2 OR K3 then begin
sell(1,0,thisclose);
buyshort(holding=0,1,thisclose);
end
在主图的蜡烛图上,当某根阳柱或阴柱上 满足 K1/K2/K3/D1/D2/D3/ 其中一个条件的,可以在当根柱上 显示文字 K1、K2、、、、吗?? 要加什么命令语句编写??
补充内容 (2021-8-9 17:17):
在顶上显示也可以。最好能在下面显示。
补充内容 (2021-8-9 17:33):
请问能显示在 当根蜡烛的 柱体中间位置吗?? |
|