Errors, bugs, questions - page 1829

 
Alexey Da:

Share your expert and indicator for playback. You can send it to servicedesk, you can send it to me in person.

Haven't been able to reproduce it in mine yet.

Created a request:

Unprocessed, Started: 2017.03.07 11:35, #1689073
 
Artyom Trishkin:

Created an application:

Unprocessed, Started: 2017.03.07 11:35, #1689073

Already found the problem. Fixing

Thanks.

 

ArrayPrint does not work

struct STRUCT
{
  int i, j;
};

void OnStart()
{
  STRUCT Array[];

  for (int i = ArrayResize(Array, 5) - 1; i >= 0; i--)
  {
    Array[i].i = MathRand();
    Array[i].j = MathRand();
  }
    
  ArrayPrint(Array);
}


Result

      [i]   [j]
[0] 2344
[1] 2620
[2] 2870
[3] 1687
[4] 1198
Field j is not printed.
 

It may have already been done, but let me ask:

why isPOSITION_COMMISSION not highlighted and not in help?

 
transcendreamer:

It may have already been done, but let me ask:

whyPOSITION_COMMISSION is not highlighted and not in help?

It was

Forum on trading, automated trading systems and strategy testing

Bugs, bugs, questions

transcendreamer, 2016.06.28 21:48

what's the trick with me not finding a definition for POSITION_COMMISSION not even highlighted in blue? (5.00 1340)

 
transcendreamer:

It may have already been done, but let me ask:

Why isPOSITION_COMMISSION not highlighted and not in help?

There was a question, but it's hard to find the answer...

The commission in the properties is not the position, but the transaction.

 

oh cool.........

thank you!

 
transcendreamer:

oh cool.........

thank you!

Even funnier is that the commission is divided into two trades, entry and exit. Accordingly, in order to correctly determine the commission, we have to go through ENUM_DEAL_ENTRY.
 
Why is there no partial closing of positions by highlighting rows in tools - no one needs this or how...
 

This is the first time I've encountered this situation, although I've done everything as I've done it many times before.

2017.03.08 12:14:56.563 debug version of 'имя_советника.ex5', please recompile it
2017.03.08 12:14:56.563 loading of имя_советника (GBPUSD.m,H1) failed
2017.03.08 12:14:56.565 cannot load expert

Obviously, before running the test, debugging was started on historical data, but the question is - should it be like this? Or what?

Reason: