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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    89 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    47 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    74 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    72 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    60 views
    0 likes
    Last Post CarlTrading  
    Working...
    X