Page 1 of 3

Buy_and_Sell_EA

PostPosted: Tue Nov 12, 2019 5:48 am
by Apprentice
Based on request.
viewtopic.php?f=38&t=69109
Buy_and_Sell_EA.mq4
(28.78 KiB) Downloaded 1057 times

Re: Buy_and_Sell_EA

PostPosted: Fri Nov 22, 2019 12:58 am
by ajc922
Apprentice, could you please add 2 inputs to this? Please add a trailing stop loss and a trailing take profit. Thank you!

Re: Buy_and_Sell_EA

PostPosted: Fri Nov 22, 2019 5:09 am
by Apprentice
Your request is added to the development list.
Development reference 341.

Re: Buy_and_Sell_EA

PostPosted: Fri Nov 22, 2019 6:22 am
by Apprentice
Buy_and_Sell_EA.mq4
(46.33 KiB) Downloaded 664 times

Try this version.

I also need a definition for the trailing limit logic.

Re: Buy_and_Sell_EA

PostPosted: Fri Nov 22, 2019 4:06 pm
by ajc922
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

Re: Buy_and_Sell_EA

PostPosted: Sun Nov 24, 2019 5:13 pm
by Ludo69
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

Re: Buy_and_Sell_EA

PostPosted: Mon Nov 25, 2019 6:05 am
by Apprentice
Buy_and_Sell_EA.mq4
(29.13 KiB) Downloaded 604 times

Try this version.

Re: Buy_and_Sell_EA

PostPosted: Mon Nov 25, 2019 10:08 pm
by ajc922
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.

Re: Buy_and_Sell_EA

PostPosted: Wed Nov 27, 2019 6:54 am
by Apprentice
I do know what the trailing stop is, What is trailing limit?
Can you define it?

Re: Buy_and_Sell_EA

PostPosted: Wed Nov 27, 2019 3:12 pm
by Ludo69
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 ....