Please help me in coding Expert advisor (as fast as possible)

 

Hello Guys!



(I do not know in english well so sorry for this.)



I have a really big problem! I have an Expert advisor (made by me), and i want to write that open this EA's positions where it get the signal. For now i have that kind of opening code what opens the order at a price + or - 20-30-40-100 pips away from my origonal price!



For example:



I have a signal that i will buy 0,1 in EUR/USD at 1.39370 and my EA opened the position at 1.39420!



So i want an example code or somebody please explain me how can i write to open the order silultainiously (as fast asa possible, and in the same price my EA have)



So now you can understand why i need a code to open the orders silultainiously!



I very need it, and please answer for my need as fast as you can! :)



Best regards:



eXo

 

set slippage to zero.

either you get the price you ask/bid, or you'll get a requote.

there is no guarantee, that you will find a pardner for a deal with your price.

that's "the market"

or do you want to be forced to pay a price, only why another is asking exactly for that price ?

its your choice: take it or leave it (just like with women LOL)

 



Thank you for the answer :)



If somebody has another answer please post it :)

 

I have an another question, and i would be more than glad, if somebody can answer for this:



If i use BUYSTOP can it be a guarantee that it will open the position where the EA signals said? So will the position open price equal with the EA's price?



Thank you for the answer :)

 
zpoll:

I have an another question, and i would be more than glad, if somebody can answer for this:

If i use BUYSTOP can it be a guarantee that it will open the position where the EA signals said? So will the position open price equal with the EA's price?

Thank you for the answer :)

There is no guarantee for anything. It also heavily depends on the type of broker. Specifically, STP/ECN style brokers usually ignore slippage altogether.

 

Okay, thank you for your answer!




And what does STP/ECN style brokers means? v(Sorry i am a newbie, so i have not heard from it yet.) Alpari and Fxpro is STP/ECN brokers? Does somebody know this?



I have another questiopn:



With witch command can i retract the Buystop? (i mean on Buystop that it is in there where i write the Ea, in Meta Editor)

 
zpoll:

Okay, thank you for your answer!




And what does STP/ECN style brokers means? v(Sorry i am a newbie, so i have not heard from it yet.) Alpari and Fxpro is STP/ECN brokers? Does somebody know this?



I have another questiopn:



With witch command can i retract the Buystop? (i mean on Buystop that it is in there where i write the Ea, in Meta Editor)

OrderDelete will remove pending order

https://docs.mql4.com/trading/OrderDelete

 
oromek:

OrderDelete will remove pending order

https://docs.mql4.com/trading/OrderDelete

Thank you the answer, now it is working!



And can anybody answer for my previous question, please?

 
zpoll:

And what does STP/ECN style brokers means? v(Sorry i am a newbie, so i have not heard from it yet.) Alpari and Fxpro is STP/ECN brokers? Does somebody know this?

Here's a list of STP/ECN brokers, there's a good explanation of the differences between DD/NDD/STP/ECN brokers at the bottom: https://www.mql5.com/go?link=https://www.100forexbrokers.com/stp-ecn-brokers.


Alpari's Pro accounts are ECN (via Gold-i bridge?), the Micro and Classic accounts are not.

Reason: