• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.
                      https://ninjatrader.com/support/foru...182#post783182
                      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?
                          https://ninjatrader.com/support/foru...121#post791121

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

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by aviat72, 04-26-2020, 09:41 PM
                          10 responses
                          89 views
                          0 likes
                          Last Post kissandfly  
                          Started by healthooa, Today, 01:28 AM
                          0 responses
                          7 views
                          0 likes
                          Last Post healthooa  
                          Started by superkolleech, Today, 12:46 AM
                          0 responses
                          8 views
                          0 likes
                          Last Post superkolleech  
                          Started by harjinderjit, Yesterday, 08:24 PM
                          0 responses
                          20 views
                          0 likes
                          Last Post harjinderjit  
                          Started by Againmain1, Yesterday, 03:04 AM
                          1 response
                          26 views
                          1 like
                          Last Post NinjaTrader_ShawnB  
                          Working...
                          X