Close pending orders over weekend
-
Hello
How do I tell my EA to close all pending orders by on Friday 6pm and re-open them on Monday 2am?
Thanks
-
@didymario7 Don't know how to reopen an exact order but, day block-time block-delete pending orders will remove all on a Friday
Same again with buy/sell pending will replace what you want on Monday.
-
@jstap said in Close pending orders over weekend:
@didymario7 Don't know how to reopen an exact order but, day block-time block-delete pending orders will remove all on a Friday
Same again with buy/sell pending will replace what you want on Monday.
closing the trades on friday is the easy part. there should be a way to reopen them on monday. i just dont know how.
-
@didymario7 As I said in my last post, use the same set up as delete but have it set for monday and instead of delete have buy/sell blocks.
-
@jstap said in Close pending orders over weekend:
@didymario7 As I said in my last post, use the same set up as delete but have it set for monday and instead of delete have buy/sell blocks.
If you could explain with blocks that would be very helpful. bear in mind that the deleted orders will have thesame parameters (open, stp, TP) as the deleted ones.
-
@didymario7 The same parameters you used to make the original pending will need to be in the Mon buy/sell block, otherwise you will need a set up like this link text this is how to keep the values for buy in variables and use them, if you have more than 1 it will reset the variables.
-
@jstap said in Close pending orders over weekend:
@didymario7 The same parameters you used to make the original pending will need to be in the Mon buy/sell block, otherwise you will need a set up like this link text this is how to keep the values for buy in variables and use them, if you have more than 1 it will reset the variables.
It makes sense to me now. Thanks alot. What do you mean when you say it will reset the variables if you have more than 1?
If it resets the variables will it reopen all or just one pending (if we are dealing with multiple pending orders)Thanks
-
@didymario7 What is in the link will set the variable every time a new order is placed, think will only change if buy is added, as long as the last order placed is the one you want to replace it's all good.