Announcement

Collapse
No announcement yet.

DMI alert

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DMI alert

    Does anyone know if there is an alert available for +DM/-DM crossings?

    Ian

  • #2
    Ian
    Don't know if there is one but the attached efs will just sound a ding and show an alert when the +DM crosses above and below the -DM.
    The Length setting for the ADXDM study is 14. Use the Editor and change the value in Line 1 if needed
    Alex
    Attached Files

    Comment


    • #3
      Re: Reply to post 'DMI alert'

      Much appreciated Alex.

      Ian
      ----- Original Message -----
      From: <[email protected]>
      To: <[email protected]>
      Sent: Thursday, May 08, 2003 1:23 AM
      Subject: Reply to post 'DMI alert'


      > Hello nife01,
      >
      > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      >

      Comment


      • #4
        Originally posted by Alexis C. Montenegro
        Ian
        Don't know if there is one but the attached efs will just sound a ding and show an alert when the +DM crosses above and below the -DM.
        The Length setting for the ADXDM study is 14. Use the Editor and change the value in Line 1 if needed
        Alex
        Hi Alex
        Would it be possible to configure an alert for adx(14) crossing a specific level (im looking for extreme situations)
        regards
        Ray

        Comment


        • #5
          Ray
          Yes you can add that in the conditions
          Alex

          Comment


          • #6
            Re: Reply to post 'DMI alert'

            Did you try the formula wizard? - piece of cake.

            If you need some help getting started let me know.

            Comment


            • #7
              Ray
              Attached is an example where it will sound a ding if ADX goes above 25.
              All parameters for the study and the trigger level can be adjusted via Edit Studies
              Alex
              Attached Files

              Comment


              • #8
                Re: Reply to post 'DMI alert'

                Much obliged
                Happy new year
                Ray
                ----- Original Message -----
                From: <[email protected]>
                To: <[email protected]>
                Sent: Wednesday, December 31, 2003 8:04 AM
                Subject: Reply to post 'DMI alert'


                > Hello raymillen,
                >
                > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                >

                Comment


                • #9
                  Ray
                  You are most welcome and Happy New Year to you too.
                  Alex

                  Comment


                  • #10
                    Ray
                    You may need to post the efs while on line in the forum because sending it using your email client introduces a lot of extraneous characters (for example it adds 3D after every equal sign)
                    Alex

                    NOTE: There seems to be a problem with the BB as this message was posted in reply to the one above

                    Comment


                    • #11
                      Re: Reply to post 'DMI alert'

                      Hi Again
                      sorry to be a pain but im trying to modify the adx color efs to include =
                      the
                      alert for extreme readings and now i get nothing if you could check =
                      this or
                      include a mod to adx color to include an alert i would be much obliged.
                      Ray
                      /************************
                      Copyright =A9 eSignal, 2003
                      *************************

                      Description: This is a color coded ADX study.

                      Inputs:

                      nDILength - Length of DI (default is 14)
                      nADXSmooth - Smoothing of ADX (default is 14)
                      nLowestLevel - Lowest Color Level (default is 10)
                      nLowLevel - Low Color Level (default is 20)
                      nMedLevel - Medium Color Level (default is 30)
                      nHighLevel - High Color Level (default is 45)
                      nLowestColor - Lowest Color (default is Dark Red)
                      nLowColor - Low Color (default is Red)
                      nMedColor - Medium Color (default is Blue)
                      nHighColor - High Color (default is Green)
                      nHighestColor - Highest Color (default is White)

                      */

                      //var study =3D new ADXDMStudy(14, 14);
                      var study =3D null;
                      var vColor =3D null;


                      var fp3 =3D new FunctionParameter("Level", FunctionParameter.NUMBER);
                      fp3.setLowerLimit(0);
                      fp3.setDefault(25); //Edit this value to set a new default







                      function preMain() {

                      setStudyTitle("ADX Color");
                      setCursorLabelName("ADX");
                      setDefaultBarThickness(2,0);
                      setCursorLabelName("+DI",1);
                      setCursorLabelName("-DI",2);

                      setDefaultBarFgColor(Color.blue,1);
                      setDefaultBarFgColor(Color.red,2);
                      }

                      function main( nDILength,
                      nADXSmooth,
                      nLowestLevel,
                      nLowLevel,
                      nMedLevel,
                      nHighLevel,
                      nLowestColor,
                      nLowColor,
                      nMedColor,
                      nHighColor,
                      nHighestColor) {

                      // check inputs and set defaults
                      if (nDILength =3D=3D null) {
                      nDILength =3D 14;
                      } else {
                      nDILength =3D Math.round(nDILength);
                      }

                      if (nADXSmooth =3D=3D null) {
                      nADXSmooth =3D 14;
                      } else {
                      nADXSmooth =3D Math.round(nADXSmooth);
                      }

                      if (nLowestLevel =3D=3D null) nLowestLevel =3D 10;
                      if (nLowLevel =3D=3D null) nLowLevel =3D 20;
                      if (nMedLevel =3D=3D null) nMedLevel =3D 30;
                      if (nHighLevel =3D=3D null) nHighLevel =3D 45;

                      /*** Valid Colors ***
                      aqua, black, blue, brown, cyan, darkgreen,
                      darkgrey, fushcia, green, grey, khaki,
                      lightgrey, lightyellow, lime, magenta,
                      maroon, navy, olive, paleyellow, purple,
                      red, teal, white, yellow
                      ************************/

                      if (nLowestColor =3D=3D null) {
                      nLowestColor =3D Color.maroon;
                      } else {
                      nLowestColor =3D eval("Color."+nLowestColor);
                      }

                      if (nLowColor =3D=3D null) {
                      nLowColor =3D Color.red;
                      } else {
                      nLowColor =3D eval("Color."+nLowColor);
                      }

                      if (nMedColor =3D=3D null) {
                      nMedColor =3D Color.blue;
                      } else {
                      nMedColor =3D eval("Color."+nMedColor);
                      }

                      if (nHighColor =3D=3D null) {
                      nHighColor =3D Color.lime;
                      } else {
                      nHighColor =3D eval("Color."+nHighColor);
                      }

                      if (nHighestColor =3D=3D null) {
                      nHighestColor =3D Color.white;
                      } else {
                      nHighestColor =3D eval("Color."+nHighestColor);
                      }

                      if (study =3D=3D null) study =3D new =
                      ADXDMStudy(nDILength,nADXSmooth);

                      var vADX =3D study.getValue(ADXDMStudy.ADX);
                      if (vADX =3D=3D null) return;
                      var vPDI =3D study.getValue(ADXDMStudy.PDI);
                      if (vPDI =3D=3D null) return;
                      var vNDI =3D study.getValue(ADXDMStudy.NDI);
                      if (vNDI =3D=3D null) return;

                      // set color
                      if (vADX <=3D nLowestLevel) {
                      vColor =3D nLowestColor;

                      } else if (vADX <=3D nLowLevel) {
                      vColor =3D nLowColor;

                      } else if (vADX <=3D nMedLevel) {
                      vColor =3D nMedColor;

                      } else if (vADX <=3D nHighLevel) {
                      vColor =3D nHighColor;

                      } else {
                      vColor =3D nHighestColor;
                      }

                      if (vColor !=3D null) setBarFgColor (vColor,0);

                      if (vADX =3D=3D null) vADX =3D new ADXDMStudy(DILength, =
                      ADXLength);


                      if(vADX.getValue(ADXDMStudy.ADX,-1)<Level&&vADX.getValue(ADXDMStudy.ADX)=
                      >Lev
                      el)
                      Alert.playSound("ding.wav");


                      return new Array(vADX.getValue(ADXDMStudy.ADX),
                      vADX.getValue(ADXDMStudy.PDI), vADX.getValue(ADXDMStudy.NDI));

                      return vADX;
                      }




                      ----- Original Message -----
                      From: <[email protected]>
                      To: <[email protected]>
                      Sent: Wednesday, December 31, 2003 8:04 AM
                      Subject: Reply to post 'DMI alert'


                      > Hello raymillen,
                      >
                      > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                      >

                      Comment


                      • #12
                        Re: Reply to post 'DMI alert'

                        ok thanks i try again later
                        ray

                        ----- Original Message -----
                        From: <[email protected]>
                        To: <[email protected]>
                        Sent: Wednesday, December 31, 2003 8:39 AM
                        Subject: Reply to post 'DMI alert'


                        > Hello raymillen,
                        >
                        > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                        >

                        Comment


                        • #13
                          Ray
                          Here is the corrected and revised version of the efs you posted
                          Alex

                          Attached Files

                          Comment


                          • #14
                            Ray

                            I tried to copy and paste your Formula and I have this output error
                            Attached Files
                            Fabrizio L. Jorio Fili

                            Comment


                            • #15
                              There are two problems here.
                              The first one is that messages sent using email client are getting bumped after messages posted on line. In fact my reply to the message with the incorrect efs is now placed before the message I was responding to (see a couple of messages back).
                              In that message you will see that I mention that some extraneous characters (specifically 3D) are being inserted in the efs after every equal sign.
                              Anyhow this has been fixed and the efs I just posted takes care of that error while adding the sound alert
                              Alex

                              PS. I have already alerted eSignal to the problem of email messages being placed out of sequence

                              Comment

                              Working...
                              X