awega: Hello. Can you tell me if an EA has to open a position at the market price, how can I tell if an order has opened and what is its opening price?
I need to implement a function to return a composite result from values of several types, can you tell me how to do it? Or should I just use global variables for the values of this function?
I have a simple Expert Advisor, it opens sell or buy trades up to a certain amount and sets SL and TP (it is the amount of trades that is important to me). I have a simple Expert Advisor that just opens Sell or Buy position for a certain amount of trades, and then opens SL or TP (it is only the amount of trades that matters to me). Please advise what may be done here?
utyff: I have a simple Expert Advisor, it opens sell or buy trades up to a certain amount and sets SL and TP (it is the amount of trades that is important to me). I have a simple Expert Advisor that just opens Sell or Buy position for a certain amount of trades, and then opens a Sell or Buy position for a certain amount of trades (it is the number of trades that I am interested in). Please advise what may be done here?
awega: Hello. Can you tell me, if an EA has to open a position at the market price, how can I determine whether an order has opened and how to determine its opening price?
Open the help in MetaEditor, "Trading functions": OrderSend() and OrderOpenPrice() - there are ready answers to your questions.
utyff: I have a simple Expert Advisor, it opens sell or buy trades up to a certain amount and sets SL and TP (it is the amount of trades that is important to me). I have a simple EA, it just opens sell or buy trades with certain amount of lots and places SL or TP (it is the amount of trades that I am interested in). Please advise what can be done here?
The first thing to do is to check the Car Registration Journal: the Expert Advisor will leave error messages there. And then according to these messages the analyze what and why. And it is desirable that you yourself learn to analyze, rather than throwing here bundles of code in the hope that others will do the same for you.
Hello. Can you tell me if an EA has to open a position at the market price, how can I tell if an order has opened and what is its opening price?
https://book.mql4.com/ru/
How do I know the current time?
I have a simple Expert Advisor, it opens sell or buy trades up to a certain amount and sets SL and TP (it is the amount of trades that is important to me). I have a simple Expert Advisor that just opens Sell or Buy position for a certain amount of trades, and then opens a Sell or Buy position for a certain amount of trades (it is the number of trades that I am interested in). Please advise what may be done here?
Increase slip and normalize prices
Hello. Can you tell me, if an EA has to open a position at the market price, how can I determine whether an order has opened and how to determine its opening price?
I have a simple Expert Advisor, it opens sell or buy trades up to a certain amount and sets SL and TP (it is the amount of trades that is important to me). I have a simple EA, it just opens sell or buy trades with certain amount of lots and places SL or TP (it is the amount of trades that I am interested in). Please advise what can be done here?