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

Position size for individual signals

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

    Position size for individual signals

    Is it possible to check position size for individual signals?

    Say I want to go long 3 contracts
    EnterLong(Default Quantity, "Long A")
    EnterLong(Default Quantity, "Long B")
    EnterLong(Default Quantity, "Long C")

    and I set profit targets of say 1 tick, 2 and 3 respectively...

    assume that A gets filled and B and C are open, is it possible to go Long another A contract?

    same thing... A and B get filled, then I want to go long another A and B

    possible? if so, how?

    #2
    Hi BigDog008, I think this is possible working with the EntriesPerDirection setting, given your entry condition is still true it would then enter another trade until your EntriesPerDirection setting is reached - http://www.ninjatrader-support.com/H...Direction.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Bertrand,

      I don't see how this would allow the strategy to check if

      Contract B is Long
      Contract C is Long
      and Contract A is Flat

      then initiate a Long position in Contract A

      essentially is it possible to treat the individual contracts A, B, C as individual entities?

      Comment


        #4
        BigDog008,

        To get that kind of information would require you to use IOrders. Then you can check the IOrder for the individual fill amounts of each of your orders.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Josh,

          I'm a bit confused... are you saying that by using IOrder, I can create and reference various order positions? say A, B, C and go long or short accordingly?

          Comment


            #6
            Sorry for the confusion BigDog008 - yes with IOrders you can directly check the fill states and quantities of the associated orders - http://www.ninjatrader-support.com/H...V6/IOrder.html

            Here's also a reference sample on this - http://www.ninjatrader-support2.com/...ead.php?t=7499
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Misplace, Today, 11:55 AM
            1 response
            12 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by amousaber, Yesterday, 09:30 AM
            1 response
            25 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by PopovDS, Yesterday, 11:17 AM
            1 response
            15 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by Mr Bread, Yesterday, 12:01 PM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by suraj, Yesterday, 08:51 AM
            1 response
            14 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Working...
            X