Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Drawing initiates on secondary series

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

    Drawing initiates on secondary series

    I'm currently using 1min bars to initiate a position but I also have 1 tick chart open because I want to see more granularly where the order is executed. I currently have

    AddDataSeries("ES 09-18", BarsPeriodType.Tick, 1);

    ^^ in State.Configure

    Draw.ArrowUp(this, @"ProximityBuy" + CurrentBars[0].ToString(), true, 0, Close[0], Brushes.Lime);

    ^^ in onBarUpdate

    how do I draw an arrow on the other 1 tick chart I have open at the same time as execution?

    #2
    Hello Boonfly8,

    Thank you for your note.

    Using the Draw.ArrowUp syntax which includes the parameter for isGlobal would allow you to do this.

    For example the syntax below you would pass true, for isGlobal.

    Code:
    Draw.ArrowUp(NinjaScriptBase owner, string tag, bool isAutoScale, int barsAgo, double y, bool [B]isGlobal[/B], string templateName)
    See Draw.ArrowUp section of our helpguide,


    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by andrewtrades, Today, 04:57 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    3 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X