Experts: Martini - page 2

 
Abdul Salam :

this advisor does not work in the strategy tester and gives the error "OrderSend error 130 "

maybe some bodies fix it

2ndly

it runs once and is needed to load again in the schedule. . .. this is me not working automatically

what's the problem i'm using an octafx broker

Increase the distance to the stops so that it is not less than stoplevel.
 
Vladimir Khlystov :
Increase the distance to the stops so that it is not less than stoplevel.
what changes should i make in the code
 
Abdul Salam :
what changes should i make in the code
In the code, no, only in the parameters.
 
Good day! Please tell me what needs to be changed in the code so that the volume of lots of new orders multiplied not by a factor of 2, but by a different number, say 1.5 or any other.
 
Tumc0r:
Good day! Please tell me what needs to be changed in the code so that the volume of lots of new orders multiplied not by a factor of 2, but by a different number, say 1.5 or any other.

chenge

  if(OrderSend(Symbol(),OP_SELL,Lot*2,NormalizeDouble(Bid,Digits),slippage,0,0,"",magic,0,Red)!=-1) return;
   }
   
   if (Order==-1 && Ask-n*Step*Point>Price) 
   {
      if(OrderSend(Symbol(),OP_BUY,Lot*2,NormalizeDouble(Ask,Digits),slippage,0,0,"",magic,0,Blue)!=-1) return;

-

  if(OrderSend(Symbol(),OP_SELL,Lot*1.5,NormalizeDouble(Bid,Digits),slippage,0,0,"",magic,0,Red)!=-1) return;
   }
   
   if (Order==-1 && Ask-n*Step*Point>Price) 
   {
      if(OrderSend(Symbol(),OP_BUY,Lot*1.5,NormalizeDouble(Ask,Digits),slippage,0,0,"",magic,0,Blue)!=-1) return;
Reason: