So I wanted to back-test a strategy idea that I have but I am not sure if it is even possible to code without much difficulty.
So let’s say that the American stock market opens at 15.30 in my local time. At 15.15 this strategy should check if Nasdaq 100 in the premarket is up or down (e.g IG markets allows buy/sell outside the regular opening hours). At 15.15 if the Nasdaq 100 index is up more than 0.2 percent then we go long 1 german index future and if the Nasdaq 100 is down by more than 0.2 percent then we go short 1 german index future. At exactly 15.35 we always close all german index future positions. This should be done everyday monday-friday.
Is this possible to code or it would it be too difficult?
Hope you understand what I mean with my strategy.
Best regards