MA Hull based conditions

Forums ProRealTime English forum ProBuilder support MA Hull based conditions

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • #95840

    Hello

    I am attempting to write an ALGO utilising the Hull MA as an exit for longs and shorts.

    By using the display cursor option I can see that the price value is greater or lesser than the Hull MA value and would therefore expect my positions to be closed when the “close position” is executed by the ALGO, but this is not the case and the ALGO continues to run despite the values on the respective closing bars being greater/lesser than the Hull MA.

    Appreciate if you could advise where I am going wrong/ a fix to this particular problem

     

    Regards

    #95841

    To write code, please use the <> “insert PRT code” button to make code easier to read. Thank you.

     

    #95844

    The one above is not a HULL moving average, but an SMA.

    Maybe this is the issue.

     

    #95848

    Here is the Hull MA indicator code:

     

    #95899

    Depending of the Hull MA code you are using, you might find discrepancies between the one from the platform and your program: https://www.prorealcode.com/topic/faux-calcul-hma-proorder/

    Hull Moving Average instruction will be added in version 11.

    2 users thanked author for this post.
    #96610

    you might find discrepancies between the one from the platform and your program

    So is the PRT provided Hull MA a waste of space?

    Attached shows that a trade was opened (red arrow) by the condition shown but the 200 period Hull MA (red arrow)  was nowhere near the trade that opened??

    Any thoughts please?

     

    #96628

    GraHal – you might be Beta testing something that no one else even knew existed. Until you posted that image with AVERAGE[200,8] I wasn’t aware that we had an average type of 8. From testing it appears that PRT have sneaked in two new average types without telling anyone (except maybe you?). It appears that they are only available in strategy codes and not indicator codes at the moment.

    I think the discussion earlier on this thread was about the difference between our self calculated HULL average and the HULL average that can be added as a standard PRT indicator by selecting ‘Hull’ as type when adding a moving average indicator. This is possibly a rounding issue that PRT need to investigate.

    Nicolas will hopefully be having a phone call with PRT about these new average types tomorrow and get more info for us.

    1 user thanked author for this post.
Viewing 7 posts - 1 through 7 (of 7 total)

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