Price Indicators and Pro-back testing

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #170048 quote
    19robhfx60
    Participant
    Average

    Hello every one.

    I hope all of you are well where ever you are in these difficult and uncertain times.

    This is only my second time using a forum on this site, so hopefully this is the right place for this enquire or discussion.

    Currently I’m doing some back testing of indicators and require some help.

    I have three issues

    1 I wanted to run a back test using the inbuilt Multi-smoothing moving average on the price chart that PRT provide, however no PRT Pro- back test code is available either within the platform or in the indicator library. Could someone point me in the right direction if one exists or would someone be willing to code that for me? I’m just learning to code now and this is just a bit beyond me skill level at this time.

    2 Like the previous issue I would like to create a moving average on the price chart of the price oscillator that the PRT platform provides where the “Zero-Line” on the oscillator would represent the price action crossing the moving average on the price chart. I understand the calculation of the indicator and I have tried to code this as a moving average on the chart so that I can get a visual representation for a trading strategy building purpose. Again my coding skills are limited at this moment.

    3 Finally I have imported and tried to use the “Percentage Price Oscillator” in the PRT Indicator library and each time I try to load the indicator as an oscillator below the chart a blank screen appears. I have also deleted the original import and re-imported it again many times with no success. I may contact the creator through this site for help, however if anyone else has a solution to this problem I would be most grateful.

    Thank you in advance to anyone offering help.

    #170740 quote
    robertogozzi
    Moderator
    Master
    1. I will check on Monday
    2. simply open the indicator ‘s settings and add any MA to it (not to the price)
    3. to contact the author simply post a question as a comment to the library entry for that indicator;  being myself the author you don’t need to post it anymore; did you install the Macd-like version?
    #170887 quote
    19robhfx60
    Participant
    Average

    Thanks for the reply Roberto. I will download the MACD version and try that. Still interested in the back test code for the multiple smoothing average that comes as a default indicator in the platform, or at least how it is calculated so that can try to code it myself. Thanks again Roberto.

    #170888 quote
    robertogozzi
    Moderator
    Master

    1 this is the code (I suggest that you import the attached ITF file)

    //----------------------------------------------------------------------------------------------------
    // Multiple Smoothing MAvg.custom
    //----------------------------------------------------------------------------------------------------
    // Differently from PRT's code, you don't have to select double or triple smoothing. You can actually
    // use it as a common Moving Average with no smoothing since you are not forced to enter the second and
    // third Period numbers. Only the first one has to be greater than 0.
    // The second and third one, each one of them, can be 0, so that youy can have:
    //    - NO smoothing (second and third Period numbers set both to 0), so that it's like any common MA
    //    - single smoothing (PRT calls it double smoothing because it involves two MA's) when the first
    //      MA is smoothed by any one, and only one, of the other two MA's
    //    - double smoothing (PRT calls it triple smoothing because it involves three MA's) when the first
    //      MA is smoothed by the both the other two MA's
    //
    // Periods do not need to be ascending, nor descending; all of them are independent from the other two.
    //----------------------------------------------------------------------------------------------------
    // M1, M2 and M3 are the periods for the three MA's (0=do not use that average,
    //                                                   for the first MA 1 is the minimum allowed)
    // T1, T2 and T3 are the type of MA's
    //
    //ONCE M1 = 14
    //ONCE T1 = 0       //0=sma, 1=ema, 2 =wma,...
    //ONCE M2 = 10
    //ONCE T2 = 0       //0=sma, 1=ema, 2 =wma,...
    //ONCE M3 = 9
    //ONCE T3 = 0       //0=sma, 1=ema, 2 =wma,...
    M1        = max(1,min(999,M1))
    M2        = max(0,min(999,M2))
    M3        = max(0,min(999,M3))
    //
    src       = CustomClose
    //
    Avg1      = average[M1,T1](src)
    Avg2      = Avg1
    IF M2 > 0 THEN
       Avg2   = average[M2,T2](Avg1)
    ENDIF
    Avg3      = Avg2
    IF M3 > 0 THEN
       Avg3   = average[M3,T3](Avg2)
    ENDIF
    RETURN Avg3 AS "Multiple Smoothed Moving Average"

    2 see my answer in my post above

    3 use the HISTO version and set it to HISTOGRAM with its properties.

    Multiple-Smoothing-MAvg.custom.itf
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Price Indicators and Pro-back testing


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
19robhfx60 @19robhfx60 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 05/20/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...