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

trailing stop values

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

    trailing stop values

    I would like to pickup the value as a trailing stop changes

    Is this possible?

    Only using this for status and value when hit at this point..........


    string[,] orders = GetAtmStrategyStopTargetOrderStatus("TARGET1", "idValue");

    // Check length to ensure that returned array holds order information
    if (orders.Length > 0)
    {
    for (int i = 0; i < orders.GetLength(0) - 1; i++)
    {
    Print("Average fill price is " + orders[i, 0].ToString());
    Print("Filled amount is " + orders[i, 1].ToString());
    Print("Current state is " + orders[i, 2].ToString());
    }
    }

    #2
    Can you not use it to see its previous value and store it in a variable. If the recent call to it is different than your variable then you know something changed?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      sorry Josh...don't understand your idea

      the code I posted does not pickup a value unless the trailing stop is hit and filled...

      I need the value while it is trailing and before it is hit so I can plot it on the chart in a strategy.

      I want to see the trailing stop on the chart as if I was running Charttrader on an indicator

      thanks

      Comment


        #4
        I see what you mean. Unfortunately I do not know if this is possible at the moment. Thank you for the suggestion.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Yes. I wish it was. Problem I am having is that I am so used to seeing the stops trail in Charttrader that I would like to have the same in a strategy...need the trailing stop values for that.

          Comment


            #6
            Right. I have forwarded the suggestion to development to see what they can do about this situation.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              working now??? by error???

              ok...here is a good one.

              I am running a cs strategy that places order via an ATM strategy

              for market orders placed, nothing plots on my normal chart...i.e. relative to the trailing stop.

              however, for both stoplimit and limit orders, my normal chart (without my cs running but with charttrader running) shows both orders working as if placed manually in charttrader

              now this is something I want to happen as i can then mover the orders around or cancel them.

              question: is this by mistake?...or is this normal???....

              it seems like it might be intermittent at this point...of course i would like to force it to happen at all times...also including the trailing stops for limit, stoplimit and market orders

              Comment


                #8
                This is expected since you can not run Chart Trader at the same time as running a strategy. You can open a second instance of the identical chart or run the strategy from the Strategy tab in the Control Center window.
                RayNinjaTrader Customer Service

                Comment


                  #9
                  success

                  thanks Ray

                  yes...i have tested this now and it runs perfectly....excellent feature

                  i can manage the strategy-chart-placed trades from an indicator-charttrader chart....i.e. rather than managing from the orders or strategies tabs...which is really confusing since I am running 9 strategy charts all placing orders...impossible...however, from charttrader, easy

                  absolutely perfect

                  thanks a lot for this one....best feature combo yet for me

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by ZenCortexAuCost, Today, 04:24 AM
                  0 responses
                  5 views
                  0 likes
                  Last Post ZenCortexAuCost  
                  Started by ZenCortexAuCost, Today, 04:22 AM
                  0 responses
                  2 views
                  0 likes
                  Last Post ZenCortexAuCost  
                  Started by SantoshXX, Today, 03:09 AM
                  0 responses
                  15 views
                  0 likes
                  Last Post SantoshXX  
                  Started by DanielTynera, Today, 01:14 AM
                  0 responses
                  3 views
                  0 likes
                  Last Post DanielTynera  
                  Started by yertle, 04-18-2024, 08:38 AM
                  9 responses
                  42 views
                  0 likes
                  Last Post yertle
                  by yertle
                   
                  Working...
                  X