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

Display order executions within strategy

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

    Display order executions within strategy

    HI,
    I'm wondering if there is a way to display the order executions from within a strategy? I am calling an ATM strategy and I cannot see any executions on the chart. Below is an excerpt of the code I'm using and a screenshot of what I would like to see.

    Thanks

    // Condition set 1
    if (orderId.Length == 0 && atmStrategyId.Length == 0

    {
    atmStrategyId = GetAtmStrategyUniqueId();
    orderId = GetAtmStrategyUniqueId();
    AtmStrategyCreate(Cbi.OrderAction.Buy, OrderType.Market, 0, 0, TimeInForce.Day, orderId, "StrategyAtm", atmStrategyId);

    }
    Attached Files

    #2
    Hello mlarocco,

    Thank you for your post.

    To see the ATM Strategy on your Charts from the NinjaScript Strategy you must open a Chart Trader (cannot be on the Chart the NinjaScript Strategy is running on) for the same account and instrument. Then you will see the orders from your NinjaScript Strategy on the Chart with the Chart Trader enabled.

    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks, that's actually what I've been doing. I was hoping there was a way to see the trades on the same chart, but it sounds like there isn't.

      Comment


        #4
        Hello mlarocco,

        Thank you for your response.

        You are correct, as you cannot use the Chart Trader on the same chart a strategy is applied to.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by haas88, 03-21-2024, 02:22 AM
        19 responses
        220 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by ZeroKuhl, Yesterday, 04:31 PM
        4 responses
        30 views
        0 likes
        Last Post ZeroKuhl  
        Started by cupir2, Yesterday, 07:44 PM
        3 responses
        21 views
        0 likes
        Last Post NinjaTrader_Gaby  
        Started by reynoldsn, Yesterday, 07:26 PM
        2 responses
        16 views
        0 likes
        Last Post reynoldsn  
        Started by MartinT, 05-17-2023, 06:00 AM
        18 responses
        175 views
        0 likes
        Last Post flybuzz
        by flybuzz
         
        Working...
        X