Did you run a search before posting and read the many existing threads about the same issue?
You | Server |
---|---|
Change the SL to X | It is at X! |
Change the SL to X | It is at X! |
Change the SL to X | You are insane |
Unknown
Compute the new value, then check that you are moving the existing value at least a tick.
What is a TICK? - MQL4 programming forum (2014)
Did you not understand that you are repeatedly trying to "modify" even when your stops have not changed (when the "new" values are exactly the same as the "old" values)?
If the stops have not changed, then don't try to "modify" them again.
Did you not understand that you are repeatedly trying to "modify" even when your stops have not changed (when the "new" values are exactly the same as the "old" values)?
If the stops have not changed, then don't try to "modify" them again.
but how ican do that??
can u write me the code??
Did you not understand that you are repeatedly trying to "modify" even when your stops have not changed (when the "new" values are exactly the same as the "old" values)?
If the stops have not changed, then don't try to "modify" them again.
like that for exemple
//OrderModify int total=OrdersTotal(); for(int i=0; i<total; i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { //Modify_SELLSTOP if( OrderType()==OP_SELLSTOP && OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber1) { priceNew1 = bolingbandlower10-4*MyPoint; priceNew10 = priceNew1 +SL*MyPoint; priceNew100 = priceNew1-TP*MyPoint; bool modify3 = OrderModify(OrderTicket(), NormalizeDouble(priceNew1,Digits), NormalizeDouble(priceNew10,Digits), NormalizeDouble(priceNew100,Digits),0,clrRed); } } }
No free help (2017)
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)
We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
No free help (2017)
Show us your attempt (using the CODE button) and state the nature of your difficulty.
No free help (2017)
Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)
We're not going to code it for you (although it could happen if you are lucky or the issue is interesting).
No free help (2017)
i fount it and its work correctly
//OrderModify int total=OrdersTotal(); for(int i=0; i<total; i++) { if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)) { //Modify_SELLSTOP if( (bolingbandlower10-4*MyPoint>OrderOpenPrice()+1*Point || bolingbandlower10-4*MyPoint<OrderOpenPrice()-1*Point) && OrderType()==OP_SELLSTOP && OrderSymbol()==Symbol()&&OrderMagicNumber()==MagicNumber1 &&OrderTicket()==Ticket ) { priceNew1 = bolingbandlower10-4*MyPoint; priceNew10 = priceNew1 +SL*MyPoint; priceNew100 = priceNew1-TP*MyPoint; bool modify3 = OrderModify(Ticket, priceNew1, priceNew10, priceNew100,0,clrRed); } } }
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
some one can help me plz to slove it