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

EnterLongLimit

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

    EnterLongLimit

    Hi,

    i have question..
    when i am already in long position it is possible to enter to next long position?
    So to be in position with 2 contracts but to enter into these two position in different time.

    For example:
    i have signal for entering to long, so i will enter to long.
    I used EnterLongLimit(1, price);
    Few minutes later i will recive next signal to enter to long position, so i will use
    EnterLongLimit(1, price);
    And 10 minutes later i will recive to enter to short position, so i will use
    {
    ExitLong();
    EnterShortLimit(1, priceTwo);
    }


    Am i really in two long positions. Had i really two contracts for long?
    Or the secong enter long was just ignored?

    Thank you

    #2
    Originally posted by zooinek View Post
    Hi,

    i have question..
    when i am already in long position it is possible to enter to next long position?
    So to be in position with 2 contracts but to enter into these two position in different time.

    For example:
    i have signal for entering to long, so i will enter to long.
    I used EnterLongLimit(1, price);
    Few minutes later i will recive next signal to enter to long position, so i will use
    EnterLongLimit(1, price);
    And 10 minutes later i will recive to enter to short position, so i will use
    {
    ExitLong();
    EnterShortLimit(1, priceTwo);
    }


    Am i really in two long positions. Had i really two contracts for long?
    Or the secong enter long was just ignored?

    Thank you
    It depends on your EntriesPerDirection setting.
    If it is set to 1 then second entry will be ignored

    Comment


      #3
      and where could i modify the entries per direction setting?

      Comment


        #4
        It can be either set in the strategy Initialize() - http://www.ninjatrader-support.com/H...Direction.html

        or when you start up your strategy (look under OrderHandling) -

        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by itrader46, Today, 10:22 AM
        0 responses
        6 views
        0 likes
        Last Post itrader46  
        Started by NM_eFe, Today, 10:13 AM
        0 responses
        2 views
        0 likes
        Last Post NM_eFe
        by NM_eFe
         
        Started by hdge4u, Yesterday, 12:23 PM
        1 response
        10 views
        0 likes
        Last Post hdge4u
        by hdge4u
         
        Started by 1001111, Today, 09:45 AM
        0 responses
        10 views
        0 likes
        Last Post 1001111
        by 1001111
         
        Started by DTSSTS, 01-28-2024, 12:07 PM
        11 responses
        558 views
        0 likes
        Last Post bmo111
        by bmo111
         
        Working...
        X