Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Good afternoon
Can anyone tell me why the attached piece does not identify the order type?
In the list of orders type = 0, the error number outputs =0
OP_BUY==0
OP_SELL==1
OP_BUY==0
OP_SELL==1
Very interesting. Does it mean that I will not get the order number at the next operation !??
if (OrderType()==OP_BUY)
Ticet_No = OrderTicket();
Where do I get these numbers?
In the description of the language, I have a concept of this phrase.
OrderType int OrderType()
Returns the transaction type of the currently selected order. M can be one of the following values :
OP_BUY - buy position,
OP_SELL - sell position
Very interesting. Does that mean I won't get the order number for the next operation !???
if (OrderType()==OP_BUY)
Ticet_No = OrderTicket();
In my language description, there is a concept of this phrase.
OrderType int OrderType()
Returns the transaction type of the currently selected order. M may be one of the following values :
OP_BUY - buy position,
OP_SELL - sell position
Transaction type for the OrderSend() function. Can be any of the following values:
The type of operation for OrderSend(). Can be any of the following values:
Thank you.
I have not got these figures in the MQL tutorial.
You have already answered so many of my inane questions that I'm beginning to have a conscientious idea whether to send you
N-amount from the first profit of the created EA?
How to test the strategy?
Как протестировать стратегию?
in the terminal?Как протестировать стратегию?
Ask one of us to test it =))
OR THERE
"Can be used as a "template" for beginners, just write your strategy after void Check()."
Entry on fractal breakout, RSI to buy above 50, to sell below 50, S/L 20 p., trailing stop 15 p.
I would like to test it on the history, I don't know how.