Buy_and_Sell_EA

Custom MT4 expert advisors published here.

Moderator: admin

Re: Buy_and_Sell_EA

Postby Apprentice » Tue Dec 24, 2019 5:23 am

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

Re: Buy_and_Sell_EA

Postby Apprentice » Wed Dec 25, 2019 5:44 am

Buy_and_Sell_EA.mq4
(45.91 KiB) Downloaded 265 times

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

Re: Buy_and_Sell_EA

Postby Ludo69 » Thu Dec 26, 2019 8:14 am

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

Re: Buy_and_Sell_EA

Postby Apprentice » Thu Dec 26, 2019 9:25 am

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

Re: Buy_and_Sell_EA

Postby Ludo69 » Thu Dec 26, 2019 10:13 am

oups
a details about my last post:

it's happen only when breakevent is active .

regards
Ludo69
 
Posts: 22
Joined: Mon Apr 17, 2017 5:29 am
Location: France

Re: Buy_and_Sell_EA

Postby Apprentice » Fri Dec 27, 2019 6:03 am

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.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 25365
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Buy_and_Sell_EA

Postby Ludo69 » Sat Dec 28, 2019 1:38 pm

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

Re: Buy_and_Sell_EA

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

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

Re: Buy_and_Sell_EA

Postby kisspfx » Thu Jan 23, 2020 9:40 am

The comment is not displaying in this EA, please how do I add a custom comment?
kisspfx
 
Posts: 6
Joined: Mon Jan 20, 2020 11:08 am

Re: Buy_and_Sell_EA

Postby baowesome » Fri Feb 07, 2020 1:09 pm

any updates? ex4 file pls thanks
baowesome
 
Posts: 1
Joined: Fri Feb 07, 2020 1:08 pm

Previous

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: No registered users and 9 guests