MetaTrader 4 Platform Update Build 670: Virtual Hosting, Web Requests and Working with Signals from MQL Applications - page 5

 
gooly:

Hi,

I have some questions to the Depth of Market.

At first I expected that the column Trade shows the cumulated volume of trades of the price of this line - but I gues that this is not the case. What I can see is only my trades - correct?

At second I am surprised that the prices seems not to be the actual open (pending) orders of the market but as of Bid and Ask the next price is only one tick away.

I just looked at an exotic pair chf/zar and I see for Bid(Sell): 11.69050, 11,69049, .. while the minimal change seems to be 0.00050 so the ..49, ..48,.. seems to me pretty ridiculous.

In total am I correct that the 'Depth of Market' has nothing to do with the market except the Ask and Bid price?

For whom this should be helpful - this way??


I learnt the same knowledge - just a useless UI function, not applicable for trading.
 

the statement: 

SetIndexStyle(idx_id, DRAW_NONE);

will  cause indicator init fail.

 
ray:

the statement: 

SetIndexStyle(idx_id, DRAW_NONE);

will  cause indicator init fail.

Nope, I can't reproduce it.

Please post code to reproduce your issue.

 


void  SetIndexStyle(
   int     index,       // line index
   int     type,        // line type
   int     style=EMPTY// line style
   int     width=EMPTY// line width
   color   clr=clrNONE  // line color
   );

parameter: "clr" can't support varible? when I use function to calc color value: SetIndexStyle(idxid,DRAW_HISTOGRAM,EMPTY,2, GetCurrencyColor(sRefCurrency)); it will cause runtime error: 2014.08.16 17:21:50.855 Stack overflow in '......'
 
ray:


void  SetIndexStyle(
   int     index,       // line index
   int     type,        // line type
   int     style=EMPTY// line style
   int     width=EMPTY// line width
   color   clr=clrNONE  // line color
   );

parameter: "clr" can't support varible? when I use function to calc color value: SetIndexStyle(idxid,DRAW_HISTOGRAM,EMPTY,2, GetCurrencyColor(sRefCurrency)); it will cause runtime error: 2014.08.16 17:21:50.855 Stack overflow in '......'

How is this related to your previous post, about DRAW_NONE ?

What's the code of your GetCurrencyColor') function ?

 

drag indicator to  chart,  popup indicator setting window,    ok button  has not set as  default button,   press enter can't trigger it.   so I has to use mouse button press.

 
angevoyageur:

How is this related to your previous post, about DRAW_NONE ?

What's the code of your GetCurrencyColor') function ?


please forget the issue about DRAW_NONE.

use color Variables  as   SetIndexStyle  Parameter  is important for me.

"GetCurrencyColor" is my function,  it return a color variable.

 

 
sorry, it's my mistake,   there is error in my GetCurrencyColor  funtion.
 
int start()
{

    datetime t = StrToTime("2014-04-23 14:00:00");
    Print("t=", TimeToStr(t));
    return(0);
}

StrToTime:   string format "yyyy-MM-dd hh:mm:ss " would got  current utc time

It only get correct result by using format "yyyy.MM.dd"  .

 

in old 509 version ,  StrToTime with string param format "yyyy-MM-dd hh:mm:ss "   will get right datetime.

 

 

 
Thanks for your nice and useful post.