input:aa(20);
value1=Average(c,aa);
if value1[0]>=value1[1] and value1[1]>=value1[2] then begin
if close cross over value1 then
buy next bar at market;
end;
if value1[0]<=value1[1] and value1[1]<=value1[2] then begin
if close cross over value1 then
sellshort next bar at market;
end;
condition1=dayofweek(date)=3 and dayofmonth(date)>14 and 22<dayofmonth(date);
if condition1 then begin
if time>1314 then begin
sell this bar at Close;
buytocover this bar on close;
end;
end;
沒有留言:
張貼留言