Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Global drawings from a strategy

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

    Global drawings from a strategy

    I am using a strategy that searches for a trade setup and then makes the trade within a certain number of candles. When the strategy finds a suitable setup it draws a dot on the chart which is running the strategy, but that is not chart I use to primarily trade. In order to use chart trader with my strategy I use a different chart that is linked to the strategy chart.

    I am trying to enable the global draw setting on that dot and attach it to the instrument so that it will appear on the chart that I am trading off. I've enabled "Show global draw objects" on both charts and the dot is drawing correctly of the strategy chart, but it won't appear on my trading chart. I've read on one forum post that global objects will have an ID that starts with a '@' but that doesn't seem to work either.

    Here is the code I'm using to define the dot:
    DrawDot("@Long dot" + CurrentBar, true, 0, Low[0] + -2 * TickSize, Color.LimeGreen);

    I've done my best to search for an answer for this basic question but I cannot seem to find one. I've found instructions for NT8 but I am still on NT7.

    Thank-you for your help,
    Darcey

    #2
    Hello adaisguy,

    Thank you for your note and welcome to the NinjaTrader Support Forum!

    There is no means to set the drawing objects as global through NinjaScript in NinjaTrader 7.

    Please let me know if you have any questions.

    Comment


      #3
      Thank you for your quick reply. This feature is available on NT8?

      I'm slowly trying to migrate my scripts to NT8 to be ready for the final release.

      Comment


        #4
        Hello adaisguy,

        This cannot be set in NinjaTrader 8 either.

        Comment


          #5
          Ok, thanks. I'll use Plan B and create a separate indicator to draw it on my other charts.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by AaronKoRn, Today, 09:49 PM
          0 responses
          1 view
          0 likes
          Last Post AaronKoRn  
          Started by carnitron, Today, 08:42 PM
          0 responses
          6 views
          0 likes
          Last Post carnitron  
          Started by strategist007, Today, 07:51 PM
          0 responses
          8 views
          0 likes
          Last Post strategist007  
          Started by StockTrader88, 03-06-2021, 08:58 AM
          44 responses
          3,975 views
          3 likes
          Last Post jhudas88  
          Started by rbeckmann05, Today, 06:48 PM
          0 responses
          9 views
          0 likes
          Last Post rbeckmann05  
          Working...
          X