Hello,
I am about 6 weeks into learning python. I work on learning python around 2 hours a day, taking online classes from different providers etc. I am trying to figure out how to build a backtest around the midpoint. So the midpoint would be initialized at 10:30 AM. Then if the market is above Midpoint and retraces within $2 of the Midpoint price the algo will buy and look for a profit of $6.00. If the market drops more then $2 past midpoint then it will sell for a loss. Then I want the same scenario to play out on the short side. The problem is I don't have the slightest idea how to do this on future contracts. Any guidance, suggestions or funny comments are welcomed. I am not looking for someone to solve the problem for me, just kind of guide me would be nice.