FOREX - Pairs Trading or Long Short

Job ID: 31950297

Budget: $30 – $250 USD

I need the advice of an expert who worked with this strategy.
I created a whole strategy using Python with linear regression, spread.

The problem is:

I open a buy and sell operation at the second standard deviation. The operation walks one standard deviation going straight and the result is negative.

I need an expert to understand what I'm doing wrong.
Related categories: Python Statistics Mathematics Deep Learning