CALL not working

Viewing 3 posts - 1 through 3 (of 3 total)
  • #91404

    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:

    Screenshot_1-4

    The CALL instruction is written like this:

    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:

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

    #91412

    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

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

    https://www.prorealcode.com/documentation/call/

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login