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

It does not execute in real but it does in the strategy analyzer

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

    It does not execute in real but it does in the strategy analyzer

    in the demo account it does not execute the operations, but it does in the analyzer and even when putting the strategy in demo with the TraceOrders in true the graphs:
    EnterLongStopMarket(Convert.ToInt32(ContratosBuy), PrecioEntrada, @"LARGOS");
    EnterShortStopMarket(Convert.ToInt32(ContratosSell ), PrecioEntrada, @"CORTOS");

    protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string nativeError)
    {
    if (order.Name == "LARGOS" || order.Name == "CORTOS")
    OrdenEntrada = order;
    }​

    #2
    Originally posted by franatas View Post
    in the demo account it does not execute the operations, but it does in the analyzer and even when putting the strategy in demo with the TraceOrders in true the graphs:
    EnterLongStopMarket(Convert.ToInt32(ContratosBuy), PrecioEntrada, @"LARGOS");
    EnterShortStopMarket(Convert.ToInt32(ContratosSell ), PrecioEntrada, @"CORTOS");

    protected override void OnOrderUpdate(Order order, double limitPrice, double stopPrice, int quantity, int filled, double averageFillPrice, OrderState orderState, DateTime time, ErrorCode error, string nativeError)
    {
    if (order.Name == "LARGOS" || order.Name == "CORTOS")
    OrdenEntrada = order;
    }​
    Sorry, ignore this message, I had the wrong configuration. my fault

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by KingCandy, 09-22-2023, 06:31 PM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by HalTech, 09-22-2023, 04:35 PM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by ntbone, Yesterday, 11:29 PM
    0 responses
    2 views
    0 likes
    Last Post ntbone
    by ntbone
     
    Started by cay7man, Yesterday, 11:04 PM
    0 responses
    3 views
    0 likes
    Last Post cay7man
    by cay7man
     
    Started by Akee5, Yesterday, 09:16 PM
    0 responses
    11 views
    0 likes
    Last Post Akee5
    by Akee5
     
    Working...
    X