//internal void CheckForExit()
        //{
        //    if (allPositions != null && allPositions.Length > 0)
        //        PingPongExit();
        //}
        //CheckForExit()
        internal void PositionsOnClosed(PositionClosedEventArgs args)
        {
            //var position = args.Position;
            UpdatePositionsArray();
            //in Even Gvirol TLV Aroma after WATEC 15/10/2015

            dataOps.Reconcile();
        }
        protected override void OnStart()
        {
            dataOps = new DataOps(this);
            dataOps.Reconcile();

            //events registration
            Positions.Closed += PositionsOnClosed;
            Positions.Opened += PositionsOnOpened;

            //constants
            T = Symbol.TickValue;
            S = Symbol.TickSize;
            //factor multiplier in converting target in ticks to compare position P/L in Pips
            factor = Symbol.PipSize / S;

            //indicators
            psar = Indicators.ParabolicSAR(minAF, maxAF);

            //strategies
            strGs = new Strategy[2];
            Print("b4 psar");
            var psr = new PsarStrategy(this);

            SendAlert("OnStart()");
            var ping = new PingPongStrategy(this);


            strGs[0] = psr;
            strGs[1] = ping;
        }