This article investigated the charge and discharge management structure of electric vehicles (EVs) in intelligent parking lots (IPLs). It seems that with the expansion of renewable energy sources (RESs) as clean energy and investigation of the effects of EVs on the operation and planning of future distribution networks around the way EVs exchange energy with each other and the upstream network operator, RESs such as solar and wind sources, along with hydrogen storage are essential. Therefore, a new stochastic multi‐scenario approach for charge/discharge management of EVs parked in IPL was proposed, in which a newly developed model for the IPL with a hydrogen storage system (HSS) consisting of a fuel cell, an electrolyzer, and a hydrogen storage tank was presented. In the proposed model, the constraints of upstream network and power balance constraints, with the operating constraints related to the IPL, including EVs, renewable energy sources, and the hydrogen storage system, were formulated as the most important objectives of the optimization problem. The optimization algorithm, Competitive Swarm Optimizer (CSO), was formulated for implementation, and its results were compared with those of the PSO and GWO algorithms. The CSO must handle a variety of practical, large‐scale optimization problems. Based on the obtained results, the excess energy purchased from the upstream network or renewable sources was used as hydrogen storage for consumption during peak hours. As expected, the technical constraints and financial goals of the system were met, and the proposed system was evaluated on a 33‐bus network. As the expected benefits will be the most beneficial with the presence of renewable sources, the final profit will be reduced by taking into account uncertainty for charge/discharge management in EVs such as the uncertainty of electric load, market price, wind turbine, and photovoltaic cell sources. Nonetheless, the profit obtained from renewable resources is preferable to losses resulting from the uncertainty of the system, and according to expectation, the performance of the system for managing the optimal charging and discharging of EVs in the IPL will be acceptable with the maximum profit for the grid. [ABSTRACT FROM AUTHOR]