Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day

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

    Can someone turn this thinkscript into a ninjascript. 5PM CST OHL and Previous Day

    Ninja's built in previous day OHLC and current day OHLC begin plotting at midnight. As we know, the futures new trading day begins 5PM CST and not midnight. I have a thinkscript I use on thinkorswim that plots all this for me and has chart bubbles to identify the lines with the ability to set colors etc. It would be cool if some genorus thinkscript developer would take this close and make a ninjascript that will do the same. Code is attached.


    Click image for larger version

Name:	ninjascript idea.png
Views:	160
Size:	116.3 KB
ID:	1301257

    #2
    Originally posted by Option Whisperer View Post
    Ninja's built in previous day OHLC and current day OHLC begin plotting at midnight. As we know, the futures new trading day begins 5PM CST and not midnight.
    Huh? Mine doesn't do that.

    These indicators start plotting from the start of the
    session, as defined by Data Series > Trading Hours
    setting -- which is a per chart setting.

    I bet yours is set to 'Default 24 x 7', which causes the
    start of the session to be midnight.

    Change it to '<Use instrument settings>' and also
    make sure the instrument itself is set to the default,
    and then it should start plotting at the normal session
    open.

    Have you tried that?



    -=o=-

    Make sure your chart templates are set to use the
    default '<Use instrument setting>' so that all new
    charts automatically define the session correctly.

    Comment


      #3
      Originally posted by bltdavid View Post

      Huh? Mine doesn't do that.

      These indicators start plotting from the start of the
      session, as defined by Data Series > Trading Hours
      setting -- which is a per chart setting.

      I bet yours is set to 'Default 24 x 7', which causes the
      start of the session to be midnight.

      Change it to '<Use instrument settings>' and also
      make sure the instrument itself is set to the default,
      and then it should start plotting at the normal session
      open.

      Have you tried that?



      -=o=-

      Make sure your chart templates are set to use the
      default '<Use instrument setting>' so that all new
      charts automatically define the session correctly.
      Thanks. This was on an NKD chart. The only way to get things to work right on that chart is to have it set to 24/7. But I looked at my other charts and it does correctly plot overnight open on instrument settings. Not sure what it is about NKD that we have to have the data series different.

      Comment


        #4
        Originally posted by Option Whisperer View Post
        This was on an NKD chart. The only way to get things to work right on that chart is to have it set to 24/7.
        How so?

        Is that due to 'things' you've purchased?

        Using 'Default 24/7' for real-time charts means your
        charts are being sabotaged. That is, that setting will
        cause your charts to lie to you, because the chart is
        lying to the indicators.

        If you've purchased indicators that require that setting,
        then unfortunately that setting will screw with several
        normal, useful indicators that are standard with NT.

        Caveat emptor.



        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        46 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        33 views
        1 like
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        50 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        42 views
        0 likes
        Last Post CarlTrading  
        Working...
        X