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 lorem, Yesterday, 09:18 AM
    4 responses
    13 views
    0 likes
    Last Post lorem
    by lorem
     
    Started by Spiderbird, Today, 12:15 PM
    0 responses
    5 views
    0 likes
    Last Post Spiderbird  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    12 responses
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by FrazMann, Today, 11:21 AM
    0 responses
    6 views
    0 likes
    Last Post FrazMann  
    Started by geddyisodin, Yesterday, 05:20 AM
    8 responses
    52 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X