Announcement

Collapse
No announcement yet.

Display data in Cursor Window without plot on chart

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

  • Display data in Cursor Window without plot on chart

    I would like my calculated slope to display in the "Cursor Window" as I scroll over price bars without plotting the data on to the chart. Currently the only way I have found is to create a series in the "function Main()" return value but that creates a plot in the indicator pane.

    i.e.,

    return new Array( myVar1, myVar2,FinalDegrees1,Slope1 ); }

    Is this possible some other way?

    Thanks

  • #2
    try something similar to this:

    PHP Code:
     return new Array( myVar1myVar2,FinalDegrees1,null); } 
    or
    PHP Code:
     return new Array( myVar1myVar2,null,null); } 


    hth,
    Last edited by zeller4; 02-17-2008, 07:45 PM.

    Comment


    • #3
      Hi Zeller4,

      Thanks for the reply. It did not plot the line as I wanted but it also did not display the values in the "Cursor Window". It displays "none" instead of values.
      Last edited by waynecd; 02-18-2008, 10:01 AM.

      Comment


      • #4
        waynecd
        You need to convert the value to a string. EFS will not plot strings but will return them to the Cursor Window
        You can convert a value to a string in several ways such as using the .toString() or .toFixed() methods or simply by adding a string to the value eg myValue+""
        Alex


        Originally posted by waynecd
        I would like my calculated slope to display in the "Cursor Window" as I scroll over price bars without plotting the data on to the chart. Currently the only way I have found is to create a series in the "function Main()" return value but that creates a plot in the indicator pane.

        i.e.,

        return new Array( myVar1, myVar2,FinalDegrees1,Slope1 ); }

        Is this possible some other way?

        Thanks

        Comment


        • #5
          Alex,

          Thanks once again.

          Comment


          • #6
            waynecd
            As always my pleasure
            Alex


            Originally posted by waynecd
            Alex,

            Thanks once again.

            Comment

            Working...
            X