Function/Subroutines In ProRealTime

Forums ProRealTime English forum ProScreener support Function/Subroutines In ProRealTime

Viewing 5 posts - 1 through 5 (of 5 total)
  • #31769

    Hi,

    Further to my earlier message: https://www.prorealcode.com/topic/reusable-candlestick-screening-code/ is there no concept of functions or in basic-like parlance, sub-routines in ProRealTime?

    There must be a way to write screener code without having to re-write common code time and time again?

    Many thanks,

    –G

    #31879

    You can use CALL instruction to call other indicators or calculations results made as functions / sub-routines.

    Be aware that using CALL is not the best way because it will slow down calculation of your screener. The current engine of the platform is being rewritten to be at least thousands times faster, so the CALL Keyword will have a very important dimension in the future to make re-usable functions! I’m expecting this improvement this year!

    1 user thanked author for this post.
    #31881

    You can use CALL instruction to call other indicators or calculations results made as functions / sub-routines.

    Thanks for answering.

    I have read how to CALL indicators but, by and large, I want to call calculations or partial screening code as functions / sub-routines. Is CALL the only way? How can I do this? Would you be kindly able to provide some example code?

    I posted another question in the ProBuilder forum that is based on this requirement where I was simply unable to call my own indicator function from my custom screener code. If you could explain how this could be done, it would be great! 🙂

    Cheers,

     

    –G

    #166146

    Hi,

    I am wondering if the CALL function can be used now without slowing down the indicator.

    Or do you still advice not to use CALL function and keep the repeated code inside the same indicator?

     

     

    Thank you

    #166148

    Now indicators are embedded into the strategy.

    This will reduce slowness.

     

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

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