Unable to use CALL…

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #76921 quote
    Roberto S.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

    screenshot.png screenshot.png
    #76934 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
8 years, 2 months ago.

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