Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1568

 
Aleksandr Slavskii #:

I'm not sure, but it seems to me that in the tester the histogram shows the closing time of the positions.

Perhaps you have positions opened on Friday and closed on Monday, so you have a bar on the histogram).

Thanks, I'll have a better look and try your implementation options
 
Aleksandr Slavskii #:

I'm not sure, but it seems to me that in the tester the histogram shows the closing time of the positions.

Perhaps you have positions opened on Friday and closed on Monday, so you have a bar on the histogram).

But just for fun I decided to set a limit for all days and it turned out that positions were opened anyway
 
statist247 #:
if (!n.n.day_of_week==1) { if. }

Because you just didn't set the condition correctly

if(!(n.day_of_week==1))
 {
  if..
 }

Or this

if (n.day_of_week!=1)
 {
  if..
 }
 
JRandomTrader #:

or

That's if the answer was on the same page as the question, I'd save a bit of time and not write the same thing repeatedly :))))))

 
JRandomTrader #:

or

I don't know how it works, and I don't want to figure it out, but I have a time condition and a day condition in my code, so I decided to make separate variables for one and the other and everything worked as it should. Not touching it)

 
Alex-1 import
Restarted the terminal

The Expert Advisor is not visible, but the file is in the folder
!?

It happened when the storage was connected in MetaEditor, the file was in the queue for deletion and was not displayed in the terminal. After the deletion, when sending the file to the repository, everything was displayed.

P.S. The previous version of the file was used for deletion.


In your case you should probably look through the "navigator" in the terminal.

 

Which class will be the first to be deinitialised? CCanvas or CPaint?

class CPaint
  {
private:
   CCanvas           canvas;
public:
                     CPaint(void);
                    ~CPaint(void);
   void              Metod();
  };
//+------------------------------------------------------------------+
CPaint::CPaint(void) {}
//+------------------------------------------------------------------+
CPaint::~CPaint(void) {canvas.Destroy();}
//+------------------------------------------------------------------+

In particular, I am interested in whether the Destroy() method will work when EA is removed from the chart.

Or will the canvas remain hanging in the RAM?

 
Vladimir Deryagin #:

It happened when the storage was connected in MetaEditor, the file was queued for deletion and was not displayed in the terminal. After deletion, when sending the file to the storage everything was displayed

P.S the previous version of the file was used for deletion.


In your case it is probably necessary to look through the "navigator" in the termenal.

It is not only in the navigator, it is not even displayed in Meta editor (!). I'll try to sort out the storage
 
Alex-1 #:
It is not only in the navigator, it is not even displayed in Meta editor (!). I'll try to sort out the storage
Maybe because there is no second Mql5 Source file ?
 
Alex-1 #:
Maybe because there is no second Mql5 Source file ?
The standard ones are all duplicated and I may need a second one !?!?
Files:
IMG_0075.jpeg  6817 kb