Page 3 of 3

Re: Buy_and_Sell_EA

PostPosted: Tue Dec 24, 2019 5:23 am
by Apprentice
Your request is added to the development list.
Development reference 473.

Re: Buy_and_Sell_EA

PostPosted: Wed Dec 25, 2019 5:44 am
by Apprentice
Buy_and_Sell_EA.mq4
(45.91 KiB) Downloaded 670 times

Try this version.

Re: Buy_and_Sell_EA

PostPosted: Thu Dec 26, 2019 8:14 am
by Ludo69
Hi, thank you

V 1.4 is better than v1.5 because a new order Buy and sell are placed after the modify of order when a position is taken and deleted the order in the other direction.
So please continue to devlopt v 1.4.
In this version the SL when buy order is open and modify order is made the SL corresponding to the


When an open position with a buy order is taken, the modified order who make SL and TP position is wrong on SL.
Actualy, the SL corresponding to the breakevent target pip valeur and not to the SL value definited in the section SL TP of order.
it's same un v1.5.

Regards,

Ludovic

Re: Buy_and_Sell_EA

PostPosted: Thu Dec 26, 2019 9:25 am
by Apprentice
Your request is added to the development list.
Development reference 485.

Re: Buy_and_Sell_EA

PostPosted: Thu Dec 26, 2019 10:13 am
by Ludo69
oups
a details about my last post:

it's happen only when breakevent is active .

regards

Re: Buy_and_Sell_EA

PostPosted: Fri Dec 27, 2019 6:03 am
by Apprentice
When an open position with a buy order is taken, the modified order who makes SL and TP position is wrong on SL.
Actually, the SL corresponding to the breakeven target pip value and not to the SL value defined in the section SL TP of order.
Yes, breakeven is not SL/TP. Breakeven moves SL. This is designed to do that.

Re: Buy_and_Sell_EA

PostPosted: Sat Dec 28, 2019 1:38 pm
by Ludo69
Hi

ok with that SL = SL if breakevent = false and = breakevent pips if breakevent = true.

after multi test ( using differents frame time and forex value ) the v1.5 is ok but maybe perfectible.

actualy:
X pips corresponding to the difference between actual price and positioning orders
at first be sure that:
over the price order corresponding to actual price + X pips
under the price order corresponding to actual price - X pips
if it's ok that great.

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

if it's possible to modify that in:
over the price order type : buy long or sell short = buy stop or buy limit or sell stop or sell limit or do nothing.

under the price order type : buy long or sell short = buy stop or buy limit or sell stop or sell limit or do nothing.

to be most interresting, erraze the pending order only if SL or TP is won on the active order.

for exemple XAU:USD :
Price = 1500.00
X =100
over the price order type = buy limit
under the price order type = sell stop
TP = 10
SL = 1000
we have to pending orders:
buy limit order at 1501.00 SL = 1491.00 TP = 1501.10
sell stop order at 1499.00 SL = 1509.00 TP = 1498.90

price is 1501, activation of the 2 orders.
price is 1501.10, buy limit order is closed and sell stop order is deleted and 2 news orders are positionned.

Next Step is martingale option corresponding to an order finished by SL.
In this case next order lot is definited like a variable multiple of base lot.

Thank for your great work.

Regards,

Ludovic

Re: Buy_and_Sell_EA

PostPosted: Tue Jan 14, 2020 5:48 am
by Apprentice
This is exactly how it works now.

Re: Buy_and_Sell_EA

PostPosted: Thu Jan 23, 2020 9:40 am
by kisspfx
The comment is not displaying in this EA, please how do I add a custom comment?

Re: Buy_and_Sell_EA

PostPosted: Fri Feb 07, 2020 1:09 pm
by baowesome
any updates? ex4 file pls thanks