请教!!!麻烦老师帮我看看代码的问题

老师好!

    1、以开仓价为基准,止损,高于或低于开仓价3个点;

    2、以开仓价为基准,止赢,从开仓bar至当前bar的最高或最低价高于或低于开仓价3、6、9、12、15个点;

    3、均线未调头,但CLOSE下穿或上穿;

    4、均线调头。

但是达到标准了也没有动作,麻烦老师看看是什么问题?代码如下:

if (BarStatus==2)
            {                                
                if (A_SellPosition()>0) //持有空头仓位
                {
                    k1=BarsSinceEntry();
                    exitp=low[k1];
                    for k1 downto 0
                    {
                    if (exitp<low[k1-1])
                    {
                        exitp=exitp;
                    }
                    Else
                    {
                        exitp=low[k1-1];
                    }
                }
                exitside=(exitp<(AvgEntryPrice()-MinMove()*3*PriceScale)) and (close>=AvgEntryPrice()-MinMove()*3*PriceScale);
                exitside1=(exitp<(AvgEntryPrice()-MinMove()*6*PriceScale)) and (close>AvgEntryPrice()-MinMove()*6*PriceScale);
                exitside2=(exitp<(AvgEntryPrice()-MinMove()*9*PriceScale)) and (close>AvgEntryPrice()-MinMove()*9*PriceScale);
                exitside3=(exitp<(AvgEntryPrice()-MinMove()*12*PriceScale)) and (close>AvgEntryPrice()-MinMove()*12*PriceScale);
                exitside4=(exitp<(AvgEntryPrice()-MinMove()*15*PriceScale)) and (close>AvgEntryPrice()-MinMove()*15*PriceScale);
                exitside5=ma1[2]>ma1[1] and ma1[1]>ma1 and ma1[2]-ma1[1]>ma1[1]-ma1 and close[1]<ma1[1] and close>ma1;
                exitside6=ma1[3]>ma1[2] and ma1[2]>ma1[1] and ma1>ma1[1];
                    if (close>(AvgEntryPrice()+MinMove()*3*PriceScale) or exitside4 or exitside3 or exitside2 or exitside1 or exitside or exitside5 or exitside6 or close == Q_LowerLimit() or CurrentTime()>=myendtime1)
                    {    
                        A_SendOrder(Enum_Buy,Enum_Exit,A_SellPosition(),Q_AskPrice()+MinMove()*3*PriceScale);     
                    }            
                }
            }//------

老师,麻烦你帮我看看这个是怎么回事呢?
跨周期的问题那位老师帮我看看
老师麻烦给看看锁仓问题
请老师帮我看看这个代码
求助贴 麻烦老师帮忙看看
麻烦老师给看看这段代码怎么写?
请老师看看,代码问题
老师,麻烦帮忙看看这个现象是信号闪烁导致的吗?
麻烦老师帮我改成TB语言
帮我看看哪里有问题

代码诊断可以看置顶帖投稿

bug报告请发直接说明bug的demo