why show this results .!!!! (ECN broker) - page 2

 

Do you have a fixed Spread ??

in that case  choose

//sl = StopLoss*Point 

tp = (Stoploss+Spread)*Point

Without a fixed Spread you will have always a little difference 

 

thank you 

But before trying the code

I have this problem exists after several deals

The opening of a deal remained open without a stop loss and without a Take Profit

Why and how this problem is solved.?

 

 

 
forexplus:

thank you 

But before trying the code

I have this problem exists after several deals

The opening of a deal remained open without a stop loss and without a Take Profit

Check that your OrderModify() actually worked . . .  and if not report the fact and the error and anything else to help you fix it . . .

Read this and fix your code:  What are Function return values ? How do I use them ? 

 
Thank you
Is there a simple Expert I can modify it, but works with ECN companies without problems
Where him the name Methode buy
And Methode second name sell
Methode call in the event of a desire to buy or sell
 
forexplus:
Thank you
Is there a simple Expert I can modify it, but works with ECN companies without problems
Where him the name Methode buy
And Methode second name sell
Methode call in the event of a desire to buy or sell
Why not simply add the check of the return value from your OrderModify() to understand what is happening ?  you won't learn anything by avoiding the issue . . .
 

 thank you 

i think problem with slippage 

https://www.mql5.com/en/forum/140736 

how fixed this problem .!

Is there one works for Expert with Broker ECN

Without problems.? I do not think so.!

Please, if there is a way to work with ECN Broker without problems

Please put the way

If there Expert works with Broker ECN please put it here.!

Thank you

 
forexplus:

 thank you 

i think problem with slippage 

https://www.mql5.com/en/forum/140736 

how fixed this problem .!

Is there one works for Expert with Broker ECN

That thread has nothing to do with slippage . . .  it is all to do with this:  Requirements and Limitations in Making Trades

Have you added code to check the return values from your Trade Functions ?  why are you ignoring good advice ? 

 

thank you mr.raptoruk 

 i have new code but different result  

some time -10.00

-10.20

-13.00

i want fixed this code work with ECN

this very simple code  

Files:
studymql2.mq4  4 kb
 

Is your code modify the trade with stop settings using the orderopenprice of the trade ??

and if it is very simple code and it is not using the orderopenprice to modify the trade

then how do you have to change it that it does ?? 

 
forexplus:

thank you mr.raptoruk 

 i have new code but different result  

some time -10.00

-10.20

-13.00

i want fixed this code work with ECN

this very simple code  

So you have SL and TP being set now ?  if not what error are you getting ?  what happened to your Buy() and Sell() functions ?
Reason: