Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Set method and several entries

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

    Set method and several entries

    Hello

    I have created an strategy using your code sample. I have also included short entries. It works as expected.

    The problem is that when I run the strategy there is only one entry per direction at the same time although I select 5. This problem does not exists when setting stops and profits in State.Dataloaded section.

    What would be the correct approach to solve this? I have benn looking for any example in the forum and I have not found it.

    Thanks a lot

    #2
    Hello Impeesa,

    Thank you for your reply.

    Have you tried turning on the TraceOrders function to see if orders are being ignored? If not you can turn that on in State.SetDefaults

    if (State == State.SetDefaults)
    {
    TraceOrders = true;
    }

    Once you then recompile the strategy, you can open a new NinjaScript Output window under New > NinjaScript Output. This will print a log of any orders submitted by the strategy during while it's running, along with any ignored orders. You can then look through and see what may be occurring.

    Here is a link to our help guide that goes into more detail on tracing orders:
    https://ninjatrader.com/support/help...aceorders2.htm

    What if any messages do you get regarding the orders?

    Thanks in advance; I look forward to assisting you further.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by AnibadBrown, Today, 11:32 PM
    0 responses
    3 views
    0 likes
    Last Post AnibadBrown  
    Started by nbowursw, Today, 11:12 PM
    0 responses
    3 views
    0 likes
    Last Post nbowursw  
    Started by david196, Today, 09:09 PM
    0 responses
    10 views
    0 likes
    Last Post david196  
    Started by kkc2015, Today, 08:50 PM
    0 responses
    5 views
    0 likes
    Last Post kkc2015
    by kkc2015
     
    Started by fscabrera03, Today, 06:55 PM
    0 responses
    11 views
    0 likes
    Last Post fscabrera03  
    Working...
    X