Page 1 of 1

Buy & Sell Cash machine

PostPosted: Mon Dec 30, 2019 8:41 am
by Ludo69
Hi,
other EA in the same start idea:

at first use Buy&Sell ea V1.5
Buy_and_Sell_EA_V1.5.mq4
(45.91 KiB) Downloaded 297 times


actualy:
X pips corresponding to the difference between actual price and positioning orders like:
over the price order corresponding to actual price + X pips
under the price order corresponding to actual price - X pips

and possible orders are:
over the price order type : buy long or sell short = buy stop or sell stop.
under the price order type : buy long or sell short = buy limit or sell limit.

NEW ORDERS for the 2 plans:
is it possible to have 4 pending orders like:


over the price order:
Buy stop SL + TP
sell stop SL + TP


Under the prise order:
Sell limit SL + TP
Buy limit SL + TP

when price tootch one plan ( over or under ) the 2 orders of the plan are actived and the 2 other pending orders in opposit plan will be deleted.

if TP is won on one of active order, delete the other.

and after placed 4 new orders corresponding to the parameters (X SL TP).

Thank for your job.

Regard,

Ludovic

Re: Buy & Sell Cash machine

PostPosted: Tue Dec 31, 2019 7:21 am
by Apprentice
Your request is added to the development list.
Development reference 510.

Re: Buy & Sell Cash machine

PostPosted: Tue Jan 14, 2020 5:57 am
by Apprentice
Buy_and_Sell_EA.mq4
(45.3 KiB) Downloaded 290 times

Try this version.

Re: Buy & Sell Cash machine

PostPosted: Thu May 28, 2020 7:41 am
by Ludo69
Hi

if you are agree, it's time to update the EA with some best optimisations.

1) the orders in stop mode like buy stop and sell stop only
2) when one of them is actived, the opposite is deleted imédiatly
3) 2 new pending orders are created ( stop orders ) using the parameters applicated to the executed price order like the 2 first pending orders generated.


Like that, the sequence of orders should be as follows:

ex: XAU/USD price = 1684.53

EA set
X=500
SL=250
TP=20


1 N° Order 1 Sell Stop 1679.53 SL 1682.03 TP 1679.33
2 N° Order 2 Buy Stop 1689.53 SL 1687.03 TP 1689.73
3 N° Order 2 Buy 1689.53 SL 1687.03 TP 1689.73
4 N° Order 1 Delete
5 N° Order 3 Sell Stop 1684.53 SL 1687.03 TP 1684.33
6 N° Order 4 Buy Stop 1694.53 SL 1692.03 TP 1694.73
7 N° Order 2 TP 1689.73 SL 1687.03 TP 1689.73
8 N° Order 4 Buy 1694.53 SL 1692.03 TP 1694.73
9 N° Order 3 Delete
10 N° Order 5 Sell Stop 1689.53.53 SL 1692.03 TP 1689.33
11 N° Order 6 Buy Stop 1699.53 SL 1697.03 TP 1699.73

etc....


in this situation we always have 2 pending orders ( Buy Stop and Sell Stop ) and 1 actived order wainting SL or TP realisation.

regards,

Ludo

Re: Buy & Sell Cash machine

PostPosted: Fri May 29, 2020 4:41 am
by Apprentice
Your request is added to the development list.
Development reference 1396.

Re: Buy & Sell Cash machine

PostPosted: Fri Sep 18, 2020 7:34 am
by Apprentice
It is exactly how it works.