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!
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!