以下是我的想法,因為剛接觸程式交易也買了許多書但像是 value 和condition 我就分不清楚
假使我希望第一次進場是8點55分之前的高低點平均點+50點時初次進場
因此我打了下列的程式但仍舊呈現編譯錯誤或是跑不出來
要如何修改呢?
if time<=0855 then begin;
value1=(HIGHD(0)+LowD(0))/2;
end;
condition1=value1+50 points ;
if time>0855 and time<1000 and marketposition=0 and Entrytime=0
and condition1 then buy("buy")this bar on close a contract;