With increasing the energy demand, the optimal and safe operation of power systems is the main challenge for engineers. Thus, a technique for the optimal implementation of demand response programs (DRPs), installation of distributed generation (DG) with power transmission distribution factors, and DC dynamic load flow is presented in this paper. In fact, finding the optimal time execution of DRPs and the bus for installing wind units with its probabilistic effects is considered. In this model, the congestion is decreased and the available transfer capability (ATC) rates are significantly improved. According to various types of price-based DRPs, the customers motivate to change their utilization models by shifting the price of electricity at different times. Finally, the proposed model is evaluated on the well-known IEEE 39-bus New England power system. The numerical results show the efficiency of the proposed method because, after its application, the available transmissibility values in the critical buses have significantly increased. At the same time, system peak loads, total system costs, and losses are reduced, and the voltage profile also shows a significant improvement. Totally, numerical results demonstrate that using the recommended algorithm, system loss and cost decrease by 9 percent and $4472.