Buy & Sell Cash machine

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Buy & Sell Cash machine

Postby Ludo69 » Mon Dec 30, 2019 8:41 am

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 293 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
Ludo69
 
Posts: 28
Joined: Mon Apr 17, 2017 5:29 am
Location: France

Re: Buy & Sell Cash machine

Postby Apprentice » Tue Dec 31, 2019 7:21 am

Your request is added to the development list.
Development reference 510.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy & Sell Cash machine

Postby Apprentice » Tue Jan 14, 2020 5:57 am

Buy_and_Sell_EA.mq4
(45.3 KiB) Downloaded 286 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy & Sell Cash machine

Postby Ludo69 » Thu May 28, 2020 7:41 am

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
Attachments
Buy_and_Sell_EA (8).mq4
version to update
(45.91 KiB) Downloaded 190 times
Ea parameters.png
parameters
actualy result with the EA.png
result
Ludo69
 
Posts: 28
Joined: Mon Apr 17, 2017 5:29 am
Location: France

Re: Buy & Sell Cash machine

Postby Apprentice » Fri May 29, 2020 4:41 am

Your request is added to the development list.
Development reference 1396.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy & Sell Cash machine

Postby Apprentice » Fri Sep 18, 2020 7:34 am

It is exactly how it works.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Google [Bot] and 10 guests