Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to cancel out e orders

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

    Unable to cancel out e orders

    Finding problem with then strategy request to please give any solution why this is happening and what is the solution

    Thank You

    #2
    Hello siddhugaddi,

    This error typically occurs if a strategy was enabled, then disabled, and then orders is submitted were cancelled or filled while the strategy was disabled, and then the strategy was re-enabled.

    Remove the strategy instance from the chart in the Strategies window > Configured area, then add a new instance from the Available list.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank You sir

      Comment


        #4
        Hello NinjaTrader_ChelseaB thank you sir for your help that worked

        I have one more doubt suppose i have place order using Strategy builder where my Stop loss and Take profit were defined by the strategy why i was unable to move take profit and stop loss after placing the order it was same price all the time untill stoploss or target any one of hit

        Comment


          #5
          Hello siddhugaddi,

          Are you referring to manually changing the price of a working order submitted by a ninjascript strategy?

          If so, this would not be possible with the strategy builder, but would be possible in an unlocked script by using the overload with isLiveUntilCancelled as true and only submitting the order once without modifying it or resubmitting it.

          Below is a link to an example.


          Are you referring to modifying a stop order from the strategy logic?

          Below is a link to an example.

          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            looking for code for how i can apply EMA on cumulative delta indicator

            Comment


              #7
              Hello siddhugaddi,

              You want to use the EMA as the input series for the Cumulative Delta?

              OrderFlowCumulativeDelta(SMA(7), CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0)

              OrderFlowCumulativeDelta(ISeries<double> input, CumulativeDeltaType deltaType, CumulativeDeltaPeriod period, int sizeFilter)
              Chelsea B.NinjaTrader Customer Service

              Comment


                #8
                thank you sir for your replay

                I have attached below screen shot
                i getting delta close value i was looking to get EMA value which source is calculated from Cumulative delta
                Attached Files

                Comment


                  #9
                  Hello siddhugaddi,

                  Are you wanting to use the Order Flow Cumulative Delta as the input series for the EMA?

                  EMA(OrderFlowCumulativeDelta(CumulativeDeltaType.B idAsk, CumulativeDeltaPeriod.Session, 0).DeltaClose, 7)
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    Great this is what i what i was looking for thank you

                    Comment


                      #11
                      private double EMA EMA3;

                      EMA3 = EMA((OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType, CumulativeDeltaPeriod, 0).DeltaClose[0]),5);
                      Print("5 EMA" + EMA3);

                      I'm getting this output:: 5 EMAEMA(Order Flow Cumulative Delta(Session,0).DeltaClose,5)

                      and getting ERROR :: ​Argument 1 : cannot convert from 'double' to 'NinjaTrader.Ninjascript.Iseries<double>


                      any solution for this sir ji
                      Last edited by siddhugaddi; 09-27-2024, 10:51 AM.

                      Comment


                        #12
                        Hello siddhugaddi,

                        Supply the DeltaClose series and not the last bar [0] of the DeltaClose (which is a double).

                        EMA3 = EMA((OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaClose),5);
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          Error was resolved thank you sir

                          but EMA3 is holding any value
                          when i Print("5 EMA" + EMA3);
                          OUTPUT :: EMA(Order Flow Cumulative(Bid ,Session).DeltaClose,5)

                          i'm getting above is my output not any numerical value of EMA
                          any suggestion for this
                          Last edited by siddhugaddi; 09-27-2024, 10:51 AM.

                          Comment


                            #14
                            Hello siddhugaddi,

                            In OnBarUpdate() print out the most recent bars value of the EMA3, not the entire indicator class.

                            Print("5 EMA" + EMA3[0]);
                            Chelsea B.NinjaTrader Customer Service

                            Comment


                              #15
                              got it got it
                              Thank You sir ji

                              Comment

                              Latest Posts

                              Collapse

                              Topics Statistics Last Post
                              Started by argusthome, 03-08-2026, 10:06 AM
                              0 responses
                              110 views
                              0 likes
                              Last Post argusthome  
                              Started by NabilKhattabi, 03-06-2026, 11:18 AM
                              0 responses
                              59 views
                              0 likes
                              Last Post NabilKhattabi  
                              Started by Deep42, 03-06-2026, 12:28 AM
                              0 responses
                              37 views
                              0 likes
                              Last Post Deep42
                              by Deep42
                               
                              Started by TheRealMorford, 03-05-2026, 06:15 PM
                              0 responses
                              41 views
                              0 likes
                              Last Post TheRealMorford  
                              Started by Mindset, 02-28-2026, 06:16 AM
                              0 responses
                              78 views
                              0 likes
                              Last Post Mindset
                              by Mindset
                               
                              Working...
                              X