Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to start a trade based on current open position

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

    How to start a trade based on current open position

    Is there a way using ATM or another way to for example
    I bought into ES and if my current position is down $100 then buy another long position of ES. Is there a way to do that ?

    #2
    Hello MattPatt,

    Thank you for your post and welcome to the NinjaTrader forum community!

    This would be possible using a custom NinjaScript strategy. If you have a programming background, our NinjaScript team may provide you links to samples that would help you write the script yourself. Otherwise, we can provide you with resources to find a programmer to create the script for you. Please let me know which option interests you so I may follow up accordingly.​

    Thank you for using NinjaTrader.

    Comment


      #3
      I do have a programming background would you be able to send me resources

      Comment


        #4
        Originally posted by Mattpatt View Post
        I do have a programming background would you be able to send me resources
        Thanks for your reply.

        The following guide covers the basics and provides many helpful resources related to getting started with NinjaScript:


        In the Strategy Builder, for example, you could determine the desired conditions to submit your original entry order. Then, you could set a condition that checks the PnL of the current open position (Strategy > Unrealized PnL) and see if that is greater than or equal to -$100; if that condition is met, the action could be to place another buy order.

        Please let us know if we may be of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        93 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        138 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        123 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        73 views
        0 likes
        Last Post PaulMohn  
        Working...
        X