Heiken Ashi Smoothed Strategy – Help Please

Forums ProRealTime English forum ProOrder support Heiken Ashi Smoothed Strategy – Help Please

Viewing 11 posts - 1 through 11 (of 11 total)
  • #162910

    I’m trying to turn the smoothed Heiken Ashi smoothed : Forum ProBuilder support – ProRealTime (prorealcode.com)  from the blog into an equity strategy, which I still need to backtest.  I think it is missing the price as I cannot get it to make a trade.  Code is below.  Happy to post backtest as a strategy once complete.

    Stuart

     

    #162917

    You know that you have to rem-out lines 37, 38 (//Graph…) before launching?

    #162924

    timeframe used should be maximum 5 minutes as you are using “FlatAfter = 154500″, if you want orders to close at this precise time! 

    change the T1 variable with:

    and it will work for sure.

    #162968

    Nicolas,

    First, thank you.  Second, I am probably displaying my ignorance below, but this is how we learn.

    While that works, results are not the same as the indicator when using 3, 2 seems to be closer.  I had surmised that T1 was a smoothing type and thus thought I could define the smoothing / averaging type, in this case WeightedAvergae?  Using a number might also mean it is just using a number.  How should I know which?

    Flatafter / flatbefore did not influence the graphing, but point taken.  I had understood form my reading that PRT will just sell at the defined time no matter what time frame for the strategy?  Flat before will start at the defined time and wait for the next signal after defined start time.

    Cheers, Stuart

    #162977

    Change

     

    to

     

    #162981

    Thank you all.  I have made the changes and yes, it works.  My questions now are:

    1.   where is any documentation that define T, thus the averaging types ?
    2.  Will PTR backtest the various types of averaging by adding as a variable T and 0-6?

    Again, thank you all for your help.   Il post backtest results once completed.

    Stuart

    #162985

    https://www.prorealcode.com/documentation/average/

    Yes you can run T as a variable, 0-6 in v10.3 or if you’re using v11 then it’s 0-8 as follows:

    0 = SMA

    1 = EMA

    2 = WMA

    3 = Wilder

    4 = Triangular

    5 = End point

    6 = Time series

    7 = Hull (PRT v11 only)

    8 = ZeroLag (PRT v11 only)

    #162987

    Thanks Nonetheless.  I did not realized PRT knows that it would be an average without having to define it first.  I am on V 11 so I will add 7-8 to the back test.  So far, it looks good in shorter time frames.

    Cheers…

    #162990

    it knows insofar as the syntax is

    average[p,t]

    where p is the period and t is the type.

    1 user thanked author for this post.
    #162992

    average[p,t] where p is the period and t is the type.

    ….and if no value for t is defined then it defaults to zero and returns a simple moving average.

    1 user thanked author for this post.
    #162995

    Thanks for the explanation.  Now I know.

    Cheers.

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

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