if Crossup(MA(Close, 50), MA(Close, 60)) Then
begin
Condition1 = true;
Con1_num = BarIndex;
end;
if Condition1 == true and BarIndex <= Con1_num + Wait_num then
buy("minute_100");
if Condition1 == true and BarIndex > Con1_num + Wait_num Then
Begin
Condition1 = false;
Con1_num = 0;
end;
//--------------------------------------------------------------