[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 408
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.