May be matter in parmeter StopLevel (see MarketInfo). Use these scripts from https://www.mql5.com/ru/forum/50912 for reseach .
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
{
ticket=OrderSend(Symbol(),OP_BUY, Lots, Ask, 0,Ask-StopLoss*Point, Ask+TakeProfit*Point, tmpString,0,0,Green);
Print("Long Trade Area Entered, Ticket= ", ticket);
if(ticket>0)
{//103a If Successful below is executed
Print("Attempting Trade, Ticket ", ticket);
if(OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice());
LongTrade=1;
}//103b
else Print("Error opening BUY order : ", GetLastError());
if(AllowReOrderOnFail==1){
ErrorOnBuyOrSellReset();}
return(0);
}