• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

track price set by attach to indicator

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

    track price set by attach to indicator

    I use the attach to indicator entry method often using MIT orders. sometimes, I notice that the order is not filled as the spread is bit high. is there a way, I can alert myself when my order price is just between the bid and ask so I can just make it into a market order?

    #2
    Hello junkone,

    Thank you for your note.

    Use an Order object to hold the order and then check it's level against the needed prices. If it meets the criteria then submit it as a different order.

    For example:
    Code:
    			MyOrder = EnterLongMIT(Close[0] - (2 * TickSize));
    			
    			if (MyOrder.StopPrice < GetCurrentAsk()
    				&& MyOrder.StopPrice > GetCurrentBid())
    			{
    				MyOrder = EnterLong();
    			}
    For information on Order objects please visit the following link: http://ninjatrader.com/support/helpG...n-us/order.htm
    Patrick H.NinjaTrader Customer Service

    Comment


      #3
      my issue is that I use charttrader to enter orders and manage the exit using OCO ATM Strategy template. at the moment, I don't see a way I can monitor orders entered using the chart trader . do you folks see a work around here?

      Comment


        #4
        Hello junone,

        You could check the order on the SuperDOM using a custom column and OnOrderUpdate(): http://ninjatrader.com/support/helpG...rderupdate.htm
        Patrick H.NinjaTrader Customer Service

        Comment


          #5
          this is cool. is there a sample class file that i can use to understand the behaviour?

          Comment


            #6
            Nothing in regards to orders, but you can find the APQ, Notes, ProfitLoss, and Volume SuperDOMColumns under the NinjaScript Editor.
            Patrick H.NinjaTrader Customer Service

            Comment


              #7
              can you clarify what these columns are supposed to do? there is no notes or comments on Notes, ProfitLoss,or Volume

              Comment


                #8
                Hello junkone,

                Thank you for your response.

                You can find descriptions at the following link under "Understanding the default system columns": http://ninjatrader.com/support/helpG...om_columns.htm
                Patrick H.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by rtwave, Today, 04:40 AM
                0 responses
                2 views
                0 likes
                Last Post rtwave
                by rtwave
                 
                Started by pollard89143, Today, 04:21 AM
                0 responses
                4 views
                0 likes
                Last Post pollard89143  
                Started by Lisa Marshall, 01-25-2020, 04:17 PM
                1 response
                16 views
                0 likes
                Last Post NinjaTrader_ChrisSch  
                Started by HiddenPhilosopher, Yesterday, 11:24 PM
                0 responses
                3 views
                0 likes
                Last Post HiddenPhilosopher  
                Started by akuntysh, 01-25-2020, 08:42 AM
                2 responses
                12 views
                0 likes
                Last Post akuntysh  
                Working...
                X