Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

„Do not trade while..."

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

    #16
    Adam,
    there is one "little" (but very important) thing - i saw now. The ProfitTarget will not be executed.
    How can this be?

    Comment


      #17
      Deogenes,

      It looked like the profit target was commented out.

      A comment looks like this :

      //this is a comment

      What happens is anything after the // on the same line is ignored by the compiler.

      Please let me know if I may assist further.
      Adam P.NinjaTrader Customer Service

      Comment


        #18
        Thanks Adam,

        but this is not the Problem. // SetStopLoss ... is commented out. I tried to put SetProfitTarget above CalculateOnBarClose = true; but it´s still the same.
        Attached Files

        Comment


          #19
          Deogenes,

          EnterLong(DefaultQuantity, "Buy");
          SetProfitTarget("buy", CalculationMode.Ticks,8);

          Notice that one signal is "Buy" , the other is "buy". The signal names are case sensitive.

          Please let me know if I may assist further.
          Adam P.NinjaTrader Customer Service

          Comment


            #20
            Oh, what a shame !!

            Now it works perfect. Sorry for that stupid mistake, i made :-))

            Thank you there in Denver.

            Comment


              #21
              Deogenes,

              No a problem. Thanks!

              We are here to help educate and advise and are always happy to.
              Adam P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              672 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              379 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              111 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              576 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              582 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X