等级: 免费版
- 注册:
- 2022-5-31
- 曾用名:
|
SS:=1;
N:=13;
HH:=HHV(HIGH,N)*SS;
LL:=LLV(LOW,N)*SS;
HH1:BARSLAST((HH>REF(HH,1)))*SS;
LL1:BARSLAST((LL<REF(LL,1)))*SS;
A:=IF((HH1 < LL1),1,IF((HH1 > LL1),-1,0))*SS;
AA:=IF(A>=0*SS,LL,HH),COLORGREEN;
DRAWCOLORKLINE(HH1 < LL1*SS,COLORRED,1);
DRAWCOLORKLINE(HH1 < LL1*SS&&ISDOWN,COLORRED,0);
DRAWCOLORKLINE(HH1 > LL1*SS,COLORBLUE,1);
DRAWCOLORKLINE(HH1 > LL1*SS&&ISDOWN,COLORBLUE,0);
DRAWTEXT(CROSS(HH1,LL1)*SS,HH,'开空'),COLORCYAN;
DRAWTEXT(CROSS(LL1,HH1)*SS,LL,'开多'),COLORRED;
请老师帮改成上破AA价就开多仓一手,下破AA价就平仓,发出价格是大于AA价一个点位,K线中信号指令只发一次
|
|