Announcement

Collapse
No announcement yet.

price line study ?

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

  • price line study ?

    HELLO ,how do i make A EFS FILE THAT PUTS A LINE ACROSS THE CHART WERE THE
    CURRENT PRICE IS AT ??...........(a strait price line that moves with the
    price ?)

  • #2
    Esignal doesn't have this function.

    I had Chris Kryza from Divergence Software make a script for me. Works great.

    dom

    Comment


    • #3
      goforit20 and dom
      There are two functions that will do that (see the corresponding links for the descriptions and syntax) .
      The first one is addBand() eg
      PHP Code:
      addBand(close(0), PS_SOLID,1Color.blue,"CurrentPrice"); 
      The second is addLineTool() eg
      PHP Code:
      //if using eSignal 8.0 or earlier uncomment the following line
      //clearLineTool(LineTool.HORZ);
      addLineTool(LineTool.HORZclose(0), 1Color.blue"CurrentPrice"); 
      Add either one of the above code examples to the main() function of any existing efs that plots as a price study and it will draw a line across the screen at the current price.
      If you want to write the efs from scratch you can use the efs template that I provided here
      Alex



      Originally posted by goforit20
      HELLO ,how do i make A EFS FILE THAT PUTS A LINE ACROSS THE CHART WERE THE
      CURRENT PRICE IS AT ??...........(a strait price line that moves with the
      price ?)

      Originally posted by ideaman
      Esignal doesn't have this function.

      I had Chris Kryza from Divergence Software make a script for me. Works great.

      dom

      Comment


      • #4
        Pretty neat! Thx. Alexis.

        Comment


        • #5
          dom
          You are most welcome
          Alex

          Comment


          • #6
            thanks,Alex that was what i was trying to do !!.......one more thing can you get that to work on a pnf chart ?.....it does not move real time ?

            Comment


            • #7
              goforit20
              Use getMostRecentTrade() instead of close(0) as the price at which the line is drawn
              See this article in the EFS KnowledgeBase for the description of the function
              Alex

              Comment

              Working...
              X