|
參考看看...
1. 不改
var: Dn(0),Up(0);
if H[2]>H[1] and H[1]>H[0] then
UP = H[2];
if L[2]<L[1] and L[1]<L[0] then
Dn = L[2];
2. 改變
var: Dn(0),Up(0);
var: Hi_Less(False), Lo_more(False);
Hi_Less = H[1] > H[0];
Lo_more = L[1] < L[0];
if Hi_Less[1] and Hi_Less[0] then
UP = H[2];
if Lo_more[1] and Lo_more[0] then
Dn = L[2];
|
|