CALL not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #91404 quote
    VonasiVonasi
    Moderator
    Master

    I’m trying to use CALL to get the return of an indicator into a strategy but I just can’t get it to work. Every time I try to run the strategy I get this error message:

    [attachment file=91405]

    The CALL instruction is written like this:

    x,y = call "Self Op x2"[1]

    The indicator does not have any parameters that need to be set so my first try didn’t have the [1] and I thought that might be the problem – so I added one called ‘dummy’ and used it like this but it still doesn’t work:

    if dummy = 1 then
    
    (indicator code)
    
    endif

    I know it must be something obvious – I don’t use CALL very much so I’m assuming operator error on this one!

    Screenshot_1-4.png Screenshot_1-4.png
    #91412 quote
    NicolasNicolas
    Keymaster
    Legend

    Because your indicator needs to know what price serie should be calculated. So, you have to add (close) or (medianprice) for instance at the end of your CALL expression.

    #91414 quote
    VonasiVonasi
    Moderator
    Master

    Ah yes – I’ve never seen the need for that before. There is no mention of it in the documentation here:

    CALL

Viewing 3 posts - 1 through 3 (of 3 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

CALL not working


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Vonasi @vonasi Moderator
Summary

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

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/14/2019
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...