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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        59 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        143 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        161 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        97 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        276 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X