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

NT8BreakError

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

    NT8BreakError

    Hello Support, In the use Breakeven , its possible to achieve breakeven in Long trade using for example below

    if ((Position.MarketPosition == MarketPosition.Short) && (Position.GetUnrealizedProfitLoss (PerformanceUnit.Ticks, Close [0]) <-8)):.
    But is there a means that can be applied the short trade. Thank you for assistance.

    #2
    Hello Emma1,

    This would be part of the logic.

    You would need to calculate the prices in the logic. Instead of subtracting ticks or points to calculate the break even price, add ticks or points to calculate the break even price.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I came across Move To Breakeven Builder , please is that for long and short position. Thank you.

      Comment


        #4
        Hello Emma1,

        Below is an example I've created that just shows the concept of a breakeven in the strategy builder.


        This is not intended to be used as your actual strategy, but intended to be used as a simple educational tool to show how offsets are used. No, there is no short side as you would need to design this logic yourself. Use addition instead of subtraction with the offsets.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          I was referring to this https://ninjatrader.com/support/foru...rategy-builder

          Comment


            #6
            Hello Emma1,

            ​​​​​​Thats a good reference.

            Have you added condition sets for short entries to add ticks to the price of the exit price for exit orders the way subtracting ticks has been demonstrated for you?
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by MarianApalaghiei, Today, 10:49 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Manfred  
            Started by love2code2trade, Yesterday, 01:45 PM
            4 responses
            28 views
            0 likes
            Last Post love2code2trade  
            Started by funk10101, Today, 09:43 PM
            0 responses
            7 views
            0 likes
            Last Post funk10101  
            Started by pkefal, 04-11-2024, 07:39 AM
            11 responses
            37 views
            0 likes
            Last Post jeronymite  
            Started by bill2023, Yesterday, 08:51 AM
            8 responses
            45 views
            0 likes
            Last Post bill2023  
            Working...
            X