在当前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));

当前K线只进行一次买卖代码怎么写? Buy(Lots,Q_Last)  后面怎么写?
为什么FileAppend在tbv6036_x64_portable中,不写文件?
每个BAR,只在最后结束执行一次,怎么实现啊
每个BAR,只在最后结束执行一次,怎么实现啊
实盘交易停止自动交易和策略后,应用仍然在写日志文件
每天只交易第一次怎么写
当前的K线只执行一次
TBQ允许写文本文件吗?
过去N日内只存在一次Ma5金叉Ma10,要怎么写呢?
老师,当前bar均线值和上一根bar均线值的差值。 这个怎么写呀?