Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Finding important information

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

    Finding important information

    I want to know all the important parameters relating to EnterLong(0. By this I mean I need to know what happens if I call EnterLong() several times after I initally enter a postion and that position is still open? I need to understand all the default behaviour. (Hopefully by default EnterLong() will not submit a new long order every time it is called if I have an existing long position. But I cannot find where this info is located in the documentation.

    All of this info needs to be in one place, not scattered....

    What is the default behaviour for EnterLong() when it is called multiple times( a very real possibility) when I have an existing long position?

    PS: I just found part of what I am looking for. The following code would cause EnterLong() to ignore all subsequent call if there was 1 long position existing.

    // Example #1
    // Will allow a maximum of two entries while a position is open
    protected override void Initialize()
    {
    EntriesPerDirection = 1;
    EntryHandling = EntryHandling.AllEntries;
    }

    But what are the default values for these properties? Where can I go to find the default values for ALL ninja properties. I mean ALL Trade related properties.
    Last edited by bob100; 01-22-2011, 10:01 PM.

    #2
    Bob, if you have Entries Per Direction set to 1, there will only be one entry no matter how many times you call EnterLong()

    The default values are set when you start the strategy.
    Attached Files
    AustinNinjaTrader Customer Service

    Comment


      #3
      Excellent! Thanks alot.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      108 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      55 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      37 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      39 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      76 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X