. Advanced statistical codes we present in MINITAB statistical environment, produces comprehensive computational and graphical outputs for the best stability analysis, additive main and multiplicative interaction effect (AMMI). The experiment comprised of a population of doubled-haploid wheat lines at 2006-2009 ys. As lattice designs. The results of AMMI analysis of grain yield showed the significant (P<0.01) effect of years, lines, and their interaction effect, along with 49.1, 7.80 & 20.63% of the total variation, respectively. Also the written macro partitioned the GEI effect to three IPCA scores, accounted for 40.70, 35.32 & 23.96% of the GEI, respectively. The results of the cross-validation with FR (Cornelius) indicated the appropriateness of AMMI2 model, whereby the biplots of genotypes & years drawn, by which the stable genotypes were chosen. This program provided useful computations such as: principal component analysis, cluster analysis, Finlay-Wilkinson stability regression analysis and so on. In general, this program has a high potential for AMMI yield (etc) stability analyses, following estimating their parameters and could be applied by researchers working with stability analysis in plant breeding programs to obtain the most tolerant/resistant cultivars during multienvironment trials.