It has nothing to do with the code. I just need the right condition. The question is, is there any way to know the time of the current bar? How can I find out the time of the bar at all?
Time[index_need_bar]; will return you the open time of the bar with the number "index_need_bar". You can use iTime() for other symbols and timeframes
if (Bufer0>0) { // в double Bufer0 через iCustom() ранее получено значение буфера индикатора 0if (Bufer0!=EMPTY_VALUE) {
// поймали значение в буфере
}
}
Ok I get that, but there could be a hundred values in the buffer how to find the last one and how to determine whether the last one is a buy signal or a sell signal ?
Ok, I get it, but there can be hundreds of values in buffer, how to find the last one and how to determine which is the last one to buy signal or sell ?
I didn't compile the code and did not look in MT, but BufD is first blue buffer, BufU is zero red buffer. What do they show there on the screen, blue and red dots? So, see which dot of which colour points to what there. And catch them in the buffers - red in the zero buffer, blue in the first one.
Well... And values need to be caught on the first bar most likely, didn't see it redrawing or not. Or maybe a loop is needed from the zero bar until the value is encountered. It all depends on how it gives out its signals...
Need some help! Is it possible to create an indicator of the following nature: - counting ticks according to this principle https://www.mql5.com/ru/code/9915 - this is already half of the indicator .... But to refine as follows and depict it graphically with the following parameters:
It has nothing to do with the code. I just need the right condition. The question is, is there any way to know the time of the current bar? How can I find out the time of the bar at all?
How to get a signal in an EA from this indicator
I tried it through iCustom but it says the value is 2147483647 when specifying any line or bar numbers ...
How to get a signal in an EA from this indicator
I tried it through iCustom but it says the value is 2147483647 when specifying any line or bar numbers ...
Check his buffers like this:
Check its buffers like this:
Ok I get that, but there could be a hundred values in the buffer how to find the last one and how to determine whether the last one is a buy signal or a sell signal ?
Ok, I get it, but there can be hundreds of values in buffer, how to find the last one and how to determine which is the last one to buy signal or sell ?
I didn't compile the code and did not look in MT, but BufD is first blue buffer, BufU is zero red buffer. What do they show there on the screen, blue and red dots? So, see which dot of which colour points to what there. And catch them in the buffers - red in the zero buffer, blue in the first one.
Well... And values need to be caught on the first bar most likely, didn't see it redrawing or not. Or maybe a loop is needed from the zero bar until the value is encountered. It all depends on how it gives out its signals...
Hi, can you tell me why I can't set any of the Expert Advisors in Mt4, all of them show negative values when I test the strategy!
Hello!
Need some help! Is it possible to create an indicator of the following nature: - counting ticks according to this principle https://www.mql5.com/ru/code/9915 - this is already half of the indicator .... But to refine as follows and depict it graphically with the following parameters:
Help, for whom it is a piece of cake)