// // Long Recovery ... if (isLong) { // // Opposit Direction ... // canRecover = // // // isTicksBearishForShort && // ( // // // hasBearishTrend && // (hasBearishPower || // hasBearishPattern || // hasBearishPressure) // // // ) // // // ; // if (canRecover) // { // // // sl = position.tp; // tp = position.sl; // type = POSITION_TYPE_SELL; // } // // Same Direction ... // if (!canRecover) // { // // // canRecover = // // // isTicksBullishForLong && // ( // // // hasBullishTrend && // (hasBullishPower || // hasBullishPattern || // hasBullishPressure) // // // ) // // // ; // if (canRecover) // { // // // sl = position.sl; // tp = position.entry; // type = POSITION_TYPE_BUY; // } // } } // // Short Recovery ... else { // // Opposit Direction ... // canRecover = // // // isTicksBullishForLong && // ( // // // hasBullishTrend && // (hasBullishPower || // hasBullishPattern || // hasBullishPressure) // // // ) // // // ; // if (canRecover) // { // // // sl = position.tp; // tp = position.sl; // type = POSITION_TYPE_BUY; // } // // Same Direction ... // if (!canRecover) // { // // // canRecover = // // // isTicksBearishForShort && // ( // // // hasBearishTrend && // (hasBearishPower || // hasBearishPattern || // hasBearishPressure) // // // ) // // // ; // if (canRecover) // { // // // sl = position.sl; // tp = position.entry; // type = POSITION_TYPE_SELL; // } // } }