With pending (Limit or Stop) if already triggered you can use the above snippet, while if not triggered they are automatically CANCELLED the next time your code is executed, so you just need to apply the above (modified) snippet not to enter at market after a given time:
in this case you place a pending order, on Wed. or Fri., only before 190000 (while you make no check the other days). You will also close ALL open orders at 190000 on those two days.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.