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

EntiresPerDirection being ignored?

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

    EntiresPerDirection being ignored?

    EntriesPerDirection is defined but is apparently being ignored. I am probably missing something but i don't know what

    protected override void Initialize()
    {

    EntriesPerDirection = 4;
    EntryHandling = EntryHandling.UniqueEntries;
    CalculateOnBarClose = false;
    TraceOrders = true;

    }

    protected override void OnBarUpdate()
    {

    if (Low[0] == xyz)
    {
    EnterLong((int)Psize, "a1"); /*Psize defined and calculated earlier*/
    EnterLong((int)Psize, "a2");
    EnterLong((int)Psize, "a3");
    }
    }
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a1' FromEntrySignal=''
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a2' FromEntrySignal=''
    4/9/2009 11:58:01 AM Ignored PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a2' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'
    4/9/2009 11:58:01 AM Entered internal PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a3' FromEntrySignal=''
    4/9/2009 11:58:01 AM Ignored PlaceOrder() method at 4/9/2009 11:58:01 AM: Action=Buy OrderType=Market Quantity=62 LimitPrice=0 StopPrice=0 SignalName='a3' FromEntrySignal='' Reason='Exceeded entry signals limit based on EntryHandling and EntriesPerDirection properties'


    http://www.ninjatrader-support2.com/...ead.php?t=3751 is easy to follow and as far as i know i have everything from there in here etc.

    edit: i cranked EntriesPerDirection = 4; to EntriesPerDirection = 4000; and recompiled and got the same error.
    Last edited by tortexal; 04-10-2009, 05:27 PM.

    #2
    Just because you recompiled your code still means you need to reload the strategy. Please ensure you restarted your strategy after making changes.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ha thought i did that, looks like i in fact wasnt removing -> apply -> reload thanks a bunch works perfect, Happy Easter

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GLFX005, Today, 03:23 AM
      0 responses
      1 view
      0 likes
      Last Post GLFX005
      by GLFX005
       
      Started by XXtrader, Yesterday, 11:30 PM
      2 responses
      11 views
      0 likes
      Last Post XXtrader  
      Started by Waxavi, Today, 02:10 AM
      0 responses
      6 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Started by TradeForge, Today, 02:09 AM
      0 responses
      12 views
      0 likes
      Last Post TradeForge  
      Started by Waxavi, Today, 02:00 AM
      0 responses
      2 views
      0 likes
      Last Post Waxavi
      by Waxavi
       
      Working...
      X