Good Morning,
When I use “drawarrowup” for example.
What do I write in the return word – result?
I tried to write the function itself – “drawarrowup” or similar things but got an error result.
thanks in advance for your help
For example – a code I’m working on is attached.
for variable =1 to barindex do
if close[variable] > high[variable-1] then
drawarrowup(date[variable],low[variable])
endif
next
Depends of what you want to return? If you want to get a signal to automate your strategy, you’ll need to create a boolean variable to get the value of your condition that draw your arrow. This is this boolean variable that you’ll use in the RETURN statement.
Let me know if it’s clear or if you need an example?
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue