Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

how to check the colors of this indicator

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

    #16
    Bill,

    There is a reference sample available on our forum on how to submit protective orders without using Set()
    http://www.ninjatrader.com/support/f...ead.php?t=7499

    We do not provide custom coding for NinjaScript items so you will need to work this out on your end.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #17
      Originally posted by NinjaTrader_Cal View Post
      Bill,

      There is a reference sample available on our forum on how to submit protective orders without using Set()
      http://www.ninjatrader.com/support/f...ead.php?t=7499

      We do not provide custom coding for NinjaScript items so you will need to work this out on your end.

      Let me know if I can be of further assistance.
      Thanks Cal,
      the sample you provided is helpful. Is this sample only for long positions or also handles shorts position. What I mean do we need to reverse that code for shorts ????

      Comment


        #18
        Bill,

        Correct, this is merely a sample to get it started with one side.

        You would need to reverse this for doing short trades.
        Cal H.NinjaTrader Customer Service

        Comment


          #19
          Is it possible to check the price and keep the stop moving up < 10 ticks etc..... This seems simple. What can be the code for this ????

          Comment


            #20
            Hello,

            Thank you for the question.

            If you are using the managed approach when creating a strategy you can use the built in trail stop methods, here is a link to some more information on this: http://www.ninjatrader.com/support/h...ttrailstop.htm

            Here is some additional information on the entry methods: http://www.ninjatrader.com/support/h...d_approach.htm

            Please let me know if I may be of further assistance.
            JesseNinjaTrader Customer Service

            Comment


              #21
              Hi Jesse,
              will this work ??

              SetStopLoss("Entry1", 10);
              SetStopLoss("Entry2", 10);
              SetProfitTarget("Entry1", 10);
              SetTrailStop("Entry2", CalculationMode.Ticks, 10);

              Comment


                #22
                Hello,

                For your question related to trailing the price,

                Yes the SetTrailStop("Entry2", CalculationMode.Ticks, 10); would trail your order that has the signalName "Entry2" by 10 ticks.

                I can just tell you this works but in reality the best solution is always to test it. In this situation I would recommend adding the trailing stop to your code and then running it on a chart so you can visually see how it is performing.

                I look forward to being of further assistance.
                JesseNinjaTrader Customer Service

                Comment


                  #23
                  Hi Jessi/Cal,
                  If I set the SetTrailStop("Entry2", CalculationMode.Ticks, 10) Do I still have to setup stoploss or it will automatically stoploss at 10 ticks ???

                  Comment


                    #24
                    Hello billsingh,

                    There would be no need for the SetStopLoss(), in fact SetStopLoss() and SetTrailStop() cannot be used together.

                    Comment


                      #25
                      Great Thanks PAt.

                      Comment

                      Latest Posts

                      Collapse

                      Topics Statistics Last Post
                      Started by proptrade13, Today, 11:06 AM
                      1 response
                      5 views
                      0 likes
                      Last Post NinjaTrader_Clayton  
                      Started by quantismo, 04-17-2024, 05:13 PM
                      4 responses
                      30 views
                      0 likes
                      Last Post quantismo  
                      Started by love2code2trade, 04-17-2024, 01:45 PM
                      4 responses
                      32 views
                      0 likes
                      Last Post love2code2trade  
                      Started by cls71, Today, 04:45 AM
                      2 responses
                      10 views
                      0 likes
                      Last Post eDanny
                      by eDanny
                       
                      Started by kulwinder73, Today, 10:31 AM
                      1 response
                      10 views
                      0 likes
                      Last Post NinjaTrader_Erick  
                      Working...
                      X