Page 8 of 11 FirstFirst ... 6 7 8 9 10 ... LastLast
Results 71 to 80 of 104
Like Tree28Likes

AllAbsoluteStrength

This is a discussion on AllAbsoluteStrength within the Trading tools forums, part of the Trading Forum category; Originally Posted by igorad Hi Gods_Clown, Please check out the updated AllAbsoluteStrength indicator with the fixed MACD mode algorithm which ...

      
   
  1. #71
    Junior Member
    Join Date
    Feb 2016
    Posts
    3
    Quote Originally Posted by igorad View Post
    Hi Gods_Clown,

    Please check out the updated AllAbsoluteStrength indicator with the fixed MACD mode algorithm which allows to plot the CCI mode too.

    Attachment 12820

    settings for the CCI mode(MathMode=3)

    Attachment 12821Attachment 12822

    Regards,
    Igor
    bulls[shift] != 0
    bears[shift] != 0


    Modified code

    if(MathMode == 0)
    {
    if(mMA[0] - mMA[1] != 0)
    bulls[shift] = 0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1]));
    bears[shift] = 0.5*(MathAbs(mMA[0] - mMA[1]) - (mMA[0] - mMA[1]));
    }
    else
    if(MathMode == 1)
    {
    double up = 0;
    double dn = 10000000000;
    for(int i=0;i<Length;i++)
    {
    up = MathMax(up,High[shift+i]);
    dn = MathMin(dn,Low [shift+i]);
    }
    bulls[shift] = mMA[0] - dn;
    bears[shift] = up - mMA[0];
    }
    else
    if(MathMode == 2)
    {
    mLo[0] = allAverages(1,3,PreSmooth,MA_Method,masize,PreSmoo th + Length + 2,shift);

    bulls[shift] = MathMax(0,0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1])));
    bears[shift] = MathMax(0,0.5*(MathAbs(mLo[1] - mLo[0]) + (mLo[1] - mLo[0])));

    if(bulls[shift] > bears[shift]) bears[shift] = EMPTY_VALUE;
    else
    if(bulls[shift] < bears[shift]) bulls[shift] = EMPTY_VALUE;
    else {bulls[shift] = EMPTY_VALUE; bears[shift] = EMPTY_VALUE; }
    }
    else
    if(MathMode == 3)
    {
    double slow = allAverages(1,price,Length,MA_Method,masize,PreSmo oth + Length + 2,shift);
    if(mMA[0] - slow != 0)
    bulls[shift] = 0.5*(MathAbs(mMA[0] - slow) + (mMA[0] - slow));
    bears[shift] = 0.5*(MathAbs(mMA[0] - slow) - (mMA[0] - slow));
    }




    if(MathMode == 2) ,Wilder's DMI Book ,A reverse result was given !
    why?

  2. #72
    igorad
    Guest
    Quote Originally Posted by free.mail23 View Post
    bulls[shift] != 0
    bears[shift] != 0


    Modified code

    if(MathMode == 0)
    {
    if(mMA[0] - mMA[1] != 0)
    bulls[shift] = 0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1]));
    bears[shift] = 0.5*(MathAbs(mMA[0] - mMA[1]) - (mMA[0] - mMA[1]));
    }
    else
    if(MathMode == 1)
    {
    double up = 0;
    double dn = 10000000000;
    for(int i=0;i<Length;i++)
    {
    up = MathMax(up,High[shift+i]);
    dn = MathMin(dn,Low [shift+i]);
    }
    bulls[shift] = mMA[0] - dn;
    bears[shift] = up - mMA[0];
    }
    else
    if(MathMode == 2)
    {
    mLo[0] = allAverages(1,3,PreSmooth,MA_Method,masize,PreSmoo th + Length + 2,shift);

    bulls[shift] = MathMax(0,0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1])));
    bears[shift] = MathMax(0,0.5*(MathAbs(mLo[1] - mLo[0]) + (mLo[1] - mLo[0])));

    if(bulls[shift] > bears[shift]) bears[shift] = EMPTY_VALUE;
    else
    if(bulls[shift] < bears[shift]) bulls[shift] = EMPTY_VALUE;
    else {bulls[shift] = EMPTY_VALUE; bears[shift] = EMPTY_VALUE; }
    }
    else
    if(MathMode == 3)
    {
    double slow = allAverages(1,price,Length,MA_Method,masize,PreSmo oth + Length + 2,shift);
    if(mMA[0] - slow != 0)
    bulls[shift] = 0.5*(MathAbs(mMA[0] - slow) + (mMA[0] - slow));
    bears[shift] = 0.5*(MathAbs(mMA[0] - slow) - (mMA[0] - slow));
    }

    if(MathMode == 2) ,Wilder's DMI Book ,A reverse result was given !
    why?
    Hi free.mail23,

    Sorry but I don't understand what is a problem with the DMI mode in this indicator. Please explain in details.

    Regards,
    Igor

  3. #73
    Junior Member
    Join Date
    Feb 2016
    Posts
    3

    bulls[shift] > 0 bears[shift] > 0

    Quote Originally Posted by igorad View Post
    Hi free.mail23,

    Sorry but I don't understand what is a problem with the DMI mode in this indicator. Please explain in details.

    Regards,
    Igor
    ADXWilder's DMI book alerts nmc.mq4
    double DeltaHi = High[i] - High[i+1];
    double DeltaLo = Low[i+1] - Low[i];
    double plusDM = 0.00;
    double minusDM = 0.00;

    if ((DeltaHi > DeltaLo) && (DeltaHi > 0)) plusDM = DeltaHi;
    if ((DeltaLo > DeltaHi) && (DeltaLo > 0)) minusDM = DeltaLo;



    if(MathMode == 2) ,Wilder's DMI Book ,A reverse result was given !

    if(MathMode == 2)
    {
    mLo[0] = allAverages(1,3,PreSmooth,MA_Method,masize,PreSmoo th + Length + 2,shift);

    bulls[shift] = MathMax(0,0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1])));
    bears[shift] = MathMax(0,0.5*(MathAbs(mLo[1] - mLo[0]) + (mLo[1] - mLo[0])));

    if(bulls[shift] > bears[shift]) bears[shift] = EMPTY_VALUE;
    else
    if(bulls[shift] < bears[shift]) bulls[shift] = EMPTY_VALUE;
    else {bulls[shift] = EMPTY_VALUE; bears[shift] = EMPTY_VALUE; }
    }
    Attached Files Attached Files

  4. #74
    igorad
    Guest
    Quote Originally Posted by free.mail23 View Post
    ADXWilder's DMI book alerts nmc.mq4
    double DeltaHi = High[i] - High[i+1];
    double DeltaLo = Low[i+1] - Low[i];
    double plusDM = 0.00;
    double minusDM = 0.00;

    if ((DeltaHi > DeltaLo) && (DeltaHi > 0)) plusDM = DeltaHi;
    if ((DeltaLo > DeltaHi) && (DeltaLo > 0)) minusDM = DeltaLo;



    if(MathMode == 2) ,Wilder's DMI Book ,A reverse result was given !

    if(MathMode == 2)
    {
    mLo[0] = allAverages(1,3,PreSmooth,MA_Method,masize,PreSmoo th + Length + 2,shift);

    bulls[shift] = MathMax(0,0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1])));
    bears[shift] = MathMax(0,0.5*(MathAbs(mLo[1] - mLo[0]) + (mLo[1] - mLo[0])));

    if(bulls[shift] > bears[shift]) bears[shift] = EMPTY_VALUE;
    else
    if(bulls[shift] < bears[shift]) bulls[shift] = EMPTY_VALUE;
    else {bulls[shift] = EMPTY_VALUE; bears[shift] = EMPTY_VALUE; }
    }
    Hi free.mail23,

    The correct formula for the bulls/bears buffers in the AllAbsoluteStrength indicator is as follows:

    Code:
                if(MathMode == 2)
                {
                mLo[0] = allAverages(1,3,PreSmooth,MA_Method,masize,PreSmooth + Length + 2,shift);          
                   
                bulls[shift] = MathMax(0,0.5*(MathAbs(mMA[0] - mMA[1]) + (mMA[0] - mMA[1])));
                bears[shift] = MathMax(0,0.5*(MathAbs(mLo[1] - mLo[0]) + (mLo[1] - mLo[0])));
          
                   if(bulls[shift] > bears[shift]) bears[shift] = 0;
                   else 
                   if(bulls[shift] < bears[shift]) bulls[shift] = 0;
                   else {bulls[shift] = 0; bears[shift] = 0;}
                }
    It looks a bit different with the mladen's DMI code but result should be the same. Also you should remember the DMI shows relative and the AbsolteStrength - absolute strength.

    And you can take a look at the AllWilder'sDMI and compare it with the mladen's version.

    Regards,
    Igor

  5. #75
    Junior Member
    Join Date
    Apr 2016
    Posts
    2
    Hello, can anyone tell me what indicator is this? AllAbsoluteStrength-help.png

  6. #76
    Administrator newdigital's Avatar
    Join Date
    Feb 2013
    Posts
    10,481
    Blog Entries
    2967
    Follow newdigital On Twitter Add newdigital on Facebook Add newdigital on Google+ Add newdigital on MySpace
    Add newdigital on Linkedin
    Quote Originally Posted by YMNazwan View Post
    Hello, can anyone tell me what indicator is this? ...
    This is IN10TION indicator:- IN10TION NewsReader indicator is on this thread (first post of the thread). This is updated version for the new MT4 (build 600 and above).
    Premium Trading Forum: subscription, public discussion and latest news
    Trading Forum wiki || MQL5 channel for the forum
    Trading blogs || My blog

  7. #77
    Junior Member
    Join Date
    Apr 2016
    Posts
    2
    Thank you so much newdigital

  8. #78
    Junior Member
    Join Date
    Nov 2015
    Posts
    9
    Dear Igorad,

    should be possible to implement the William Blau TSI inside the AllAbsoluteStrength indicator ?
    Thanks in advance,

    Andrea

  9. #79
    igorad
    Guest
    Quote Originally Posted by AndreaTrade View Post
    Dear Igorad,

    should be possible to implement the William Blau TSI inside the AllAbsoluteStrength indicator ?
    Thanks in advance,

    Andrea

    Hi Andrea,

    Just want to inform that to get something similar to the Blau TSI indicator you should set the proper Length and PreSmooth parameters for MathMode=0(RSI) (eg. Length=13, PreSmooth=25, MA_Method=EMA).


    Attachment 23731


    Regards,
    Igor

  10. #80
    Junior Member
    Join Date
    Nov 2015
    Posts
    9
    Igor,

    thanks for your reply.
    Nevertheless I was looking something comparable to this type of TSI ( normalized ? ) Should be possible to include it in your indi ?

    AllAbsoluteStrength-eurusdh1tsi.jpg

    tsi-osc.mq4

Page 8 of 11 FirstFirst ... 6 7 8 9 10 ... LastLast

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
  •