Function Call to user-indicator returning no data

Forums ProRealTime English forum ProOrder support Function Call to user-indicator returning no data

Viewing 2 posts - 1 through 2 (of 2 total)
  • #83751

    Hi, I’ve written my first Indicator and am trying to call it from my trading System. The problem I have is that when I call the function from a Trading System, no data is returned.

    The indicator returns a single value (in a parameter called Result) of either 1, 2 or 99 and seems to work fine when added to a chart.

    The Trading System output shows a value of 0 which suggests something is wrong somewhere but I can’t seem to work it out.

    Any help would be gratefully received 🙂

    I’ve attached

    a) the indicator code

    b) my simple trading system which calls the indicator

    c) a screen shot which shows the indicator on the chart. This shows that there are values in the Result parameter which the indicator returns. It also shows the Trading System variables which should show the Result value however it remains at a value of 0.

     

     

    #83755

    Don’t call it but embed it in your strategy so that you can debug it better with GRAPH (you can graph more variables, not just the one returned):

     

    1 user thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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