Updating logic into the algorithm for AdxIndicator