Newbie programmer here.
I am working on an EA that uses fractals. "LastUpFractal_Br" is a bool variable that states whether the upfractal broke or not. When a downfractal breaks, it is set to false.
I want the EA to give me a message when that value changes and only then. I changed a code that does the same thing for another variable into this:
Run your code through line by line, on paper if needed . . . and see what will happen to the variables . . .
1. Initially TempUp = false
2. for the sound to play LastUpFractal_Br = true
3. TempUp = LastUpFractal_Br = true
for the next tick return to 1.
Did you mean for TempUp to be a static declaration ?
I tried that, too, but I just can't get it to work. My code contains
way more difficult parts, but for some reason I just can't wrap my head
around that one. :D
It's not easy to get into. My only programming before this was a small program to learn some vocabulary about 15 years ago.
Can nobody help me?
I tried so many things, I don't know what else to try.
Can nobody help me?
I tried so many things, I don't know what else to try.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Newbie programmer here.
I am working on an EA that uses fractals. "LastUpFractal_Br" is a bool variable that states whether the upfractal broke or not. When a downfractal breaks, it is set to false.
I tried several variations of it. Why doesn't it work? It gives me the message over and over again until a downfractal breaks and therefore until LastUpFractal_Br is false.I want the EA to give me a message when that value changes and only then. I changed a code that does the same thing for another variable into this: