Forex_Strategy_Builder.Backtester.CheckOrd C# (CSharp) Method

CheckOrd() static private method

Checks the order
static private CheckOrd ( int bar, int iOrd ) : bool
bar int
iOrd int
return bool
        static bool CheckOrd(int bar, int iOrd)
        {
            if (session[bar].Order[iOrd].OrdStatus != OrderStatus.Confirmed)
                return false;
            else if (session[bar].Order[iOrd].OrdCond != OrderCondition.If)
                return true;
            else if (OrdFromNumb(session[bar].Order[iOrd].OrdIF).OrdStatus == OrderStatus.Executed)
                return true;
            else
                return false;
        }