在当前Bar写文件 为什么只写一次

if (BarStatus == 2) { tep_num_0 = tep_num_0 + 1; FileAppend(FileAppend_Path,CurrentDtM +\":123456789123456789123456789=\" + Text(tep_num_0)); if (CurrentBar%2 == 0 and tep_num_0 <= 10) tep_num_0 = tep_num_0 + 1; if (CurrentBar%2 == 0 and tep_num_0 <= 7) FileAppend(FileAppend_Path,CurrentDtM +\":tep_nue_0值=\" + Text(tep_num_0)); if (CurrentBar%2 == 1 and tep_num_1 <= 10) tep_num_1 = tep_num_1 + 1; if (CurrentBar%2 == 1 and tep_num_1 <= 7) FileAppend(FileAppend_Path,CurrentDtM +\":tep_nue_1值=\" + Text(tep_num_1));