MetaTrader 4 Client Terminal build 604 - page 11

To add comments, please log in or register
graziani
2168
graziani  

Have you perhaps noticed 'Metaquotes New MT4 Test' Server?

Open account there and you will get all updates ASAP.

micclly
79
micclly  
stringo:
Ok. Thank you very much for collaboration

I've tested with build 606.

  • StringToCharArray works correctly
  • FileWriteString works correctly
  • FileReadString does not work correctly

Result set is attached. (Code is not changed from before, just updated result)

Files:
David Saulnier
346
David Saulnier  

Don't know if somebody got this interface problem.

In Terminal build 604: I deleted some unused demos accounts from the "accounts tree" window then, I suppose my issue appears since this deletion :

Well, I created a new demo account from my broker, I can login to it via terminal and it works BUT it is NOT added to the list of accounts into the Accounts tree "Account -> broker-demo3 -> xxxxx: my name ".

Any idea?

Ps: I succeed to add it to another computer with build 604 for which I've not deleted anything.

Maximillion Propheet
54
Maximillion Propheet  

The following code:

#property strict
#property indicator_chart_window

#include <Controls/Panel.mqh>
#include <Controls/Button.mqh>
#include <Controls/WndContainer.mqh>

CWndContainer cc;
CPanel cp;
CButton cb;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   cc.Move(50,50);
   cc.Size(50,50);

   cp.Create(0,"cp",0,0,0,0,0);
   cp.BorderType(BORDER_FLAT);
   cp.ColorBackground(clrOrange);
   cp.ColorBorder(clrWhite);
   cp.Alignment(WND_ALIGN_CLIENT,0,0,0,0);
   cp.Align(cc.Rect());
   cc.Add(cp);

   cb.Create(0,"cb",0,0,0,0,0);
   cb.ColorBackground(clrGreen);
   cb.ColorBorder(clrCyan);
   cb.Alignment(WND_ALIGN_CLIENT,1,1,1,1);
   cb.Align(cp.Rect());
   cc.Add(cb);
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//|                                                                  |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   cp.Destroy();
   cc.Destroy();
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
//---

//--- return value of prev_calculated for next call
   return(rates_total);
  }
//+------------------------------------------------------------------+
//| ChartEvent function                                              |
//+------------------------------------------------------------------+
void OnChartEvent(const int id,
                  const long &lparam,
                  const double &dparam,
                  const string &sparam)
  {
//---
   cc.OnEvent(id,lparam,dparam,sparam);
  }
//+------------------------------------------------------------------+


produces this:



Obviously, the button should be aligned if I understand the documentation correctly. I've reported this before, and it was ''fixed'' - before it was over the right/bottom edge, now it's over the top/left edge.

William Roeder
20069
William Roeder  
maximillion: The following code:
Use SRC. Don't repost, edit your original post.
Folex
14
Folex  

Now I got Build610.

No clue what has been changed fixed? But then, what is still pending?

A proper Changelog and Punchlist might be key to transparency.

Cheers

Ahmed Soliman
23119
Ahmed Soliman  

Hi MetaQuotes,

I don't know where to report a bug but this one bothering me too much.

Compiling and program in MetaEditor force MetaTrader to initialize all the indicators attached to the all of the charts not only the indicator I recompiling.

For example I'm working in Indicator "A" in MetaEditor and in the same time there's an Indicator "B" on a chart.

In Indicator "B" I change one of the inputs from the default value to another value. When I recompile Indicator "A", MetaTrader resets Indicator "B".


Regards,

Coders' Guru

sergio daniel mazza
171
sergio daniel mazza  

I have a question I have the following code editor and me this goal by throwing a warning "possible loss of data due to type conversion", as I get to solve?? i have MT 4 build.574

thanks a lot!

leftTime =(Period()*60)-(TimeCurrent()-Time[0]);
Alain Verleyen
38305
Alain Verleyen  
serdan:

I have a question I have the following code editor and me this goal by throwing a warning "possible loss of data due to type conversion", as I get to solve?? i have MT 4 build.574

thanks a lot!

Current build is 610.

What data type is leftTime ?

William Roeder
20069
William Roeder  
leftTime =(Period()*60)-(TimeCurrent()-Time[0]);
Datetime - datetime is a long. LeftTime is likely an int. The compiler doesn't know that we don't have charts of TF 68 years. Tell the compiler.
leftTime =(Period()*60)-(int)(TimeCurrent()-Time[0]);
To add comments, please log in or register