Cloud computing has revolutionized the ondemand resource provisioning through virtualization. However, dynamic pricing of cloud resources presents cost management challenges. Load balancing is critical for cloud efficiency; however, current algorithms use static thresholds and are unable to adapt to fluctuating prices. This study proposes a novel Dynamic Threshold Tuning (ATTLB) algorithm that optimizes the CPU and memory thresholds of a load balancer based on real-time pricing. The ATTLB algorithm has a pricing monitor to track spot prices; a VM profiler to record capacities; a threshold optimizer to tune thresholds based on pricing, capacity, and SLAs; and a load dispatcher to assign requests to VMs using the optimized thresholds. Extensive simulations compare ATTLB with weighted round-robin (WRR), ant colony optimization (ACO), and least connection-based load balancing (LCLB) algorithms using the CloudSim toolkit. The results demonstrate the ability of ATTLB to reduce total costs by over 35% and improve SLA violations by 41% compared with prior techniques for cloud load balancing. Adaptive threshold tuning provides robustness against dynamic pricing and demand changes. ATTLB balances cost, performance, and utilization through realtime threshold adaptation.