//You can buy 2 shares at the same time and sell them at different times (scaling out).
If time=900 then buy 2 shares next bar at market;
If time=902 then sell 1 shares next bar at market;
If time=904 then sell 1 shares next bar at market;
//You can also buy 2 shares in succession and sell them at the same time.
If time=900 then buy 1 shares next bar at market;
If time=902 then buy 1 shares next bar at market;
If time=904 then sell 2 shares next bar at market;
//But it seems you cannot buy 2 shares in succession and sell them at different times:
If time=900 then buy 1 shares next bar at market;
If time=902 then buy 1 shares next bar at market;
If time=904 then sell 1 shares next bar at market;
If time=906 then sell 1 shares next bar at market;
//This strategy actually just sells both shares at 9:04am.
Anyone know how to code this?
Can you help answer these questions from other members on futures io?