计划:
1、空仓状态:
A、上穿固定点位开多仓,跌破该固定点位N个点,立刻反手开空; 如果再重新上穿该固定点位,再反手成多单;
B、下穿固定点位开空仓,升到该固定点位N个点后,立刻反手开多; 如果再重新下穿该固定点位,再反手成空单;
2、持仓状态:
A、上穿固定点位空反多,跌破该固定点位N个点,立刻反手开空; 如果再重新上穿该固定点位,再反手成多单;
B、下穿固定点位多反空,升到该固定点位N个点后,立刻反手开多; 如果再重新下穿该固定点位,再反手成空单;
注:固定点位、N、开仓手数可以随时修改;
谢谢
日线啊
gd:=2400;//固定点位2400
n:=5;//n是5
ss:=1;//开仓手数是1
if cross(c,gd) then BEGIN
sellshort(holding<0,0,thisclose);
buy(holding=0,ss,thisclose);
end
if c<=gd-n*mindiff then begin
sell(holding>0,0,thisclose);
buyshort(holding=0,ss,thisclose);
end
if cross(gd,c) then begin
sell(holding>0,0,thisclose);
buyshort(holding=0,ss,thisclose);
end
if c>=gd+n*mindiff then begin
sell(holding>0,0,thisclose);
buyshort(holding=0,ss,thisclose);
end
if datatype<>6 then exit;//非日线周期不能运行
谢谢,我测试一下!
老师,在分时图上可以运行吗?