Experts: ManualTradeOnStrategyTester - page 2

 


Hi,

i tried to use this Indicator too, but i got the same Message.

Log write:

1. 2020.04.18 21:14:44.766 strategytesterpracticetrade is not custom indicator and will be removed

2. 2020.04.18 21:14:44.766 cannot create indicator


Can anybody solve this Problem?

 


Ok, the solution is (see the Picture).

Mouse-Right Click on ExpertMACD to open up the Context Menü in Navigator-> select "Testen" or "Test".



But now i have another problem.


If there is a .txt File named "sell.txt", "buy.txt" or "close.txt" located on

Win10:

C:\Users\[User]\AppData\Roaming\MetaQuotes\Terminal\Common\Files

MT5 open every time a new Order! It dosent close an Order if there is a close.txt located on the Path.

I think the Problem i here in the Code:


// if a close.txt is found, this will close any open position with the maximum volume size stated on the position. 
   if(FileIsExist("close.txt",FILE_COMMON))
     {

      FileDelete("sell.txt",FILE_COMMON);
      FileDelete("buy.txt",FILE_COMMON);
      FileDelete("close.txt",FILE_COMMON);

      if(OpenPosition()=="buy")
        {
         PositionSelect(_Symbol);
         JustifySize=NormalizeDouble(PositionGetDouble(POSITION_VOLUME),2);
         ExecuteTrade("sell",CurP,JustifySize);
        }

      if(OpenPosition()=="sell")
        {
         PositionSelect(_Symbol);
         JustifySize=NormalizeDouble(PositionGetDouble(POSITION_VOLUME),2);
         ExecuteTrade("buy",CurP,JustifySize);
        }
     }


It appears that MT5 is reacting differently on this line than desired

if(OpenPosition()=="buy")

Files:
pic.jpg  98 kb
 
I got this message EA aborted !
Files:
the_PR.png  38 kb
 
Hello good time
Possibility to send this app or excel file to me
Because I don't do anything