Announcement

Collapse
No announcement yet.

var vADXDM = new ADXDMStudy(28);

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

  • var vADXDM = new ADXDMStudy(28);

    Hi,

    Was there a default smoothing for the old ADXDMStudy() function?

    Specifically for this code line: "var vADXDM = new ADXDMStudy(28);"?

    An old efs uses this code:
    /*************************/

    var vADXDM = new ADXDMStudy(28);
    function preMain(){
    ...
    }
    function Main(){
    if (
    vADXDM.getValue(ADXDMStudy.PDI) > vADXDM.getValue(ADXDMStudy.NDI) &&
    vADXDM.getValue(ADXDMStudy.ADX) >= 20
    ) onADXAction1()
    ...
    }
    /*************************/
    But the EFS2 code requires both a length and a smoothing #,
    i.e., adx(28, ??). So to convert the subject code line to EFS2 I would need the default smoothing if anyone knows what it would be.

    The EFS Glossary doesn't give one.

    Thank you.
    Last edited by waynecd; 05-16-2008, 09:30 AM.

  • #2
    Re: var vADXDM = new ADXDMStudy(28);

    waynecd
    Yes there was (see the builtinADXDM.efs that is installed with eSignal in the Builtin folder of Formulas). For the syntax of the ADXDMStudy() see this article in the EFS KnowledgeBase (you can find the link to the same article also in the Glossary)
    Usually the smoothing (ie the ADXLength) is set to the same value as the DILength
    Alex


    Originally posted by waynecd
    Hi,

    Was there a default smoothing for the old ADXDMStudy() function?

    Specifically for this code line: "var vADXDM = new ADXDMStudy(28);"?

    An old efs uses this code:
    /*************************/

    var vADXDM = new ADXDMStudy(28);
    function preMain(){
    ...
    }
    function Main(){
    if (
    vADXDM.getValue(ADXDMStudy.PDI) > vADXDM.getValue(ADXDMStudy.NDI) &&
    vADXDM.getValue(ADXDMStudy.ADX) >= 20
    ) onADXAction1()
    ...
    }
    /*************************/
    But the EFS2 code requires both a length and a smoothing #,
    i.e., adx(28, ??). So to convert the subject code line to EFS2 I would need the default smoothing if anyone knows what it would be.

    The EFS Glossary doesn't give one.

    Thank you.

    Comment


    • #3
      Thanks Alex,

      Much appreciated.

      Comment


      • #4
        waynecd
        You are welcome
        Alex


        Originally posted by waynecd
        Thanks Alex,

        Much appreciated.

        Comment

        Working...
        X