Announcement

Collapse
No announcement yet.

EFS help need CurrentDate

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

  • EFS help need CurrentDate

    Hi,

    I'm trying to create a simple EFS for painting bar background on a daily chart but for today's bar only. Does anyone know how I can do that?

    Also, how would that work for an intraday chart if I wanted to paint the most recent bar only?

    Thanks,
    Eyal

  • #2
    Eyal

    Try this


    function main() {
    addLineTool(LineTool.VERT, 0, 1, Color.blue, "vert1");
    return null;}

    Comment


    • #3
      Hi dloomis,

      I've tried the code, it opened a new pane on a chart but didn't plot or paint anything.. how should I be using this function?

      Thanks,
      Eyal

      Comment


      • #4
        Doesn't this draw a verical line in the price pane at the last bar?

        function preMain(){
        setPriceStudy( true )
        }


        function main() {
        addLineTool(LineTool.VERT, 0, 1, Color.blue, "vert1");
        return null;}

        Comment


        • #5
          err. nope.. nothing happens on the chart..

          Comment


          • #6
            Eyal
            Add clearLineTool(LineTool.VERT); in the line above addLineTool(LineTool.VERT, 0, 11, Color.yellow, "vert1");
            Alex

            Comment


            • #7
              That worked. Thanks!

              Eyal

              Comment

              Working...
              X