How to build robot to manage operations
-
Please help. I want to build a robot that manages operations. The idea is that the operation is manual and the robot places the stop loss, the take profit, the brakeven and the trailing stop. And also that if the operation advances to fabor x amount of pips open a new operation in the same direction of the trend. I do not know with which condition to start (on trade, if trade or each trade) and what would be the first condition, if the block of trailing and breakeven (My free fxDreema EAs: 5. Customizable trailing stop) or the block of condition for second purchase or sale) thank you
-
@campero That doesn't look especially complex to implement, but we will need a detailed list of all features you want. So please confirm they are:
- Distance in pips for break even.
- Distance in pips for TS to be activated AFTER breakeven is activated.
- Distance in pips for SL as soon as a trade is open.
- Distance in pips for TP as soon as a trade is open.
Am I missing something?
-
Hello Distance breakeven 20 pips tunable. What is TS? Distance Stop Loss 35 pips modifiable. Take Profit distance 105 optimizable pips. I wish I could build it myself to begin to understand the builder. I appreciate your suggestions to improve it. Thanks
-
@campero Here you have a first version:
https://fxdreema.com/shared/48wyAu3R
You can use it and specify any input parameter you want. TS means trailing stop. All distances are in pips. I hope it helps.
-
Aaaaaa. TS 50 value, all values with the possibility of optimizing them. Thanks thanks thanks
-
10 points, I already have to begin to orient myself. Thanks, again
-
@campero You're welcome.
-
Hi all.
I have reproduced the robot in the builder. I can not find where to establish how many pips away (from the manual operation, buy or sell) I want to make the first operation and then the 2nd, 3rd, 4th etc. I am confused with the first condition, when translating it tells me ¨ from the newest to the oldest¨ My intention is to open operations from a manual operation already open (it would be the first, the robot does the 2nd, 3rd, 4th etc. And a second question is it possible to test it in the strategy tester? I have not succeeded. Thanks for your help.
THE WEB LINKS IS: shared/p6iLgNUwd -
@campero I answer the second question first: no. You cannot backtest an EA that depends on manual trades that were not opened by the EA. On the first question, I don't understand what you mean by 2nd, 3rd and more trades. There was no mention of additional trades on your opening post. When and how those trades are supposed to be open?
-
Hello.
Maybe I didn't know how to explain myself well. The basic idea is to create a robot to automate a mathematical progression. I explain the steps. Step 1) I open a manual operation. Step 2) the robot puts the stop loss (35 pips), the take profit (optimizable), the break even and the trailing stop TO THAT OPERATION. Step 3) If the operation advances in favor 35 pips THE ROBOT OPENS A SECOND OPERATION with the same conditions as the first one (stop loss 35 pips etc.) Step 4) If the operation advances in favor another 35 pips, THE ROBOT OPENS A THIRD OPERATION and so on (Fourth, fifth etc) If the price goes back they will be closed with the trailing stop. The stoploss of the last operation is lost but it is won in the remaining ones. For weekly trading.
Thank you so much for helping me. -
@campero Then you can do this:

I created a Constant for the distance in pips to open (35 in your example), but you can use any other you need.
-
Hello
Sorry, I couldn't explain myself. As the example says (¨Add to Volume (every 10 pips)¨) my wish is that the robot adds a new volume every 35 pips in favor, as many times as the advance of the price in favor allows it (example the price advances 120 pips In favor, the robot adds volume at 35 pips, another volume at 70 pips and another volume at 105 pips). I have done this build but it doesn't work. What am I doing wrong? Thanks fxdreema.com/shared/uNmjNnWE -
@campero You need to know that fxDreema doesn't add volume to an open trade. It just opens a new trade. This means you will have as many new trades as levels in profit you are looking for. Is the what you want?
-
Yes, yes, that's what I want. If the price advances 35 pips in my favor, open a new trade with the same lot and with the same stop loss (35 pips) AND IF THE PRICE ADVANCES ANOTHER 35 PIPS FROM THIS NEW TRADE, open a third trade and so on, all with the same stop loss, the same break event and the same trailing stop. Thank you for your effort to understand me.
-
@campero Pink for each trade block, pink pips way block, pink add to volume block. This will add a new trade but use the original lot, st & tp.
-
@jstap said in How to build robot to manage operations:
Pink for each trade block, pink pips way block, pink add to volume block. This will add a new trade but use the original lot, st & tp.
Thanks for the help. Soy newbie. Can you tell me the name of the blocks? thanks again
-
@campero The names are in the post above, make a start and put the shared link on here, things are quite easy to look at then.
-
@jstap said in How to build robot to manage operations:
The names are in the post above, make a start and put the shared link on here, things are quite easy to look at then.
Thanks
-
@campero This is what jstap suggested:
