Is it possible to have multiple pending orders placed after the previous pending order is filled?
-
I have studied the examples and read the forum and nothing I have tried has worked so far.
Here is an example of what I am trying to do.
I want to be able to place a buy order and set the TP at + 2% and SL at -2% from the order price.
After that order immediately have it place a pending sell order at -1% from the original price, with the TP and SL set at the same +2/-2 percentage from the original order price. so if the original buy is $100, then for both orders the TP would be 102 and the SL would be 98. But this needs to be set off of % of the original order price.
If it goes up and hits TP then cancel the Pending sell order.
If it goes down and trades the pending sell order, place a pending buy order at the original purchase price with TP and SL at the +2/-2%. ie 102/98
Then if the price hits the TP or SL all the orders (BUY and Sell) will be completed at the same price: +2/-2% from the original order price. ie 102/98
The last pending order would then be cancelled.
Is it possible to do this?
-
Two initial questions. Is the fisrt order a manual or an automatic one? If manual, when is it launched?
-
@l-andorrà The first order is automatic. But eventually would also like it to operate with manual orders too.
Right now it only places the first buy based off simple indicator but doesn't continue with the buys/sells.
Here's where I'm at now.
-
That's a good beginning. I recommend you the following:
-
Don't join block 17 to block 10. Same with blocks 18 and 15, 12 and 19, 13 and 20. That's an inefficient thread of orders. They will do the same job just on their own.
-
Group numbers don't match. For example, on block 17 group 10 has benn specified, but it's nor referred to in any other block. Same with blocks 18, 19 and 20.
-
Why do you need a counter block before the first buy. What is is supposed to count?
-
-
@l-andorrà Thanks for your reply.
-
I only attached those blocks after if not working without it. Didn't work either way.
-
I corrected those numbers in subsequent trials but still didn't work.
-
You are right I don't need a counter there.
This is where I am at now. It will make the original buy but doesn't place the sell order and other orders correctly.
https://fxdreema.com/shared/Oq2Pypq4c
Thanks again for your help. I've made hundreds of modifications and then trials and still not getting anywhere.
-
-
You have not specified any group number on any buy/sell pending block. They must match. For example, blocks 5 and 6 must be specified the same group (only block 5 is specified for group 1). Same for pairs 7-9, 10-15 and 16-19.