Please help me a very simple basic code

 
Please help me make a script auto insert stoploss after i entry buy/sell oder....

MNTKS&BRGDS
 
mang.vn:
Please help me make a script auto insert stoploss after i entry buy/sell oder....

MNTKS&BRGDS

hi, in my opinion this is a forum where people HELP other people coding mql stuff and not where you get your code for free without doing anything.
if you want i can make a script/EA for you which makes whatever you want. but then you have to pay.

the other option is that you try coding it on yourself, and i am shure if you have some specific problem there are lots of people here who help you.

 

Look through the code base for the folowing bits of code.

//surch through Active Orders
int total = OrdersTotal();
for(int i=total-1;i>=0;i--)
{
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES))
{
if OrderStopLoss()=o
{
modifyorder(ticket, and all the other parameters) ;
} //end if OrderStopLoss = 0
}//end if OrderSelect()
}//end for(int i=total....

Modify the above by looking through the book for what you need to know to make it work

Reason: