You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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