Calling an indicator from a system

Forums ProRealTime English forum ProOrder support Calling an indicator from a system

Tagged: ,

Viewing 15 posts - 1 through 15 (of 20 total)
  • #162189

    Is it possible too write an indicator with different timeframes and then call “Long” from a system? Cant get this too work out as I want.

    #162195

    Yes. Use the CALL instruction in your strategy.

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

    However it is normally easier and more efficient just to hard code the indicator into your strategy.

    Also remember that you will need to run the strategy in a time frame that is compatible with the fastest time frame used in your indicator.

    Note: I gave your topic a more meaningful title – please try to use more descriptive titles with future topics.

    #162198

    Just checking so I understand you right. The code is OK and all I need to is to call the indicator in the system.

    #162235

    Yes.

    Personally I would just cut and paste the code (removing the RETURN line) into a strategy and then replace LONG = 1 on line 25 with BUY 1 CONTRACT AT MARKET thus avoiding using the CALL instruction entirely.

    1 user thanked author for this post.
    #162236

    I´m trying too practice too build an indicator too call and how it works. My indicator is more detailed then the one I posted here but i can’t get the easy one too work.

     

    #162237

    I get “pro backtest.error.parsing” sometimes when I try too run a system calling an indicator. What is wrong when that happens?

    #162241

    Even if I make a simple system as this ProRealTime give me a probacktest.error.parsing. Is it just me that have that problem?

    I contacted ProRealTime but they don’t answer me… is this a known problem or am I doing something wrong?

     

     

    #162244

    I just tested your code and it worked fine on my platform on the DJI daily chart.

    #162245

    I run it on DAX 5m and i can’t get it too work, suspect

     

    #162246

    I get parsing error sometimes when I run a indicator to a system. What is a parsing error?

    #162247

    There was a discussion in the French forum last October about similar issues.

    https://www.prorealcode.com/topic/probacktest-error-parsing/

    The best work around is to avoid using CALL and hard code the indicator in your strategy for the time being.

    1 user thanked author for this post.
    #162248

    But if I want to sell a system and want too hide the code doesn’t I have too put in a indicator and call it from a system or is there any other way too do it?

    #162250

    Yes that is the best way to do it. We may have to wait for PRT to investigate and fix this ‘parsing’ error before being able to code in this way though.

    Out of interest I just tested your simple test code on the DAX 5m and it worked just fine for me.

    1 user thanked author for this post.
    #162251

    I still have the error but thanx for the help for now. It is a little bit annoying when this appears but i guess it is just too wait out any solutions…

    #162254

    When i change in my indicator it doesnt update, how do I save? Isnt autosave?

Viewing 15 posts - 1 through 15 (of 20 total)

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