bool M_CheckSellLiqu() { // Candle 0 is the CURRENT candle that is NOT CLOSED YET !!! bool bBearish_2 = stGVL.Candle_HTF[2].open > stGVL.Candle_HTF[2].close; bool bBullish_3 = stGVL.Candle_HTF[3].open < stGVL.Candle_HTF[3].close; bool bPattern = bBearish_2 && bBullish_3; bool bNoWig = stGVL.Candle_HTF[2].open > stGVL.Candle_HTF[1].high && stGVL.Candle_HTF[3].close > stGVL.Candle_HTF[4].high; if (bPattern && bNoWig) { double Liqu = MathMax(stGVL.Candle_HTF[2].high, stGVL.Candle_HTF[3].high); M_ArrayUnshiftLimit_double(stGVL.SellLiquidity, Liqu, nMaxLiqus); ArraySort(stGVL.SellLiquidity); // Sort the array so the lowest is always the first M_LogInfo("Sellside Liquidity added: "); if (!bOptimizationRun) { ArrayPrint(stGVL.SellLiquidity); } } return true; }