MetaTrader 4 Build 529 beta released with new compiler - page 4

 
VOLDEMAR:

I cannot understand why this code returns 00 00 00 00

Use the new formatting functions:

string TimeS(void)
  {
   return StringFormat("%02d.%02d.%02d %02d:%02d:%02d",Year(),Month(),Day(),Hour(),Minute(),Seconds());
  }
//+------------------------------------------------------------------+
//| Expert tick function                                             |
//+------------------------------------------------------------------+
void OnTick()
  {
   Print(TimeS());
  }



2013.11.04 22:04:59	TestBars: 2013.11.04 21:03:38
 
VOLDEMAR:


Even so

Drawing 0 ...

I have Comment(Day()); draws 4 on the chart.
 
Renat:
I have Comment(Day()); draws 4 on the chart.


Nope it doesn't work, can't figure out why ... OnTick also doesn't work .... doing in tester ...

 

And this is Comment(Day()); Constant 1

 

it would be nice if all the innovations from mql5 were formulated with references to the sources.

The study of 4 has gone to waste for two months, 4 has become 5 (((.

 

as mentioned above, OBJ_LABEL is not acting properly:

     ObjectCreate  ("Tabl"+DoubleToStr(x)+DoubleToStr(y),OBJ_LABEL,0,0,0);
     ObjectSetText ("Tabl"+DoubleToStr(x)+DoubleToStr(y),CharToStr(110),22,"Wingdings",Gold);

when running the script the drawing is only partial (left part of the figure), full (left part) comes only when:

1) left mouse click (PCM does not roll) on the chart window (on the market overview or elsewhere - does not help);

2) tick;

3) PCM-refresh.

 
ALXIMIKS:

as said above, OBJ_LABEL is not acting properly:

when running the script the drawing is only partial (left part of the figure), full (left part) comes only when:

1) left mouse click (PCM does not roll) on the chart window (on the market overview or elsewhere - does not help);

2) tick;

3) PCM-refresh.


WindowRedraw in the code should help.
 
Scriptong:

WindowRedraw in the code should help.

Yes, thank you, it helped, it's interesting that in 509 it should not have been used
 
ALXIMIKS:

Yes, thank you, that helped, interestingly, you didn't need to use it in 509
Yes, you did. You always have.
 
Scriptong:
I need it. Always have.


I meant the script worked fine without using WindowRedraw() ( ObjectsRedraw()) in 509.

In 529, there's nothing to ask, then everything, then part of one, then part of another (smaller). But thank you.