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 fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,406 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    98 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X