Announcement

Collapse
No announcement yet.

Syntax Error in EFS

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

  • Syntax Error in EFS

    Hi,

    I recently made requested assistance in tweaking study so that it show the indicator for a different security other than the one in the price study. No one got back to me so I thought I would give it a go myself. I decided to cut and paste some of the code from JayF's 'SymbolCompareAsNPS.efs' into the efs that I'm trying to tweak. However, I keep on getting the following syntax error message:

    ReferenceError: Symbo1 is not defined.

    Can someone please show me where I would need to define 'Symbol1'?

    Thanks

    Carlton
    Attached Files

  • #2
    Carlton,

    You need to define variables, and in this case, Symbol1 is not defined, in this case, the error you are getting is fairly straightforward.

    ReferenceError: Symbo1 is not defined.

    What you need to do, when trying to extract and paste code such as you are is to 1) check every single variable that you are extracting from a piece of code and 2) look where the variable was defined in the original code and 3) duplicate the declaration in the new efs. If you do not do this, this error code will become your friend, not a good situation to be in .

    Comment


    • #3
      Thanks Steve,


      Cheers

      Carlton

      Comment

      Working...
      X