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.

            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.

                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 argusthome, 03-08-2026, 10:06 AM
                      0 responses
                      109 views
                      0 likes
                      Last Post argusthome  
                      Started by NabilKhattabi, 03-06-2026, 11:18 AM
                      0 responses
                      57 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
                      39 views
                      0 likes
                      Last Post TheRealMorford  
                      Started by Mindset, 02-28-2026, 06:16 AM
                      0 responses
                      76 views
                      0 likes
                      Last Post Mindset
                      by Mindset
                       
                      Working...
                      X