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 junkone, Today, 11:37 AM
            2 responses
            12 views
            0 likes
            Last Post junkone
            by junkone
             
            Started by frankthearm, Yesterday, 09:08 AM
            12 responses
            43 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by quantismo, 04-17-2024, 05:13 PM
            5 responses
            35 views
            0 likes
            Last Post NinjaTrader_Gaby  
            Started by proptrade13, Today, 11:06 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by love2code2trade, 04-17-2024, 01:45 PM
            4 responses
            35 views
            0 likes
            Last Post love2code2trade  
            Working...
            X