Help with location of commands necessary for EA creation
-
Hello guys,
I am try to create a EA. This is the first EA that I try to create, so I find it difficult to locate the commands necessary. Any help on which commands to use for my plan below will be appreciated.
First, I want to remain in control of the trade entry. I would buy or sell manually, and only then the EA will manage the trade. So, I think I should use the "on Trade" function of Events.
Second, taking going long for example, I want the EA to place 3 buying orders at each 10 pips of the trade going in my direction. Other criteria are:
- the volume has to double (from the previous entry) for each standing order
- take profit is the same of the parent trade (the one I open)
- fixed stop loss for each entry
Any help would be greatly appreciated.
Paolo
-
You say "my direction" - is this the profitable direction or when you lose?
Because normally people double the lot size when they lose, which is probably not "their direction" :))By the way there is some example for creating new trade on every 10 pips - https://fxdreema.com/demo/mt4-loop-add-to-volume-on-loss - it does that on loss, but I don't know what is your "my direction".
To allow the EA to work with your manual trades, set this to 0:
