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

Cannot see the See the STOP LOSS POINTER

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

    Cannot see the See the STOP LOSS POINTER

    I use NT8. in my program, i set the max stop loss:
    else if (State == State.Configure)
    {


    SetStopLoss(CalculationMode.Currency, equityDeal.MAXLOSS);
    }

    However, chart doesnt show any STOP_LOSS pointer. Is there any properties, i need to set , to be able to see the stop loss pointer.
    i have uploaded the screen attachment
    Pls advise.
    Attached Files

    #2
    Hello prabbala,

    When set in State.Configure, this will be set once and will continue using that price moving forward and will not be set again.

    What is the value of equityDeal.MAXLOSS in State.Configure?

    Do you see error messages appearing in the NinjaScript Output window when running the script?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      It was set to $500. Today was the first day, it placed order. I was testing before, i stopped 5-6 days back and i started with real money this morning. Luckily instrument didnt fall

      Comment


        #4
        I loaded the strategy for Gold Last night around 8pm, i didnt see any error until now.

        Comment


          #5
          Also, until the problem is fixed, how do i go in and manually set the stop loss to what it should be until GTC? Pls advise

          Comment


            #6
            Hello prabbala,

            Can you show with prints that equityDeal.MAXLOSS is set to 500.0 in State.Configure?

            Are you setting this to 500 in the variable declaration?

            What is the current Close[0] price in OnBarUpdate when the order is submitted?

            Is the entry order a buy order or a sell order?

            The stop loss must have a valid price to be submitted and then you can move the order manually.
            Last edited by NinjaTrader_ChelseaB; 05-09-2019, 12:23 PM.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              I set these values in Constructor equityDeal.MAXLOSS=500;
              close[0].price was $1882.6. Entry order was buy and bought it very correctly. it was approx 830am. It is a valid price, which i set on contructor.

              Comment


                #8
                i only checked the log in one of tabs in Control .
                are there any files i can check in ../NT8/document folder?

                Comment


                  #9
                  Hello prabbala,

                  If the current price is $1882.6, an order placed to a live data feed might be rejected due to the order price being to far from the market price (1382.6).
                  If an order is rejected, this will appear on the Log tab of the Control Center.
                  I would not expect this to occur with the Sim101 account.

                  Attached is an test script where I am testing placing an order at a price of 500.

                  I have tested this and I am not able to reproduce this behavior.

                  If you test this script on your end using the Sim101 account, are seeing the stop loss does not appear when the entry is placed on your end as well?
                  Attached Files
                  Chelsea B.NinjaTrader Customer Service

                  Comment


                    #10
                    i figured out the problem. This morning i saw all stop order correctly placed. However, i lost connection and reconnected NT8 , when system announced that connection lost/established and announced that all orders are canceled. When connection is lost and comes back, how do i retain all stop loss orders.

                    Comment


                      #11
                      Hello prabbala

                      Please see the forum post below about resuming strategies.
                      Chelsea B.NinjaTrader Customer Service

                      Comment


                        #12
                        BTW, today, i figured out how these stop losses have disappeared. Basically, i informed you that stop loss points suddently disappeared after weekend. The same thing happened today as well. I went and checked controller- orders- working order. I found the stop loss working order. I restarted that chart, it appeared again. May be its front end glitch. It happens.

                        Comment


                          #13
                          Hello prabbala,

                          A strategy will recalculate historical data when enabled.

                          Have you used the steps from the post about resuming strategies in my previous post to set the start behavior to immediately submit?
                          Has intra-bar granularity been added to the script?

                          Are you certain the script has calculated the stop loss to be working when enabled using prints and trace orders?


                          Likely the script is what is causing the behavior.
                          Chelsea B.NinjaTrader Customer Service

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by bill2023, Yesterday, 08:51 AM
                          8 responses
                          43 views
                          0 likes
                          Last Post bill2023  
                          Started by yertle, Today, 08:38 AM
                          6 responses
                          25 views
                          0 likes
                          Last Post ryjoga
                          by ryjoga
                           
                          Started by algospoke, Yesterday, 06:40 PM
                          2 responses
                          24 views
                          0 likes
                          Last Post algospoke  
                          Started by ghoul, Today, 06:02 PM
                          3 responses
                          16 views
                          0 likes
                          Last Post NinjaTrader_Manfred  
                          Started by jeronymite, 04-12-2024, 04:26 PM
                          3 responses
                          46 views
                          0 likes
                          Last Post jeronymite  
                          Working...
                          X