Pair Trading - Exploring The Low Risk Statistical Arbitrage Trading Concepts

VJAY

Well-Known Member
What value for S1,S2 you are passing to the function find_coint_significance(S1,S2,significance=0.05), is it returns[] or df[] ?
1539082085447.png
 

VJAY

Well-Known Member
Is this how you have defined the parameters S1 & S2?

SS1 = df['GATI']
SS2 = df['GDL']
S1 = returns['GATI']
S2 = returns['GDL']
1539082282894.png
 

VJAY

Well-Known Member

ncube

Well-Known Member
Seems to be fine, not sure what is the problem I will check again in my script in the evening and update you. Can you share the stockdata.csv file that you are using.
Think I got the problem...please check GDL-GATI, I think in the post I may have made the mistake and wrote it as GATI-GDL.
 

VJAY

Well-Known Member
Think I got the problem...please check GDL-GATI, I think in the post I may have made the mistake and wrote it as GATI-GDL.
1539083568331.png

is this pvalue matching with your data?