• 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

Arrows added to chart

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

    Arrows added to chart

    Hi



    Apologies if this has been covered before but I couldn't find it... I wish to add arrows to 10 minute OHLC bars where the arrows tell whether the high or low was reached first. I'd like the arrows to update as the bar is created, not once it is created. To do this I believe I can add a secondary tick data or 1 sec data series to indicator code to be run on the 10 min chart and use this to update the printing of the arrow on bar update.

    Could you please direct me to necessary resources to achieve my aim.


    Thanks

    #2
    Hello Slide588,

    Thank you for your note.

    You would want to see the following example on adding a secondary data series,
    https://ninjatrader.com/support/foru...d.php?t=109177

    There may be many ways to accomplish what you’re looking to do but some methods you could use,

    IsFirstTickOfBar,
    https://ninjatrader.com/support/help...ttickofbar.htm

    Prior to IsFirstTickOfBar you may want to check that it’s the first tick of the first series using BarsInProgress,
    https://ninjatrader.com/support/help...inprogress.htm

    For example,
    Code:
    if(BarsInProgress == 0)
        if (IsFirstTickOfBar)
    //Logic for defining whether Hi or low hit first.
    Drawing Objects you would be interested in,
    https://ninjatrader.com/support/help...s/?drawing.htm

    I do not have any samples for how you'd define whether low or high was hit first but let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GLFX005, Today, 12:22 PM
    2 responses
    35 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by AspenHiker, Today, 08:37 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by MartinT, Yesterday, 01:12 PM
    3 responses
    15 views
    0 likes
    Last Post MartinT
    by MartinT
     
    Started by caveat_lector, Today, 11:58 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Heath  
    Started by Bionian, Today, 11:43 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X