• 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

Unmanaged approach methods

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

    Unmanaged approach methods

    Hi Ninjas,

    I'm trying to solve a big limitation in NT that is reversing positions with limit orders, when this position have always its StopLoss or ProfitTarget orders tied to. This situation doesn't occur with Market Orders.

    With that being said, it seems that I'll have to learn the unmanaged approach method to get this simple procedure. For this I've been reading some material in NT help guide, in this forum and watching several examples to accelerate the rate of learning, however I see this is not an easy task cause, either there are a lot of configurations and parallel methods or there's info missing in basic things, such as:

    What does this comparison mean?
    if ( entryOrder == order )
    My logic tells me that this something like: if entryOrder is actually an active order , BUT this is not explained ever. So my question:

    Where can I see material or a guide that could help me to learn this advanced programming?

    Thanks

    P.S: NT should consider highly to implement or facilitate methods that allows to reverse positions even if there's protective orders working

    #2
    Hi Pstrusi,

    Thank you for posting.

    The entryOrder == order is check if Object A is equal to the IOrder Object that is being handled.
    It is essentially a filter for checking which IOrder Object is being handled.

    Additionally, an intermediary step instead of jumping to Unmanaged would be to use exit orders for the Stop loss and Profit targets that way you can use CancelOrder() to cancel those orders and go in the opposite direction.

    http://www.ninjatrader.com/support/h...tml?iorder.htm
    http://www.ninjatrader.com/support/h...rderupdate.htm

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

    Comment


      #3
      I appreciate highly your suggestion Cal cause learning this advanced programming without any tutor is pretty complicated.

      I decided not to reinvent the wheel and check all the guide and samples with the managed approach, the I tried to build logically for modules and I think I got it right. So far I can see that it's perfectly achievable what I want: Reverse positions with limit orders which must have always its StopLoss orders.

      If any further help I'll let u know
      Last edited by pstrusi; 12-05-2013, 06:00 PM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bankavaselina, Today, 01:24 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_Jim  
      Started by n8dogg59, Today, 12:47 PM
      2 responses
      6 views
      0 likes
      Last Post n8dogg59  
      Started by andrewtrades, Today, 09:16 AM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_ChristopherD  
      Started by Miromeka, Today, 08:13 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by aligator, Today, 10:48 AM
      1 response
      7 views
      0 likes
      Last Post NinjaTrader_Kate  
      Working...
      X