Dear all
I want to create a dataseries from another one (eg MACD) which is 1 if MACD (in this example) is above 0, and 0 if MACD is below 0. What is the easiest way to do this, please?
Thanks and regards
Rod
Size:
Color:
Size:
Color:
Funny how the two (2) examples in the tutorial don't produce the exact same result.
Ah, the intricacies of coding.
Size:
Color:
Thanks a lot Eugene.
Can this code be simplified to what I show below, if no filter is required?
From this:
CODE:
Please log in to see this code.
To this?CODE:
Please log in to see this code.
Size:
Color:
Here's a simplified example using random numbers:
CODE:
Please log in to see this code.
Size:
Color:
Thanks Eugene.
I love this - simple as can be:
QUOTE:
bWave[bar] = dice > 0 ? 1.0 : -1.0;
What is the purpose of this part:
QUOTE:
bWave[bar] = bWave[bar] != bWave[bar-1] ? bWave[bar] : bWave[bar - 1];
Thanks and regards
Rod
Size:
Color:
Rod, I read that as
QUOTE:
I love this...
... [bar]
...and this reminded me of that
song title by Toby Keith :lol:
QUOTE:
What is the purpose of this part:
Please disregard, it's irrelevant to this context. I've removed it from the sample code.
Size:
Color:
lol. thanks.
Size:
Color: