Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Modifying CurrentDayOHL for GMT time?

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

    Modifying CurrentDayOHL for GMT time?

    Is there an easy way to do this?

    Currently it's set to what ever is on your computer, but is there a way to do this so that it doesn't screw with other indicators?

    Or is there an adjustable indicator that does this?

    Thanks,
    Forrest

    #2
    Hello,

    Your options are:
    - Modify your pc clock, as you suggest.
    - Code your own indicator.
    - Use the Constantlines indicator to plot the lines mannually.
    DenNinjaTrader Customer Service

    Comment


      #3
      What instruments do you need it for?

      Comment


        #4
        Originally posted by Harry View Post
        What instruments do you need it for?
        Mainly interested in using it on FX pairs. I've been trying to create this myself, my programming skills are horrible right now.

        I normally watch Eur/Jpy, Eur/Usd, Gbp/Jpy, Gbp/Usd.

        Why do you ask about the instruments.

        Comment


          #5
          This indicator works for fixed time intervals

          If it is FOREX, you can use this link from the forum's indicator section



          Take the indicator CMICurrentDayOHLV75. It will autodetect FOREX. The time frame for FOREX is preset to a session starting and ending at 10:00 PM GMT. If you want a different session you can change it via indicator panel. It should also autoadjust to British Summer/WinterTime.

          As any CurrentDayOHL indicators, it will not work correctly on range or volume charts, but it will be fine for fixed time intervals. If you have problems using it send me a private message. I am using it myself for FOREX.

          Comment


            #6
            Thanks Harry, this looks promising.

            I will have to mess with it after the session end today, but will it display multiple days of data? That is kinda what I need to futher develop some strategies I was working on. To see multiple days and where there high and low is.

            Thanks,
            Forrest

            Comment


              #7
              Modified version to display several days

              No Forrest, it will not display several days because of the plot method used. But I attach a modified version that will. It diplays open, high, low and midline, and if necessary Fib levels in between. I just deleted the plot override section, so it is a bit of a quick hit. Please check it carefully, before using it, as I have not tested it. Also it has those vertical lines at the session end, that could be removed by some further enhancements of the code.
              Attached Files

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by 21laienoch, Today, 07:25 AM
              0 responses
              1 view
              0 likes
              Last Post 21laienoch  
              Started by burtoninlondon, 04-28-2024, 12:38 AM
              1 response
              15 views
              0 likes
              Last Post burtoninlondon  
              Started by MacDad, 02-25-2024, 11:48 PM
              8 responses
              175 views
              0 likes
              Last Post NinjaTrader_Erick  
              Started by alancurry, Today, 06:53 AM
              0 responses
              6 views
              0 likes
              Last Post alancurry  
              Started by Juanhuisman, Today, 06:51 AM
              0 responses
              6 views
              0 likes
              Last Post Juanhuisman  
              Working...
              X