Experts: Universal trailing stop

 

Universal trailing stop:

The Expert Advisor works both in normal mode with one positions, and in the HEDGE mode with multiple positions.

Author: Vladimir Khlystov

 
it does not open any order in backtest or demo
 

As I understand - this EA must not open any trade - because it is trailing stop tool to place a stoploss/traling stop for the orders opened by us.

But there are 18 errors when compiling - 


 
Sergey Golubev:

As I understand - this EA must not open any trade - because it is trailing stop tool to place a stoploss/traling stop for the orders opened by us.

But there are 18 errors when compiling - 


Seems - fixed here.

 
Why trailing stops if the stop loss is zero?
 

trailing translates the stop loss in the profitable zone. That is closing on the stop loss of the trawl will bring you profit

 
Sergey Golubev:

Seems - fixed here.

Fixed and translated version: post
Please fix this EA to work in Metatrader 5
Please fix this EA to work in Metatrader 5
  • 2018.07.31
  • www.mql5.com
This EA is here https://www.mql5.com/en/code/15848. Please fix it to work in Metratrader 5...
 
Sergey Golubev :
Fixed and translated version: message

Latest version here
https://www.mql5.com/en/code/28975/233122

 
rod777 :
he does not open any orders in the test or demo

In the tester opens to the possibility of checking it. On a demo and on real life does not open anything

Reason: