I have removed your other topic that includes a link that could be considered advertising.
Advertising will lead to a ban.
i've spent so long on trying to figure out what this code fires when the condition is not met.... I don't want to share my sacred code lol..
Does Pie still come on here?
Your code "works" if the condition is true, you will get a pop-up alert window.
The playsound will not be heard because the alert takes priority over PlaySound
When writing code, you have to be precise so that the code executes as you want.
You should also be precise when posting here so that your problem can be understood by others.
Your post is vague
"Doesn't work" is meaningless without details
Is the alert not triggering or is the alert triggering when you don't expect it to.
If the alert IS triggering
Are you checking the buffer value at the exact time of the alert?
The code checks Buffer, so by the time you check, Buffer could have changed as could Bid and the values for the moving averages
It is unusual for Buffer to not change. Usually an indicator is coded so that Buffer is updated every tick. Of course this may not be the case here.
Show the code that assigns a value to Buffer
To add comments, please log in or register