return in drawarrowup for exemple.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31457 quote
    balance
    Participant
    Junior

    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

    return

    #32119 quote
    Nicolas
    Keymaster
    Master

    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?

    #32374 quote
    balance
    Participant
    Junior

    Hello Nicholas.
    Thanks for your response .
    I would be happy if you give me an example of Boolean question.
    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

return in drawarrowup for exemple.


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
balance @balance Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by balance
8 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/09/2017
Status: Active
Attachments: No files
Logo Logo
Loading...