Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How can I plot entry stopLost/target line using atm strategy?

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

    How can I plot entry stopLost/target line using atm strategy?

    Hi,

    When we develop the strategy using atm entry orders, how to show entry line, stop lost/target line like the chart trader?

    Many thanks,
    T

    #2
    Hello Thomson,

    Thank you for your post.

    You would need to create your own logic to track your orders and prices to then translate that to DrawLines().

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your quickly respond. I prefer my strategy can move my orders like chart trader. Is there have any way to call the function from ninjatrader? By the way, if I open another windows with chart trader, my strategy entry orders can show on the chart. How can I show this in my strategy windows?

      Many thanks,
      T

      Comment


        #4
        Thomson,

        Thank you for your note.

        Again, this is Chart Trader function and not designed to run with an Automated Strategy. You can call the Chart Trader function but this is unsupported programming and as such I do not have any documentation on it.

        However I do have another thread where a user was able to do this -
        http://www.ninjatrader.com/support/f...ad.php?t=65477

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Thanks Cal. One more question. I know if my strategy use atm entry orders, the OnExcution() is not working on atm strategy. So if my atm order filled, I want to trigger a function. How can I do?

          Best regards,
          T

          Comment


            #6
            Yes, you would need to use GetAtmStrategyEntryOrderStatus()
            http://www.ninjatrader.com/support/h...rderstatus.htm

            This will allow you to check when the entry order is filled and then to call your custom function/method
            Cal H.NinjaTrader Customer Service

            Comment


              #7
              Thanks Cal. Sorry for confused you.

              I know GetAtmStrategyEntryOrderStatus() function. I just want to know what is the best time to call this function. I mean if ATM orders filled, what is the function will be triggered like OnExecution().

              Thanks,
              T

              Comment


                #8
                Hello Thomson,

                You OnExecution and OnOrderUpdate will not get called with ATM strategies.

                However, you can use OnPositionUpdate to use the GetAtmStrategyEntryOrderStatus(). This will get called after your order has been filled of course.

                You can use OnMarketData as a more frequent call for your GetAtm method, if you are looking for the other order states.
                http://www.ninjatrader.com/support/h...marketdata.htm
                http://www.ninjatrader.com/support/h...tionupdate.htm
                Cal H.NinjaTrader Customer Service

                Comment


                  #9
                  Hi Cal,

                  I did some test code, OnPositionUpdate only be triggered once when I run multiple long orders by ATM strategy. However, I want to find a method be triggered after each order status be changed. Eg, ATM orders be filled, stoplost be filled and target be filled. Something like OnExecution.

                  Please advise,
                  T
                  Last edited by thomson; 04-25-2014, 09:15 PM.

                  Comment


                    #10
                    Originally posted by NinjaTrader_Cal View Post
                    Thomson,

                    Thank you for your note.

                    Again, this is Chart Trader function and not designed to run with an Automated Strategy. You can call the Chart Trader function but this is unsupported programming and as such I do not have any documentation on it.

                    However I do have another thread where a user was able to do this -
                    http://www.ninjatrader.com/support/f...ad.php?t=65477

                    Let me know if I can be of further assistance.

                    There is a bug in NT with regards to this.

                    In Market Replay it is easy to see with Chart Trader enabled.

                    Your profit target will be drawn on the chart with your entry. But your stoploss is missing. If you reload the chart, the stoploss is shown with the other two.

                    So either nothing is supposed to show, or the stoploss is supposed to show.

                    Comment


                      #11
                      You are right sledge. I just begin to test my strategy using ATM. I meet several times mistake when I place orders by ATM Strategy.
                      Regards,
                      T

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by The_Sec, Yesterday, 03:53 PM
                      1 response
                      12 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by mmenigma, Yesterday, 03:25 PM
                      1 response
                      11 views
                      0 likes
                      Last Post NinjaTrader_Gaby  
                      Started by kujista, Today, 05:44 AM
                      0 responses
                      7 views
                      0 likes
                      Last Post kujista
                      by kujista
                       
                      Started by ZenCortexCLICK, Today, 04:58 AM
                      0 responses
                      9 views
                      0 likes
                      Last Post ZenCortexCLICK  
                      Started by sidlercom80, 10-28-2023, 08:49 AM
                      172 responses
                      2,282 views
                      0 likes
                      Last Post sidlercom80  
                      Working...
                      X