Slow down, read through and follow your code step by step by step . . . follow what happens to the value of b (or a) for each possible outcome of each conditional statement . . .
I'm assuming b isn't a static so for each tick b starts as undefined ( set to 0 ). val1 and val2 are the Fractals, they can't both be greater than 0 for each bar . . . so when val1 > 0 val2 will be <= 0 . . . so if val1 > 0 b has a value but c will be set to 0, so in this case c will not > b so the values for b & c will notget printed.
Slow down, read through and follow your code step by step by step . . . follow what happens to the value of b (or a) for each possible outcome of each conditional statement . . .
I'm assuming b isn't a static so for each tick b starts as undefined ( set to 0 ). val1 and val2 are the Fractals, they can't both be greater than 0 for each bar . . . so when val1 > 0 val2 will be <= 0 . . . so if val1 > 0 b has a value but c will be set to 0, so in this case c will not > b so the values for b & c will not get printed.
I partially understand this but at least I understand iTime, Time[], and TimeToStr a bit better now
So I guess this is nor really related to the time subject so if I have other trouble with it I'll post another thread
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I changed the scheme to b and c
Anyhow this will print (b) no problems and never 0
However,
this print (c) all the time no problem but b = 0 so I have something wrong here, but I don't know what or why ?
Back to the drawing board it would seem
Slow down, read through and follow your code step by step by step . . . follow what happens to the value of b (or a) for each possible outcome of each conditional statement . . .
I'm assuming b isn't a static so for each tick b starts as undefined ( set to 0 ). val1 and val2 are the Fractals, they can't both be greater than 0 for each bar . . . so when val1 > 0 val2 will be <= 0 . . . so if val1 > 0 b has a value but c will be set to 0, so in this case c will not > b so the values for b & c will not get printed.
Slow down, read through and follow your code step by step by step . . . follow what happens to the value of b (or a) for each possible outcome of each conditional statement . . .
I'm assuming b isn't a static so for each tick b starts as undefined ( set to 0 ). val1 and val2 are the Fractals, they can't both be greater than 0 for each bar . . . so when val1 > 0 val2 will be <= 0 . . . so if val1 > 0 b has a value but c will be set to 0, so in this case c will not > b so the values for b & c will not get printed.
I partially understand this but at least I understand iTime, Time[], and TimeToStr a bit better now
So I guess this is nor really related to the time subject so if I have other trouble with it I'll post another thread
Thanks