• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

SHARE: BarInfo (mini databox)

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

    SHARE: BarInfo (mini databox)

    This will probably be the last script that I work on for a while, so I hope you guys find it as useful as I have.


    NEW DOWNLOAD LINK: https://ninjatraderecosystem.com/use...nload/barinfo/


    OLD Download/rate here: https://ninjatrader.com/support/foru...atid=7&lpage=1


    I've written this script to be able to quickly see basic chart/bar info
    without having to use the Data Box or clicking the middle mouse button/wheel.

    Some basic functionality include:
    - The option to select which fields you'd like to see/hide.
    - Bar Time/Date
    - Open/High/Low/Close values
    - Ticks per bar (for historical values, you will need to enable Tick Replay)
    - Volume per bar
    - Volume per Tick average per bar (for historical values, you will need to enable Tick Replay)
    - Bid
    - Ask
    - Spread
    - The options to change the font, font size, and text colors.
    - When the "Visible" property checkbox in the "Indicators" window is unchecked,
    even though this indicator is not rendered like a typical indicator,
    unchecking will still allow this indicator to be hidden from view.

    ---

    Aside from the basics, I've tried to make this script as resource friendly as possible
    by using the following:


    Rather than updating values directly within OnMouseMove(),
    I've used a Timer to regularly trigger the UpdateValues() method
    which then processes the updates for values, colors, etc.

    This way, we can include the following two options to disable/enable the Timer/updates as needed:

    First, disable the Timer if the mouse is no longer over the ChartControl.
    The Timer is re-enabled when the mouse re-enters the ChartControl.

    Second, disable the Timer if the chart window is deactivated (loses focus).
    The Timer is re-enabled when the chart window is activated again.

    You can use any combination of the two options.

    If both options are enabled, the Timer will remain disabled if the chart window
    is reactivated while the mouse still remains out of the ChartControl.
    (For example, you click on the upper menu area, or the blank area at the bottom of the window)

    ---

    You can manually change the speed/freqency at which this script updates values.

    ---

    If you have "Use Last Visible Bar" checked and the last visible bar is not the absolute last bar on the chart
    the Timer will automatically be disabled for historical bars as they do not update values.
    It will automatically be re-enabled when needed.

    If you have "Use Last Visible Bar" unchecked or the last visible bar is the absolute last bar on the chart while checked,
    the script automatically checks to see if any new updates have been made in the last 30 seconds,
    if no new updates made in that time, the Timer will automatically shut off.
    Again, it will automatically be re-enabled when needed.

    ---

    If you hold the mouse over the same candle, the Timer will shut off under the following conditions:

    - If you have "Use Last Visible Bar" checked
    - If the last visible bar is not the absolute last bar on the chart,
    holding the mouse over the same candle will disable the Timer until the mouse is moved again.
    - If the last visible bar is the absolute last bar on the chart,
    holding the mouse over the same candle will disable the Timer until there is an update in market data.

    - If you have "Use Last Visible Bar" unchecked
    - Holding the mouse over the same candle will disable the Timer until there is an update in market data.

    ---

    "Thank you" to Chelsea Bell of the NT support team for his "ChartCustomToolBarExample" script.
    (https://ninjatrader.com/support/foru...d.php?p=499327)
    A good portion of code for this indicator was taken from Chelsea's script and modified as needed.


    Image 001 - "Use Last Visible Bar" is checked, middle mouse button is clicked just to show that indicator values match.
    Image 002 - Font and font size has been changed, text wrapping changed to no wrap
    Image 003 - "Use Last Visible Bar" is now unchecked, indicator data correctly shows the last available candle's data (which would be friday 4 pm cst) even though the last visible bar is still the 7 am bar, also some of the value options have been unchecked, font and font size changed again, this time text wrapping changed to WrapWithOverflow
    Attached Files
    Last edited by gubbar924; 06-26-2020, 10:46 AM.

    #2
    Hi gubbar924,

    thank you for interesting indicator. Unfortunately it changes displaying of Plot executions: Markers only / Text and marker. Would it be possible to solve it?

    Thank you

    Comment


      #3
      Hello,

      sorry for confusion, as it seems now, the source of the issue is something else.

      Comment


        #4
        Originally posted by emuns View Post
        Hello,

        sorry for confusion, as it seems now, the source of the issue is something else.

        Thank you for the update, I've replied to your PM

        Comment


          #5
          Hi,

          Thank you for providing such an useful indicator, this has made my life very easy. Is there any way Range can be added to the info, Candle/Bar High - Low.
          Best Regards
          Last edited by toughnedglass; 04-06-2020, 05:29 AM.

          Comment


            #6
            Hello, I've sent you a PM, lets sidebar there, thanks

            Comment


              #7
              Originally posted by gubbar924 View Post
              Hello, I've sent you a PM, lets sidebar there, thanks
              Can i have the same answer? thank you

              Comment


                #8
                Originally posted by giampaolo sebastiani View Post

                Can i have the same answer? thank you
                Hello
                giampaolo sebastiani,

                adding of range is easy (see my try in attachment), but how to add delta, that´s the question!!!
                Attached Files

                Comment


                  #9
                  Originally posted by emuns View Post

                  Hello
                  giampaolo sebastiani,

                  adding of range is easy (see my try in attachment), but how to add delta, that´s the question!!!
                  i think i am not abke to make it works
                  volume and range are not working

                  Comment


                    #10
                    Originally posted by giampaolo sebastiani View Post

                    i think i am not abke to make it works
                    volume and range are not working
                    ...strange, it was working fine. I will try to look at it.

                    Comment


                      #11
                      Originally posted by gubbar924 View Post
                      Hello, I've sent you a PM, lets sidebar there, thanks
                      hi i am interesting in having volume , range and volume/range to get an effort vs results is it possible to add it? thanx

                      Comment


                        #12
                        adding range and volume/range to the script, will have it updated and uploaded shortly
                        Last edited by gubbar924; 06-29-2020, 10:18 AM.

                        Comment


                          #13
                          Originally posted by gubbar924 View Post
                          adding range and volume/range to the script, will have it updated and uploaded shortly
                          Thanks for sharing your indicator. Would it be possible to leave the information box visible after releasing the mouse button? For example, a new option that when enabled, pressing the button activates the information box and pressing again deactivates it, but it doesn't hide the box by moving the pointer to another bar.
                          I have inspected your code and cannot find a way to do it.

                          Comment


                            #14

                            Sorry for the inconvenience, I realized that I was referring to the mini data box Thank you anyway

                            Comment

                            Latest Posts

                            Collapse

                            Topics Statistics Last Post
                            Started by KarstenKafl, 07-16-2020, 12:38 AM
                            8 responses
                            42 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Started by DieSlower, Yesterday, 11:02 PM
                            1 response
                            7 views
                            0 likes
                            Last Post NinjaTrader_Kate  
                            Started by jhontorres, Today, 12:16 PM
                            0 responses
                            3 views
                            0 likes
                            Last Post jhontorres  
                            Started by TomTownsend, Today, 11:35 AM
                            3 responses
                            15 views
                            0 likes
                            Last Post NinjaTrader_ChelseaB  
                            Started by frankduc, Today, 11:17 AM
                            2 responses
                            15 views
                            0 likes
                            Last Post frankduc  
                            Working...
                            X