Moving Average Type

Forums ProRealTime English forum ProBuilder support Moving Average Type

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

    Hi

    I’m trying to code the moving average indicator where I can then select the different type e.g. simple = 0, exponential = 1, etc. Why does it not work for type 7 = Zero Lag Exponential and type 8 = Hull? I have included variables a = Integer and b = MA type so that you can change these variables once indicator added to chart without having to modify the code.

    Gives error as below:

    Error in the indicator: MA TYPE (1 7)

    Define the type of moving average

    What am I doing wrong please?

    Thanks

    Sachin

     

     

    #123777

    v10.3 allows 0-6, v11 should allow up to 8 (I am not sure, though).

    1 user thanked author for this post.
    #123785

    You can always hard code the missing indicators into your indicator.

    The code for most popular average calculations can be found in this indicator.

    https://www.prorealcode.com/prorealtime-indicators/average-filter-regression/

    2 users thanked author for this post.
    #123801

    For info @sulimaster

    Whenever I use Indicator Type 7 or 8 in a coded strategy it always works for me.

    But I just tried in a stand alone Indicator (as above) and it gave me the error message etc.

    1 user thanked author for this post.
    #123807

    ProBuilder and ProOrder use different engines hence there are sometimes differences to be found.

    1 user thanked author for this post.
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