如何记录开仓后的最高最低价

        Numeric hh;        
        hh = Highest(h,mypos );        //mypos是开仓后onbaropen +1
        Numeric ll;
        ll = lowest(l,mypos );
        If( A_BuyPosition > 0  )
        {
            HighestAfterEntry = Max(myhigh,High);        //记录开仓最高
            myhigh = High;
            If( mypos >0 )
            {
                myhigh = hh ;
            }
        }
        If(  A_SellPosition > 0 )
        {
            LowestAfterEntry = Min(low,mylow);
            mylow = Low;
            If( mypos >0 )
            {
                mylow = ll ;
            }
        }
我想用手动计算BAR的数量来计算最高最低,这样好像不成功。有没有好的办法能记录开仓后的最高最低价。

开仓后,如何记录开仓价前一根棒的最低价作为止损
建仓后的最高价和最低价
记录开仓后最高价
持仓期间的最高价和最低价如何实现
记录开仓价格的函数有异常
请教!如何求最高价,最低价
求最高最低价
使用最高最低价 信号策略闪烁问题
开仓后,如何从开仓价格开始画横线
最高价和最低价的代码

http://www.tbquant.net/dist/index.html#/?navigate=tbfn&cid=510&position=toc42  看看帮助文档经典案例中是如何记录开仓后的最高价最低价的