Announcement

Collapse
No announcement yet.

Starting Scripts On New Days

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

  • Starting Scripts On New Days

    How do I start a script with the first closed bar of the current day? I don't want any calculations for any prior bars since that affects my charting of the results.

    I'm using a 1-minute chart with setComputeOnClose(). I think this is just a simple comparison of dates but I have trouble with dates. Any help would be appreciated.

    Processor time is at a premium. Thanks.

    Bob

  • #2
    Re: Starting Scripts On New Days

    Bob
    See the solution suggested in this thread
    Alex


    Originally posted by AssetHound
    How do I start a script with the first closed bar of the current day? I don't want any calculations for any prior bars since that affects my charting of the results.

    I'm using a 1-minute chart with setComputeOnClose(). I think this is just a simple comparison of dates but I have trouble with dates. Any help would be appreciated.

    Processor time is at a premium. Thanks.

    Bob

    Comment


    • #3
      Re: Re: Starting Scripts On New Days

      Thanks. I'll give it a try.

      Bob


      Originally posted by Alexis C. Montenegro
      Bob
      See the solution suggested in this thread
      Alex

      Comment


      • #4
        Re: Re: Re: Starting Scripts On New Days

        Bob
        You are most welcome
        Alex


        Originally posted by AssetHound
        Thanks. I'll give it a try.

        Bob

        Comment

        Working...
        X