def pair_trade(df,returns,ystock,xstock,xres=20,yres=10,amt=10000):
SS1 = df[ystock]
SS2 = df[xstock]
S1 = returns[ystock]
S2 = returns[xstock]
find_coint_significance(S1,S2,significance=0.05)
get_beta(SS1,SS2,20,amt)
plot_pairs(df,SS1,SS2,20,xres,yres)
#You can then call this single function as follows:
pair_trade(df,returns,'HINDZINC','NMDC',20,10,10000)