Initial deposit size - what is it? - page 8

 

And here's another question: is there any way to measure the angle of inclination of the MA?

I looked in the textbook, I couldn't find it. On a forum too.

P.S. The letter "a" has become jammed...

 
MA should be searched in English letters =)
 

You need to correct the link: 'MA'.

You don't have 'ht' at the beginning. :)

 

Here's a question: I'm testing an EA. Does it have OrderTicket() = 0 in the tester? I get it like this. Consequently, nothing works. Everything works in real life (order search by their ticket).

In general, how to work correctly with OrderTicket() in the tester?

P.S. And the Magic Number of manually opened orders - 0 or -1?

P.P.S. I have it figured out. I figured it out - MN is equal to zero when I trade manually.

P.P.S. I enabled blunt trailing stop and I am satisfied for now.

 

Trying to get an OrderTicket for open positions.

for(int e=0;e<OrdersTotal();e++){
      iTicket = OrderSelect(e,SELECT_BY_TICKET);
      ... //всяческий код
      }

In theory, iTicket should return some number, the number of an open order.

In reality it is stably equal to 0.

Where am I wrong?

 

The tester has died completely. Reinstalling MT4 doesn't help. It's giving out errors:

2008.09.10 04:56:08 TestMTS: no data for testing
2008.09.10 04:56:08 TestMTS: loaded successfully

I downloaded the quotes and the archive, updated, pressed the buttons.

It already happened. Somehow I won. Now I cannot do it.

 
Swetten писал (а) >>

Trying to get an OrderTicket for open positions.

In theory, iTicket should return some number, the number of an open order.

In reality it is stably equal to 0.

Where am I wrong?

The OrderSend() returns the ticket of the opened order, in this case the OrderTicket() function returns the ticket of the order selected by OrderSelect() function.

 
Swetten писал (а) >>

And here's another question: is there any way to measure the angle of inclination of the MA?

I searched the textbook, I couldn't find it. On a forum too.

P.S. The letter "a" got stuck...

You can - in points per bar. The difference between the value on one bar and the previous one.

 
Swetten писал (а) >>

The tester has died completely. Reinstalling MT4 doesn't help. It's giving out errors:

2008.09.10 04:56:08 TestMTS: no data for testing
2008.09.10 04:56:08 TestMTS: loaded successfully

I downloaded quotes and archive, updated, pressed buttons.

It already happened. Somehow I won. Now it does not work.

Computer switch off and switch on, if it doesn't help - install MT in new papa, if it doesn't help - repeat, if it's boring - reinstall windoz.

 
Integer писал (а) >>

This OrderSend() returns the ticket of the opened order, here OrderTicket() will return the ticket of the order selected by OrderSelect() function.

Well yes, that's exactly what we need. But the ticket = 0!!! How it is so?

Reason: