Errors, bugs, questions - page 1881

 
fxsaber:
See the result of ArrayCopy in MT5.


:)

Do this now and see the result.

#property strict
//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit()
  {
//---
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function                                 |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
//---
   
  }
class CLASS
{
};

void OnTick()
{
  CLASS* Array1[10];
  
  CLASS* Array2[10];
  
  Print(ArrayCopy(Array1, Array2));
  
  
}  
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
 
fxsaber:

Look at the result of the ArrayCopy in MT5 in the previous example.
And in this


Again:
#property strict

class CLASS {};

void OnStart()
{
  CLASS* Array1[10], * Array2[10];
  Print(ArrayCopy(Array1, Array2));
}
 

Hello. The Freelance section has the following clause:

  1. If the terms of assigning the exclusive rights to the program created on order through the Freelance service are not separately stipulated in the Statement of Work, then the exclusive rights to this program created on order belong to the Customer. In this case, the contractor can use the created program for its own needs on the terms of a royalty-free simple (non-exclusive) license for the duration of the exclusive right.

Recently, there is an order with very similar TOR, for which I used to write an EA for another customer. Can I fulfil this order?

 
Andrey Barinov:

Do that now and see the result.

Sergey Dzyublik:
Opychatka:
Yes, in a hurry. What about the second example?
 
In MT5, many standard indicators do not have a parameter with the type of application price to calculate. For example, iADX, iBearsPower, iBullsPower, iForce, iOBV in MT4 allow selecting price from ENUM_APPLIED_PRICE. In MT5 similar parameters are simply absent. Question: which price is used in the corresponding MT5 indicators?
 

(MT5) Who can tell me where to look?

I get an error when sending a request:

10021 TRADE_RETCODE_PRICE_OFF Отсутствуют котировки для обработки запроса
 
no where? In the request or in the terminal?
 
Alexandr Bryzgalov:

(MT5)Who knows where to start?

Forum on trading, automated trading systems and trading strategies testing

Errors, Bugs, Questions

Alexander Bereznyak, 2010.09.10 11:55

10021

TRADE_RETCODE_PRICE_OFF

No quotes for request processing


What is not clear with this code, there are no quotes, it happens and the market is not closed and trading is allowed

I have encountered such a problem in low-performance trading systems.

I've encountered this on low-liquid futures where a quote comes every few minutes or even more than half an hour.

 
fxsaber:

that's where the "no quotes" is unclear, either the request was sent incorrectly or there are no quotes on the server (the server had them, the order was opened).

as it turned out bids\ask were mixed up, but why did it give out such a code and not "wrong prices"?

ZS: I diagnosed myself: bad hands programmer )
 

You need to get a bar/tick history for several thousand recent units at once for all symbols in Market Watch (several hundred). And update it real time.

Is the MT5 architecture optimized for such screencasts? Will the new program type be able to solve such tasks without crutches?

What do I need to raise all caches from cold state and make them actual?

And how to make a tester stay alive when running a screener?

 
Good afternoon. I have the following bug in MT5: it doesn't save the settings despite the checkbox being ticked. Specifically, every time I run it, all the toolbars are hidden and have to be reopened each time. At next startup panels appear briefly, but then disappear (apparently after establishing connection with the broker). How can this be fixed (opening broker)?