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

Current Week and Current Month Indicator

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

    Current Week and Current Month Indicator

    Hello all.


    I am trying to work on 2 separate indicators - 1 is for the current week opening print - Sunday @ 6PM est and it draws a horizontal line. Then the same for the current month's opening print, again drawing a horizontal line.

    Basically the same as the CurrentOHL indicator, but for weekly & monthly!


    Thank you.

    #2
    Hello, thanks for writing in and welcome to the NinjaTrader forums.

    First, you should look at the Repeater indicator that can do this with some specific setup on your end:

    https://ninjatraderecosystem.com/use...load/repeater/

    The timestamp of each bar is stored within the Time[] array:
    https://ninjatrader.com/support/help...eries_time.htm

    Using this knowledge and the two links below should get you to a solution since each entry in the Time[] array is a DateTime object:

    https://stackoverflow.com/questions/...-month-c-sharp - day of month checking
    https://stackoverflow.com/questions/...n-a-time-range - time span checking

    Kind regards,
    -ChrisL

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.​
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      Hope you guys are doing well,

      any luck with the Current Month OHL??

      Would really appreciate it.

      Thanks,

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,789 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      837 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,294 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      13 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      63 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X