MT4 Language --> Someone in this forum is able to do that??? - page 2

 
cloudbreaker:

Have you ANY willingness to learn?


CB

Of course!


But i have to fix the problem on the EA


any help?

 
cloudbreaker:

Have you ANY willingness to learn?

looks like he is willing to earn, not to Learn

 
hi 823,
This is your improved code:

void OpenMarketOrders(){
int cnt=0;
if (myOrderType==1 && ContinueOpening) {
if ((Bid-LastPrice)>=Pips*pt || OpenOrders<1) {
SellPrice=Bid;
LastPrice=0;
if (iTakeProfit==0) { tp=0; }
else { tp=SellPrice-iTakeProfit*pt; }
if (StopLoss==0) { sl=0; }
else { sl=SellPrice+StopLoss*pt; }
if (OpenOrders!=0) {
mylotsi=lotsi;
for(cnt=0;cnt<OpenOrders;cnt++){
if (MaxTrades>12) { mylotsi=NormalizeDouble(mylotsi*multiply,2); }
else { mylotsi=NormalizeDouble(mylotsi*multiply,2); }
}
}

else { mylotsi=lotsi; }

if (mylotsi <=800){ // 800 is the limit

#define maxLot=80; // or double maxLot = MarketInfo( Symbol(), MODE_MAXLOT );
while(mylotsi >= 0.01) {
double lot=MathMin(mylotsi, maxLot)
if(!OrderSend(Symbol(),OP_BUY,lot,NormalizeDouble(BuyPrice,Digits),slippage*mt,sl,tp,"MyMEFx EA"+MagicNumber,MagicNumber,0,ArrowsColor)) {
Print("OrderSend failed");
break;
}
mylotsi -= lot;
}

}

}

return(0);
}

 

Okay, up until now it seems you just want us to repair your EA.

Someone may be up for that, but I want to help you repair your own EA.

What's the total number of lines in your source (.mq4)?


CB

 

Thanks,



I fix the problem with another code;


But it remains a "little" problem;


cloudbreaker and BoDar i send you a pm if you can help me i send you the ea correct




Thanks in advance

Reason: