Attachments forums

List of attachments posted on this forum.


All files on forums: 137604

Re: Timmy's Expert advisor service

TimmyHanke, Fri May 11, 2018 4:18 pm

Dune2000 wrote: Fri May 11, 2018 2:18 pm


Dear Sir!

Thank You Sir for your Effort!

Can you modify the EA so that when 1st SL is hit, the EA opens a Buy/Sell trade immediately Opposite to the 1st trade? And if 2nd Trade Hit its SL also then immediately open Opposite trade to 2nd Trade and so on.

Example:

The EA placed two orders at an offset of 10 pips, A Buy Stop order and a Sell Stop Order.
Lets say that Buy Stop got triggered, the EA Deleted the Other Pending Order.
When this Buy order Hit its SL1, the EA should Immediately open a Sell Order (Not a Pending Sell Stop) This is Step 2 of Martingale.
Now if this 2nd order Hits its SL2, The EA should Immediately open a Buy Order (Not a Pending Buy Stop) This is Step 3 of Martingale.
And so on.....
The EA should stop when TP is hit on any Step of Martingale!

Thank You in Advance!

This is how it does now.

It creates 2 pending orders as before buy & sell , lets call it pending group 1 , if it get a take profit from it it continues and creates group pending 2 , if it hits a stoploss it waits in the group until it hits a take profit then it continues .

So lets say pending group 1 buy hits stoploss it will trigger an instant sell , if that hits stoploss it triggers a buy trade and so on until a profit has been taken.

I used the same parameters for the countertrades as for the pending orders just to keep the size of the settings down.

See if its to your liking .
All files in topic