Execute only if futures are up/the market opens green?

J

jimothy

New member
Hi all

I want to create a strategy that will trade leveraged ETFs against something like the S&P. Let’s say $UPRO.

I only want to trade these ETFs if they follow the trend of the day, or I guess more specifically the futures. It’s important that I can back test this and that’s where it’s tough for me to wrap my head.

Simple example logic would be...

If the futures at 9:29am were positive then
Execute code
Else
Go home and sleep

any ideas or better ways to approach?
 

Similar threads

Top