Job finished
Specification
Read and understand it carefully especially for the first and second trade understand them well
Example: The bot should place two pending trades, the first is a buy stop and the second is a sell stop, and the difference between them is 20 pips.
The trade that is activated first must have a lot size of 0.01, a profit of 120 pips, and a stop loss of 120 pips.
The trade that will be activated after that will be a 0.02 lot, take profit 100 pips and stop loss 120 pips.
For example, if the buy trade is activated first, it will be 0.01 lot and 120 pips profit and 120 pips loss.
So here we have a sell stop trade with a lot of 0.02 because it is the second trade that has not been activated yet and its profit should be 100 pips and its stop loss should be 140 pips.
Note: If the first trade is profitable, all open and pending deals must be deleted.
Let's complete the example and suppose that the first buy trade did not take its profit and the price down and activated a sell stop trade which is 0.02 lots. After activating this trade, the bot will place a buy stop trade directly at the same entry point of the first buy stop trade, but this time with 0.03 lots, meaning that the lots double with each deal.
Here, if sell stop trade wins, stop all open and pending trade. However, if the price goes up again and activate a buystop trade of 0.03 lots, immediately place a sell stop trade of 0.04 lots in the same place as the sell stop trade that preceded it and with the same characteristics which mean with 100 pips tp and 140 pips sl.
The process continues like this by opening opposite trade with double lot until one of the trade makes a profit, after which all pending and open deals are closed.
Note: All buy stop trade have the same entry point, take profit and stop loss, and all sell stop trade have the same entry point, stop loss and take profit.
Note: Put a box for me to specify the lots I want, and as for the stop loss and take profit box, I must specify it either by price or by pips.
Like example
First buy stop 0.01lot
Buy stop2 : 0.05lot
Buy stop3 : 0.09 lot
.
.
.
Also like this on sell stop