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 cmoran13, Yesterday, 01:02 PM
        0 responses
        29 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        21 views
        0 likes
        Last Post PaulMohn  
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        160 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        95 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        148 views
        2 likes
        Last Post CaptainJack  
        Working...
        X