how do I set a function within the program?
yuan83:
You need to return the value from your function to the code that called it . . .
i tried to do the below
basically if it's a function to give a 1 when the bar is green and a -1 when the bar is red
But when I reference it in the main program, ,as shown below, it always show updown as 0. What's the issue here?
thanks in advance!
i tried to do the below
basically if it's a function to give a 1 when the bar is green and a -1 when the bar is red
But when I reference it in the main program, ,as shown below, it always show updown as 0. What's the issue here?
thanks in advance!