Announcement

Collapse
No announcement yet.

if (The symbol is not "ES #F" dont load the EFS >

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

  • if (The symbol is not "ES #F" dont load the EFS >

    Hi,

    Why It's not working when I put the next code above everything in the function main?
    Code:
     if ( !sym("ES #F") ) return;
    How can I do that my EFS will load only on speccific symbol ?

    Like when I limit the EFS for Intervals:

    Code:
    if ( isDaily() ) return;
    Kind Regards,
    ser-E

  • #2
    Re: if (The symbol is not "ES #F" dont load the EFS >

    ser-E
    You need to use the getSymbol() function which retrieves the symbol being charted instead of the sym() function which is used to access the data of an external symbol. Your conditional statement should be
    if(getSymbol()!="ES #F") return;
    Hope this helps
    Alex


    Originally posted by ser-E
    Hi,

    Why It's not working when I put the next code above everything in the function main?
    Code:
     if ( !sym("ES #F") ) return;
    How can I do that my EFS will load only on speccific symbol ?

    Like when I limit the EFS for Intervals:

    Code:
    if ( isDaily() ) return;
    Kind Regards,
    ser-E

    Comment


    • #3
      Thank you very much Alexis, Once again you post the solution so fast! Your help is very appreciated!

      Comment


      • #4
        ser-E
        You are most welcome
        Alex


        Originally posted by ser-E
        Thank you very much Alexis, Once again you post the solution so fast! Your help is very appreciated!

        Comment

        Working...
        X