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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      105 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      147 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      71 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      125 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      79 views
      0 likes
      Last Post PaulMohn  
      Working...
      X