Buy_and_Sell_EA

Custom MT4 expert advisors published here.

Moderator: admin

Buy_and_Sell_EA

Postby Apprentice » Tue Nov 12, 2019 5:48 am

Based on request.
viewtopic.php?f=38&t=69109
Buy_and_Sell_EA.mq4
(28.78 KiB) Downloaded 1051 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy_and_Sell_EA

Postby ajc922 » Fri Nov 22, 2019 12:58 am

Apprentice, could you please add 2 inputs to this? Please add a trailing stop loss and a trailing take profit. Thank you!
ajc922
 
Posts: 16
Joined: Mon Nov 18, 2019 4:19 pm

Re: Buy_and_Sell_EA

Postby Apprentice » Fri Nov 22, 2019 5:09 am

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

Re: Buy_and_Sell_EA

Postby Apprentice » Fri Nov 22, 2019 6:22 am

Buy_and_Sell_EA.mq4
(46.33 KiB) Downloaded 663 times

Try this version.

I also need a definition for the trailing limit logic.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy_and_Sell_EA

Postby ajc922 » Fri Nov 22, 2019 4:06 pm

Are you saying that you need to know what to name the input? Sorry I'm not sure what you are asking. If you name it trailing stop and trailing take profit that will work great. And please have an option for these inputs to be set in pips and set in %. Thank you
ajc922
 
Posts: 16
Joined: Mon Nov 18, 2019 4:19 pm

Re: Buy_and_Sell_EA

Postby Ludo69 » Sun Nov 24, 2019 5:13 pm

Hi,
thanks to be interested in this project.

Fisrt:
as you see on the picture at : https://ibb.co/DtX1NbY
Buy limit order is full ok

Sell limit order is no good to be in accordance with my mind.
the sell limit order have to be under the market price

Exemple ( order 1 and 2) in the picture
For a market price at 1.11192
Buy limit price =1.11292 S/L = 1.11192 T/P = 1.11392 = OK with your EA
Sell limit price = 1.11092 S/L = 1.11192 T/P = 1.10992
if one of them is executed, the orther is canceled and wait the execution of S/L or T/P before to pass 2 news order.

Regards
Ludo69
 
Posts: 28
Joined: Mon Apr 17, 2017 5:29 am
Location: France

Re: Buy_and_Sell_EA

Postby Apprentice » Mon Nov 25, 2019 6:05 am

Buy_and_Sell_EA.mq4
(29.13 KiB) Downloaded 599 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_and_Sell_EA

Postby ajc922 » Mon Nov 25, 2019 10:08 pm

What I meant by adding a trailing stop loss input was to add an input that will adjust the stop loss if the trade is profitable so that if the trade reverses and starts to go the other way it won't cross back under the breakeven point and it will stop out and still give you profit. Does that make sense? Sorry if it doesn't. I downloaded the newest version that you uploaded and it still doesn't have a trailing stop loss.
ajc922
 
Posts: 16
Joined: Mon Nov 18, 2019 4:19 pm

Re: Buy_and_Sell_EA

Postby Apprentice » Wed Nov 27, 2019 6:54 am

I do know what the trailing stop is, What is trailing limit?
Can you define it?
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy_and_Sell_EA

Postby Ludo69 » Wed Nov 27, 2019 3:12 pm

Hi,
thank you for your work.

just a few things to rectify:
New Purchase and Sale orders are placed before the SL or TP is completed.
1) Can they be placed after the fulfillment of one of the conditions of the current order so that only one order is in progress once the barrier (X) is reached.

2) if it finished on SL can predict a martingale = X numbers of initial lots etc ....

like that we have: 1st order Lot = 0.1 if SL then 2nd order = 1.5 Lot etc ....
Ludo69
 
Posts: 28
Joined: Mon Apr 17, 2017 5:29 am
Location: France

Next

Return to MT4 Expert Advisors

Who is online

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