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 habeebft, Today, 07:27 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChristopherS  
          Started by AveryFlynn, Today, 04:57 AM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by Max238, Today, 01:28 AM
          4 responses
          38 views
          0 likes
          Last Post Max238
          by Max238
           
          Started by r68cervera, Today, 05:29 AM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by geddyisodin, Today, 05:20 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X