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 algospoke, 04-17-2024, 06:40 PM
      6 responses
      49 views
      0 likes
      Last Post algospoke  
      Started by arvidvanstaey, Today, 02:19 PM
      4 responses
      11 views
      0 likes
      Last Post arvidvanstaey  
      Started by samish18, 04-17-2024, 08:57 AM
      16 responses
      61 views
      0 likes
      Last Post samish18  
      Started by jordanq2, Today, 03:10 PM
      2 responses
      10 views
      0 likes
      Last Post jordanq2  
      Started by traderqz, Today, 12:06 AM
      10 responses
      21 views
      0 likes
      Last Post traderqz  
      Working...
      X