I use OANDA. The OANDA plugin allows the option for DAY or GTC for pending orders.
Let's say I have this simple code to enter pending orders:
Code: Select all
buy next bar at High + x Stop;
sellshort next bar at Low - x Stop;
But, if I use GTC, how long are the pending orders going to last? I haven't found any way to cancel pending orders by code, so will they be pending forever?
Thank you!
Ed