[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 510

 
GRiNGA:

Good afternoon.

A word of advice to a newbie.

There is such a script:

Why does temp_A in Comment() output as 0.00000000, butAlert(Arr_1[i]) in the loop outputs as it should ?


Remove the inverted commas.
 
Roger:

Remove the inverted commas.


Is that all?

Thank you. It's working!

 
DhP:

How do I programmatically request a schedule download/update?

https://www.mql5.com/ru/code/9951
 

Vadim, thank you.
 

Please tell me what I'm doing wrong when calculating the number of first bars ( Quant_Bars ) that correspond to the condition only above or below the buffer. I.e. as soon as the indicator is drawn BEFORE the closed bar (1), I should count previous bars with the indicator BELOW the bars (except for those which don't conform to the condition) and vice versa, in the opposite direction of movement. My version gives wrong values.

/декомпилированый код удален. Приведите пример на базе легального кода - granit77/
 
Good afternoon. Simple question) let's say a trade closed on sl. How to make a trade to be opened on a new bar. Not on the bar where it closed but on the next bar.
 
Top2n:
Good afternoon. Simple question) let's say a trade closed on sl. How to make a trade to be opened on a new bar. Not on the bar where it was closed, but on the next bar.

Arrange control of a new bar in the Expert Advisor. For details, see this topic.
 
bool TimeBars()
{
int prevtime = 0;
if (Time[0] == prevtime) return(0); // Бар прежний, а следовательно выходим
   prevtime = Time[0]; // Свежий бар, запоминаем время
}
Something's not right here!
 

All works cps!

 

Hello !

Looking for a script, topic created here https://forum.mql4.com/ru/42138 advised to contact here for help.

Thanks in advance!