Experts: Trailing_Profit

 

Trailing_Profit:

Closing all open positions with the specified profit percent.

Author: Vladimir Karputov

 
Why does it continue to close newly opened positions until the price changes noticeably from the price at which it was last triggered? Partly it helps to change the processing time from 3 sec to e.g. 30 sec until the price goes away, but in 30 sec a lot of valuable things can happen....
Совершение сделок - Торговые операции - Справка по MetaTrader 5
Совершение сделок - Торговые операции - Справка по MetaTrader 5
  • www.metatrader5.com
Торговая деятельность в платформе связана с формированием и отсылкой рыночных и отложенных ордеров для исполнения брокером, а также с управлением...
 
AngryBirds:
Why does it continue to close newly opened positions until the price changes noticeably from the price at which it was last triggered? Partly it helps to change the processing time from 3 sec to e.g. 30 sec until the price goes away, but in 30 sec. a lot of valuable things can happen...

Please show me:

  • type of trading account (netting or hedge)
  • trading account balance, currency and leverage
  • trading server you are connecting to
  • two log files (from the "Experts" tab and from the "Log" tab.
  • explanations of the words "... he continues to close newly opened positions until ..." are desirable.

 
AngryBirds:
Why does it continue to close newly opened positions until the price changes noticeably from the price at which it was last triggered? Partially helps changing the processing time from 3 sec to 30 sec, for example, until the price goes away, but in 30 sec. a lot of valuable things can happen....

The logic of the Expert Advisor is built as follows: as soon as an order is received, it closes all positions. But there is a nuance: if some position is not closed (for example, the price changed and a requote was received), the Expert Advisor will go (after 3 seconds) to a new round and will try to close positions again.

 

On the example you can see that after closing a deal with "Trailing_Profit" in plus profit, the price stays in place for several minutes, and when trying to open a new deal manually or by expert-oppositnik in a few seconds "Trailing_Profit" closes it again (by default every 3 seconds), and this is until the price does not go sideways, only then Trailing_Profit starts counting its profit again.

Files:
cksta9.png  139 kb
39j4aq.log  374 kb
u2cav147.log  53 kb
 

the same on currency pairs at different brokers

 
AngryBirds:

On the example you can see that after closing a deal with "Trailing_Profit" in plus profit the price stalls for a few minutes, and when you try to open a new deal manually or by Expert Advisor in a few seconds "Trailing_Profit" closes it again (by default every 3 seconds), and this is until the price goes sideways, only then Trailing_Profit starts counting its profit again.


Well, you have launched two Expert Advisors that conflict with each other! One of them closes positions when profit ("Trailing_Profit") is reached. While it closes, the second EA "Opposit ..." manages to open inverted positions.


I have already written somewhere recently: such functionality should be placed in ONE EA.

 
Automated-Trading:

Trailing_Profit:

Author: Vladimir Karputov

nice tool!

1000 this in deposit value 1000$ or 1000pips?

 
dimanep :

nice tool!

1000 this in deposit value 1000$ or 1000pips?

In the description it is written that "1000" is money.

 
Hello! Is it possible to add stop loss setting to the EA? And a small bug. If you close one of several orders manually, all of them are closed.
 
POSTNEV:
Hello! Is it possible to add stop loss setting to the EA? And a small bug. If you close one of several orders manually, then all of them are closed

This EA does not work with pending orders. You are confused.