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

 
VOLDEMAR:

Guys, I can't understand it and the current help is misleading...

Will those examples that are in me help work in the new compiler?

Will it be possible to create buttons similar to those in mt5?

We wrote - the help has not been finalised yet. Use the old version for now.
 

ObjectFind function in MT4 (build 509):

int ObjectFind( string name)

Function in MT5:

int ObjectFind( long chart_id, const string object_name)

Still unchanged in 552.

 
pro_:

ObjectFind function in MT4 (build 509):

Function in MT5:

Still not changed in 552.


This is just being dealt with.

Coming soon

 
Great. Sorry for writing about it again, then.
 
evillive:
We told you - the help has not been finalised yet. Use the old version for now.


Yes I already understood that, I am interested in the functionality, in the early pages said that a lot of things will be added WAY LATER...

So I would like to know if all the functionality has already been implemented and works or if something else will be added ????

 
//+------------------------------------------------------------------+
//|                                                Color_Buffers.mq4 |
//|                        Copyright 2013, MetaQuotes Software Corp. |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2013, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
#property indicator_chart_window

#property indicator_buffers 4
#property indicator_color1 Blue
#property indicator_color2 Red

//#property indicator_color3 Blue
//#property indicator_color4 Red

double ExtUpperBuffer[];
double ExtLowerBuffer[];

double MinBuffer[];
double MaxBuffer[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//--- indicator buffers mapping
    IndicatorBuffers(4);
//---- 4 распределенных буфера индикатора
    SetIndexBuffer(0,ExtUpperBuffer);
    SetIndexBuffer(1,ExtLowerBuffer);
    
    SetIndexBuffer(2,MinBuffer);
    SetIndexBuffer(3,MaxBuffer);
//---
    return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int counted_bars=IndicatorCounted();
   return(0);
  }

Bild 553, ME 876. If you take a simple design and close colour 3 and colour 4, you get this picture:

 
It's good that the help has been updated, it's a pity they didn't do buttons and OnChartEvent yet.
 

Maybe it already has.

IN ME. If scrolling mouse is dragged to any place (but cursor is not within window), then after compilation scroll is shifted to cursor. And this happens in all the open files.

To make it clearer, let's say I opened several files to look something in them (functions, variables) and scrolled the right slider to a certain place (the cursor stayed at the beginning). And then compile something, then all the open files will return to the cursor (in my case at the beginning of the file). And you have to scroll them back to the right places.

 
ALXIMIKS:
Glad they updated the help, it's a pity they didn't make buttons and OnChartEvent yet.


I tried to make a button today and it seemed to work

 
VOLDEMAR:


I tried to make a button today and it seemed to work.


I've got a problem with the order in which objects are created and highlighted in general, as well as their descriptions.
Reason: