Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Print StopLoss value

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

    Print StopLoss value

    All,

    I'm sure this is an easy one that is eluding me.

    For debugging purposes, how do you go about printing the value of the current StopLoss?
    Print("StopLoss " + StopLoss.ToString());

    To follow up that, how do you go about printing the value of the current StopLoss where the fromEntrySignal = "Long"?
    Print("StopLoss " + StopLoss("Long").ToString());

    As always any assistance would be appreciated
    Shannon

    #2
    Hello,

    I suggest using IOrder:


    Then print the stop price.
    DenNinjaTrader Customer Service

    Comment


      #3
      Ben,

      Thanks for the quick response, though this is truly making my head spin.

      With the simple addition of this IOrder stuff. My multi-time frame strategy is completely knocked out of shape. The output from the Added Bars Object is unrecognisable.

      Nothing else was changed, just the switch from the basic order implementation to the IOrder implementation.

      Any ideas?
      Shannon

      Originally posted by NinjaTrader_Ben View Post
      Hello,

      I suggest using IOrder:


      Then print the stop price.

      Comment


        #4
        Hello,

        I just re-read your initial post. You are debugging. In this case, I suggest using TraceOrders which is best to use:


        If you have further questions, please post some of your code so we can assist you better.
        DenNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        558 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        324 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        545 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        547 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X