Help Trouble Shoot Code
bodanerius: it wouldnt compile,
Do not post code that will not compile. if (ask[n] != EMPTY_VALUE); (ask[n+1] = ask[n]); (bid[n+1] = bid[n] )
An if statment is if (condition) statement;or if (condition){ statement1; … statementN; }It is not:
Brackets {} are not Parentheses ().
Statements end with a semicolon ;if (condition); (statement1); (statement2 )-
You never make bid[] a buffer.
Hi
I found a video with an Indicator I liked and took a screenshot of the code. When I tried to replicate it in MetaEditor it wouldnt compile, asked the videos owner but havent heard back yet.
My plan is to make an Indicator from this that displays the up and down movement, ie subtracting the previous tick from the current one. I thought this would be a good start.
THanks :) /Bo
Heres the video: https://youtu.be/Etc404dEJ6s
Heres the code. Ive tried trouble shooting it myself so its 99% like the video: