Pair Trading - Exploring The Low Risk Statistical Arbitrage Trading Concepts

VJAY

Well-Known Member
Not sure, I am at office now will check in the evening, but this pair is output in my system. Please check if these 2 pairs have any split/bonus in the last 200 days, in which case pValue would be impacted. You can quickly check for splits by plotting the pairs as follows:
returns[['IL&FSTRANS','ITDCEM']].plot()
1538629284674.png
 

VJAY

Well-Known Member
Ok..Looks to be fine, not sure why the pvalue is different, one of the issues of using machine learning, few things become blackbox. Anyway let me check this in the evening.
if today traded then buy triggered in ITDCEM...short not triggered
 

VJAY

Well-Known Member
Seems pvalue is correct in my script, its about 0.0015, check how many days data you passing in S1,S2, I have restricted it to 200 days data.
View attachment 29135
The zscore today is 2.614, so we need to take second increment of trades tomorrow as follows:
View attachment 29136
I had not changed anything in your code which shared with us ....

1538663924656.png