Errors, bugs, questions - page 1209

 
Why is the buy button in the Market service in the English section green, but in the other sections it is yellow?
 
Arkadiy:

Please correct the error/spike in the data : XAGUSD H1 26.06.2013 20:00 18.72/18.73/0.19/18.66 - spike down.

It's true - like two times two multiplied - the answer is ready, what - the data is incorrigible?

It is.

 

We know how to multiply two by two

- but with what?

 
How do I open a file to add text to it so that the old content is not deleted?
 
fellow:
How do I open a file to add text to it so that the old content is not deleted?
FileSeek( int file_handle, 0, SEEK_END );
 

Repeatedly

Forum on trading, automated trading systems and trading strategies testing

Bugs, bugs, questions

A100, 2014.01.25 16:22

The initialisation list does not work in the following example
class A {
public:
template<typename T> A( T b ) : a( b ) { /**/ }
        long a;
};

void OnStart()
{
        long l = 10;
        A a( l );
        Print( a.a ); //какое то большое случайное число, а должно быть 10
}

how about this

template<typename T> A( T b ) : a( b ) { a = b; }
then everything is fine

Request Started: 2014 .01.28 13:15, #940459

https://www.mql5.com/ru/users/A100/servicedesk/9488

 
A100:

I'll say it again

Application Started: 2014.01.28 13:15, #940459

https://www.mql5.com/ru/users/A100/servicedesk/9488

Thanks for the post, corrected.
 

Good evening.

I am writing an indicator. I need to combine three plots in one indicator (indicator_buffers 3,indicator_plots 3): the first is a common MACD histogram (DRAW_HISTOGRAM), the second and third are not visible (DRAW_NONE). After writing, the data window displays the information from the three buffers as it should, but no histogram is visible in the sub-window. The histogram values in the data window are correct.

Question. Is it possible to combine the above graphical drawings and, if so, how to make the histogram visible in the indicator subwindow.

Files:
test3.mq5  5 kb
 

MT4 gives an error in the log:

Compressor: invalid decompress block [54194 bytes]

What does it mean?

 
Tapochun:

Good evening.

I am writing an indicator. I need to combine three plots in one indicator (indicator_buffers 3,indicator_plots 3): the first is a common MACD histogram (DRAW_HISTOGRAM), the second and third are not visible (DRAW_NONE). After writing, the data window displays the information from the three buffers as it should, but no histogram is visible in the sub-window. The histogram values in the data window are correct.

Question. Is it possible to combine the above graphical drawings and, if possible, how to make the histogram visible in the subwindow of the indicator?

Make it like this:

#property indicator_plots 1


SetIndexBuffer(1,ExtBuy,INDICATOR_CALCULATIONS);

SetIndexBuffer(2,ExtSell,INDICATOR_CALCULATIONS);