Displaying trading system indicators

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #81822 quote
    chris
    Participant
    Junior

    I have recently completed both the beginner and advanced video courses and will probably need to do them again to better grasp all the content. I also have hard copies of the three programming guides.  The ProOrder guide recommends that indicators are coded in the trading system rather than ‘calling’ them, however when I do this the return command isn’t accepted and I need to display the indicator and adjust the variables separately on the chart.  So I’m unclear the best way to integrate ProBuilder, ProScreener and Pro Order or whether they need to be kept separate.  I’m sure more practice will help – just thought I’d ask anyway!

    #81825 quote
    robertogozzi
    Moderator
    Master

    RETURN is accepted only by ProBuilder when creating indicators.

    If you embed your code in a strategy (or within a Screener or another Indicator) RETURN is not accepted because it is useless. Its purpose is to RETURN values tu the CALLer, since it’s not being called RETURN is not needed.

    If your indicator is (very simple and stupid):

    RangeAverage = average[20,0](range) //simple average of the range of the las 20 bars
    RETURN RangeAverage

    when you embed it it in a screener, rather than CALL it, you’ll have to write:

    RangeAverage = average[20,0](range) //simple average of the range of the las 20 bars
    // instead of RangeAverage = CALL "MyRangeIndicator"
    SCREENER [RangeAverage > (20 * pipsize)] //return those instruments whose average range is greater than 20 pips

    this will make execution and backtests much faster.

    This should be supeseded in a future release, since it’s rumoured PRT is going to automatically load indicators with your code at launch time, thus making them like a common function in programming languages.

    chris and Nicolas thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Displaying trading system indicators


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
chris @oceanchris Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
7 years, 4 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 10/03/2018
Status: Active
Attachments: No files
Logo Logo
Loading...