小弟從其他大大的blog上面看到以下這個程式碼, 但看不懂condition3/condition4的意思 想請問有人能說明一下嗎?
condition1=highd(0)>=opend(0)*(1+F);
condition3=(high=highd(0) and high>=opend(0)*(1+F)) or high<highd(0);
condition2=lowd(0)<=opend(0)*(1-F);
condition4=(low=lowd(0)and low<=opend(0)*(1-F) ) or low>lowd(0);
if marketposition=0 and k1=0 and time>0900 and time<=1300 and condition1 and condition3 then
buy("b") next bar at highd(0) stop;
if marketposition=0 and k2=0 and time>0900 and time<=1300 and condition2 and condition4 then
Sellshort("s") next bar at lowd(0) stop ;
|