Unable to use CALL…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #76921 quote
    Roberto S.
    Participant
    Average

    Hi guys, can you help me?
    I created this simple indicator, just to test the mechanisms of CALL functions in a trading system:

    once atrMonths = 3
    once atrDays = round(5 * 4.1 * atrMonths)
    ema = average[Period,1]
    diff = ema -ema[1]
    ratio = diff / (averageTrueRange[atrDays])
    
    signal = round(ratio)
    return signal as "Signal", 0 as "Central line"
    

    then I tried to use it in a dummy TS:

    signal, centralline = call "EVSA"[5]
    
    if not longOnMarket and signal and centralline = 0 then
    buy 1 contracts at market
    endif
    
    if longOnMarket and not signal then
    sell at market
    endif
    

    Unfortunately I receive this message (sorry it is in italian lang) saying that “EVSA” function should be called with an expression between parenthesis.
    [attachment file=76922]

    I really don’t know how to fix this.
    Can you help me please?
    Regards
    R

    #76934 quote
    robertogozzi
    Moderator
    Master

    Add (CLOSE) at the end:

    signal, centralline = call "EVSA"[5](close)
    Roberto S. thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Unable to use CALL…


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Roberto S. @roberto-s Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
7 years, 6 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 07/27/2018
Status: Active
Attachments: 1 files
Logo Logo
Loading...