Page 34 of 34 FirstFirst ... 24 32 33 34
Results 331 to 338 of 338
Like Tree79Likes

AllAverages

This is a discussion on AllAverages within the Trading tools forums, part of the Trading Forum category; Hi, Thank you for this amazing indicator AllAverages_v4.9.mq5. I found a big issue while using that and it happens only ...

      
   
  1. #331
    Junior Member
    Join Date
    Aug 2022
    Posts
    3
    Hi,
    Thank you for this amazing indicator AllAverages_v4.9.mq5.

    I found a big issue while using that and it happens only if you want to add that as part of another indicator which uses more than one instance of the AllAverages.

    For example, you are creating new MACD that uses Hull from AllAverages indicator for its 3 moving averages(12,26,9) . Issue is that all 3 returned buffers for these Hull moving averages are exactly same making any calculation impossible. This doesn't happen while using the indicator on chart.

    Andy idea please?
    Last edited by Solaris3650; 08-14-2022 at 09:56 AM.

  2. #332
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,474
    Blog Entries
    2911
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by Solaris3650 View Post
    Hi,
    Thank you for this amazing indicator AllAverages_v4.9.mq5.

    I found a big issue while using that and it happens only if you want to add that as part of another indicator which uses more than one instance of the AllAverages.

    For example, if you are creating new MACD that uses Hull from AllAverages indicator for its 3 moving averages(12,26,9) . Issue is that all 3 returned buffers for these Hull moving averages are exactly same making any calculation impossible. This doesn't happen while using the indicator on chart.

    Andy idea please?
    No idea about what you are talking about ... because this indicator should be on the main chart.
    Example:

    AllAverages-audusd-d1-acy-securities-pty.png


    AllAverages-1frame.png


    AllAverages-2frame.png
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  3. #333
    Junior Member
    Join Date
    Aug 2022
    Posts
    3
    Thank you for reply.
    Please find attached sample code showing the problem.
    Code uses “AllAverages_v4.9” to create another custom indicator. This has been specified as MasterIndicator variable in the OnInit event.
    Code works perfectly fine with any other indicator set as MasterIndicator but when I use the AllAverage, returned all buffer data contain “nan”.

    TestIndicator.mq5

  4. #334
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,474
    Blog Entries
    2911
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by Solaris3650 View Post
    Thank you for reply.
    Please find attached sample code showing the problem.
    Code uses “AllAverages_v4.9” to create another custom indicator. This has been specified as MasterIndicator variable in the OnInit event.
    Code works perfectly fine with any other indicator set as MasterIndicator but when I use the AllAverage, returned all buffer data contain “nan”.

    TestIndicator.mq5
    For Metatrader 5?
    I can not help with your new indicator but I am suggesting to use the "simple version" of this indicator.
    What is "simple version"?
    This is the AllAverages simple indicator which can be applied to any indicator including prices on the main chart and with the new set of prices.

    For example -
    • AllAverages_v4.9 simple indicator from this post #303
    • AllAverages_v4.4 simple indicator from post #254
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  5. #335
    Junior Member
    Join Date
    Aug 2022
    Posts
    3
    Thank you for reply.
    Still Same problem with simple version.

  6. #336
    Junior Member
    Join Date
    Sep 2022
    Posts
    1
    AllAverages-hull3.png No problem

  7. #337
    Senior Member matfx's Avatar
    Join Date
    Sep 2013
    Location
    Malaysia
    Posts
    1,178
    Blog Entries
    114
    Follow matfx On Twitter
    4 Linear Weighted Moving Average with MA Period setting follow Fibonacci numbers, 5,8,13 and 21.

    Template attached for MT4.

    AllAverages-4lwmafibo.png
    Attached Files Attached Files
    Follow my official trading theregulartrader blog

  8. #338
    Junior Member
    Join Date
    Apr 2023
    Posts
    1
    Hello, are you able to make the MA_Methods in AllAverages_v4.9.mq5 a Case that is numbered like you had in your ALLAverages_v3.1.mq4 version?

    This helps a lot with automated systems as I can have the trading both test all the different MAs as it is a range now and not labeled by name rather by number.

    switch(MA_Method)
    {
    case 1 : short_name="EMA("; break;
    case 2 : short_name="Wilder("; break;
    case 3 : short_name="LWMA("; break;
    case 4 : short_name="SineWMA("; break;
    case 5 : short_name="TriMA("; break;
    case 6 : short_name="LSMA("; break;
    case 7 : short_name="SMMA("; break;
    case 8 : short_name="HMA("; break;
    case 9 : short_name="ZeroLagEMA("; break;
    case 10: short_name="DEMA("; arraysize = 2; break;
    case 11: short_name="T3 basic("; arraysize = 6; break;
    case 12: short_name="InstTrend("; break;
    case 13: short_name="Median("; break;
    case 14: short_name="GeometricMean("; break;
    case 15: short_name="REMA("; break;
    case 16: short_name="ILRS("; break;
    case 17: short_name="IE/2("; break;
    case 18: short_name="TriMA_gen("; break;
    case 19: short_name="VWMA("; break;
    case 20: short_name="JSmooth("; arraysize = 5; break;
    case 21: short_name="SMA_eq("; break;
    case 22: short_name="ALMA("; break;
    case 23: short_name="TEMA("; arraysize = 4; break;
    case 24: short_name="T3("; arraysize = 6; break;
    case 25: short_name="Laguerre("; arraysize = 4; break;
    case 26: short_name="McGinleyDynamic("; break;
    default: MA_Method=0; short_name="SMA(";

Page 34 of 34 FirstFirst ... 24 32 33 34

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •