Experts: LacusTstopandBE

 

LacusTstopandBE:

An assistant EA for manual trading. Sets Stop loss, Take profit, moves positions to breakeven and applies trailing.

Author: Vladimir Karputov

 
This EA is great, however it appears it only sets the stop loss and take profits to BUY orders and not SELL orders. Can this be fixed?
 
mlewk1101 :
This EA is great, however it appears it only sets the stop loss and take profits to BUY orders and not SELL orders. Can this be fixed?

This is a technical forum. A correctly asked question on the technical forum includes: a description of the settings, a description of the symbol, a description of the timeframe, you must attach a log file.


Bottom line: the adviser works great.

Settings:


Result:


Log file:

        2020.01.29 00:00:00   CTrade::OrderSend: instant sell 0.01 EURUSD at 1.10220 [requote (1.10219/1.10225)]
        2020.01.29 00:00:01   instant sell 0.01 EURUSD at 1.10219 (1.10219 / 1.10225 / 1.10219)
        2020.01.29 00:00:01   deal #2 sell 0.01 EURUSD at 1.10219 done (based on order #2)
        2020.01.29 00:00:01   deal performed [#2 sell 0.01 EURUSD at 1.10219]
        2020.01.29 00:00:01   order performed sell 0.01 at 1.10219 [#2 sell 0.01 EURUSD at 1.10219]
        2020.01.29 00:00:01   CTrade::OrderSend: instant sell 0.01 EURUSD at 1.10219 [done at 1.10219]
        2020.01.29 09:17:41   position modified [#2 sell 0.01 EURUSD 1.10219 sl: 1.10119]
        2020.01.29 09:17:41   CTrade::OrderSend: modify position #2 EURUSD (sl: 1.10119, tp: 0.00000) [done]
 
hello Lacus, sorry for boring you, i just need to ask you if you can add the possibility to write a comment (just to identify each trades) and the possibility to add a magic number. Many thanks, ciao, have a nice day. Fabio
 
baccicin:
hello Lacus, sorry for boring you, i just need to ask you if you can add the possibility to write a comment (just to identify each trades) and the possibility to add a magic number. Many thanks, ciao, have a nice day. Fabio

No. Read the description: "The Expert Advisor is only designed for manual trading. The EA sets stop loss and take profit for positions and pending orders on the current symbol. It also has trailing stop and breakeven functions." That is why the EA uses Magic equal to '0' - since a position opened manually has Magic '0'.

 
Vladimir Karputov:

No. Read the description: "The Expert Advisor is only designed for manual trading. The EA sets stop loss and take profit for positions and pending orders on the current symbol. It also has trailing stop and breakeven functions." That is why the EA uses Magic equal to '0' - since a position opened manually has Magic '0'.

ah oki thanks for your reply and for your patience. I found this answer

https://www.mql5.com/en/forum/60159/page2#comment_1778582

it means that the EA could be attached on one chart only and it manages all the positions opened? I mean, if for example i attach the EA on eurusd, also all the other trades open for any other pairs will be manged by the EA? It would be great because on the other other charts i could attach some other EA.

Sorry for abusing your time, it's just to be sure i am understanding correctly.

Many thanks have a nice day

Experts: LacusTstopandBE
Experts: LacusTstopandBE
  • 2015.07.24
  • www.mql5.com
LacusTstopandBE: Author: Lacus1977...
 
Good day Vladimir,
This is just what I'm looking for but please answer the following:

If I'm using trailing stop and a fixed take profit do I have to use the following inputs or can they be left blank? 
Close all if profit reached the x percent of balance or
close all if profit reached the x profit amount in currency
Close if profit reached x profit amount

Are ALL the inputs to be in points or pips - see example below:
Breakeven Gain after reaching x pips - the number of profit points after which a position will be moved to breakeven.


Thank you.


 
drakeysnr :
Good day Vladimir,
This is just what I'm looking for but please answer the following:

If I'm using trailing stop and a fixed take profit do I have to use the following inputs or can they be left blank? 
Close all if profit reached the x percent of balance or
close all if profit reached the x profit amount in currency
Close if profit reached x profit amount

Are ALL the inputs to be in points or pips - see example below:
Breakeven Gain after reaching x pips - the number of profit points after which a position will be moved to breakeven.


Thank you.


None of the settings can be disabled - all settings always work.

To find out 'pips' or 'points' - look inside the code.