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 ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    44 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Started by DanielSanMartin, Yesterday, 02:37 PM
    2 responses
    13 views
    0 likes
    Last Post DanielSanMartin  
    Working...
    X