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 funk10101, Today, 09:43 PM
    0 responses
    3 views
    0 likes
    Last Post funk10101  
    Started by pkefal, 04-11-2024, 07:39 AM
    11 responses
    36 views
    0 likes
    Last Post jeronymite  
    Started by bill2023, Yesterday, 08:51 AM
    8 responses
    44 views
    0 likes
    Last Post bill2023  
    Started by yertle, Today, 08:38 AM
    6 responses
    26 views
    0 likes
    Last Post ryjoga
    by ryjoga
     
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    24 views
    0 likes
    Last Post algospoke  
    Working...
    X