|
本帖最後由 jason680 於 18-11-16 13:04 編輯
var: more_flag(False); // more than A_val
var: more3_flag(False); // more than A_val 3 times
more_flag = close > A_val;
more3_flag = more_flag[2] and more_flag[1] and more_flag[0];
if more3_flag then begin
buy("more3") next bar at market;
end;
|
|