Function/Subroutines In ProRealTime

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #31769 quote
    Geester
    Participant
    Junior

    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 quote
    Nicolas
    Keymaster
    Master

    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!

    robertogozzi thanked this post
    #31881 quote
    Geester
    Participant
    Junior

    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 quote
    smhhadima
    Participant
    Junior

    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 quote
    robertogozzi
    Moderator
    Master

    Now indicators are embedded into the strategy.

    This will reduce slowness.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Function/Subroutines In ProRealTime


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Geester @geester Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/11/2017
Status: Active
Attachments: No files
Logo Logo
Loading...