[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

 
Vekker писал(а) >>

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

 
Vinin писал(а) >>

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

 
Vekker писал(а) >>

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:

Constant . Value Description
OP_BUY 0 Buy
OP_SELL 1 Sell
OP_BUYLIMIT 2 BUY LIMIT pending order
OP_SELLLIMIT 3 Pending SELL LIMIT order
OP_BUYSTOP 4 Pending BUY STOP order
OP_SELLSTOP 5 Pending SELL STOP order

 
Vinin писал(а) >>

The type of operation for OrderSend(). Can be any of the following values:

Constant . Value Description
OP_BUY 0 Buy
OP_SELL 1 Sell
OP_BUYLIMIT 2 BUY LIMIT pending order
OP_SELLLIMIT 3 Pending SELL LIMIT order
OP_BUYSTOP 4 Pending BUY STOP order
OP_SELLSTOP 5 Pending SELL STOP order

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?

 
serjMois >>:

Как протестировать стратегию?



in the terminal?
 
serjMois >>:

Как протестировать стратегию?


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.

 

 
Is there such an indicator or advisor? So I don't waste your time?
Reason: