Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Logic and code behind mini data box

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

    Logic and code behind mini data box

    Hi !

    I would like to develope a data box similar to the mini data box displayed when cliking middle mouse. I have coded an indicator that draw some plots dependind on the volume and the delta. I would like to be able to click in the plots and show a box with the values of the plot in the same way the mini data box does. I have try to find where is the logic and the methods/functions used by the mini data box. BUt I don't find the info I need ?

    Any help, please ?

    Thanks

    Helios

    #2
    Hello hbolorin,

    Thank you for your post.

    There is no exposed NinjaScript for drawing the data box. This would need to be accomplished with your own custom rendering.

    Please see the attached indicator example which demonstrates how you could use SharpDX to draw a rectangle on a chart with text inside of the rectangle. Clicking the mouse once will toggle the drawing object on and a second mouse click will toggle the drawing off. When toggled on, the drawing object will be drawn at the location that the mouse was clicked.

    Also, see the help guide link below for information about working with SharpDX. The SampleCustomRender indicator that comes by default with NinjaTrader may be used alongside the SharpDX documentation to see how SharpDX is used.

    Working with SharpDX - https://ninjatrader.com/support/help..._rendering.htm

    This script also disposes and recreates Resources in OnRenderTargetChanged for optimal performance. Please see the help guide link below about using OnRenderTargetChanged.

    OnRenderTargetChanged - https://ninjatrader.com/support/help...getchanged.htm

    Let us know if we may further assist.
    Attached Files
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    668 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    377 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    110 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    575 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    580 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X