Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Chart Trader Markers for strategy

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

    Chart Trader Markers for strategy

    Hi,

    Is it possible to show strategy orders like Chart Trader does?

    I can see my strategy's orders in another chart window, where Chart Trader is enabled, however, these orders are not visible on the original chart, where the strategy is attached.

    Is there any way to workaround that?

    Thank you!

    #2
    Originally posted by alex.nt View Post
    Hi,

    Is it possible to show strategy orders like Chart Trader does?

    I can see my strategy's orders in another chart window, where Chart Trader is enabled, however, these orders are not visible on the original chart, where the strategy is attached.

    Is there any way to workaround that?

    Thank you!
    The method that you are using with another chart to see the order generated, is pretty much the way to go about it, as Strategies are explicitly disabled if Chart Trader is enabled on the chart.

    Comment


      #3
      Hello alex.nt,

      Thanks for your note.

      So while you cannot enable Chart Trader on a chart that is running a strategy, you could always run the strategy in the Strategies tab not attached to a chart. Then if you have a chart running Chart Trader with the same instrument you will see the orders. This is pretty much what you have already mentioned.

      There isn't anything that would show these orders the way Chart Trader does and allow you to pick them up and move them. You could, if desired, add code to this strategy that places lines at the levels of your orders.

      For example:

      private override void OnOrderUpdate(IOrder order)
      {
      if (order.OrderState == OrderState.Filled)
      DrawHorizontalLine("myOrderLine", true, order.AvgFillPrice, Color.Green, DashStyle.Solid, 1);
      }

      This would place a green line at the fill price of your order when the order fills.


      Please let me know if this does not resolve your inquiry.
      Chelsea B.NinjaTrader Customer Service

      Comment


        #4
        OK, thank you, just suddenly realized that I might be duplicating the existent functionality

        Comment


          #5
          Thank you, Chelsea

          I am actually using some custom rendering + custom controls to mimic chart trader functionality. However, it is a very challenging task to get right hence my question to make sure I am not re-inventing a wheel.

          Comment


            #6
            Hello alex.nt,


            There are existing scripts that have similar functionality.

            One is made by Indicator Warehouse called Trade Manager.
            http://www.indicatorwarehouse.com/tr...=trade-manager


            Let me know if I can still be of assistance for you.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Looks great but I do not understand why would anyone buy something that is pretty much provided by Chart Trader though...

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Segwin, 05-07-2018, 02:15 PM
              14 responses
              1,789 views
              0 likes
              Last Post aligator  
              Started by Jimmyk, 01-26-2018, 05:19 AM
              6 responses
              837 views
              0 likes
              Last Post emuns
              by emuns
               
              Started by jxs_xrj, 01-12-2020, 09:49 AM
              6 responses
              3,293 views
              1 like
              Last Post jgualdronc  
              Started by Touch-Ups, Today, 10:36 AM
              0 responses
              13 views
              0 likes
              Last Post Touch-Ups  
              Started by geddyisodin, 04-25-2024, 05:20 AM
              11 responses
              63 views
              0 likes
              Last Post halgo_boulder  
              Working...
              X