Announcement

Collapse
No announcement yet.

efsExternal() problem

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

  • efsExternal() problem

    I have an efs, called Character, that returns a single text string i.e. a word. When I add this indicator to a watchlist it shows the correct string exactly as expected.

    I am now writing a new efs but I would like to reference Character's returned string in my new indicator.

    However when I try and display the string returned by Character I get [object Series]

    If I alter Character to return a number it works perfectly so I guess my problem is about processing a string of characters.

    Any ideas please?

    Here is my EFS:

    var vCharacter = efsExternal("Character.efs", Color.lime, Color.grey, Color.red, 60, 60, 60);
    clearText();
    drawText(vCharacter.toString, TopRow2, Color.lime, Text.ONTOP);
    return;

    Thank you

  • #2
    Re: efsExternal() problem

    BerkoBob
    See this post in response to a similar question
    FYI I found it by searching the forum for the keyword efsExternal* AND string*
    Alex


    Originally posted by BerkoBob
    I have an efs, called Character, that returns a single text string i.e. a word. When I add this indicator to a watchlist it shows the correct string exactly as expected.

    I am now writing a new efs but I would like to reference Character's returned string in my new indicator.

    However when I try and display the string returned by Character I get [object Series]

    If I alter Character to return a number it works perfectly so I guess my problem is about processing a string of characters.

    Any ideas please?

    Here is my EFS:

    var vCharacter = efsExternal("Character.efs", Color.lime, Color.grey, Color.red, 60, 60, 60);
    clearText();
    drawText(vCharacter.toString, TopRow2, Color.lime, Text.ONTOP);
    return;

    Thank you

    Comment

    Working...
    X