Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to Set Dynamic Target Based on how far away my stop is?

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

    How to Set Dynamic Target Based on how far away my stop is?

    Currently I have

    if (CrossAbove(Close,SMA,1))

    { EnterLong () ;
    StopPrice = MIN(Low, 10)[0];

    How do I get This Value Below?

    TargetPrice = (Position.AveragePrice + ( 2 * ( the distance between position and stop));




    #2
    Hello condorhero,

    You would need to keep track of the prices where you are submitting orders to double variables.

    Below is a link to an example.
    https://ninjatrader.com/support/foru...269#post802269
    https://ninjatrader.com/support/foru...596#post806596

    Or you can get the order price from OnOrderUpdate.
    https://ninjatrader.com/support/foru...092#post786092
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      This is a feature request to be able to display (i) Active PnL, (ii) Targets and (iii) Stops as:

      1. Percentage of the account equity,
      2. Factor of R (related to Risk)

      Also, please consider a related feature to have the platform calculate and route position size based on above criteria to establishing ATM orders.

      Comment


        #4
        Hello Silent Warrior,

        This is a duplicate of a post another thread linked below and is not on the topic of this conversation.
        https://ninjatrader.com/support/foru...-r#post1137259

        We respectfully request that you do not create duplicate posts on the forum. NinjaTrader_PaulH will follow up with you in the other thread.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NtFan, Today, 04:12 PM
        1 response
        8 views
        0 likes
        Last Post NtFan
        by NtFan
         
        Started by futurenow, Today, 01:44 PM
        2 responses
        33 views
        0 likes
        Last Post voltation  
        Started by Gerik, Today, 12:44 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by autogenix, Today, 01:01 PM
        3 responses
        19 views
        0 likes
        Last Post NinjaTrader_Emily  
        Started by shankar.deshapande, Today, 12:34 PM
        1 response
        9 views
        0 likes
        Last Post bltdavid  
        Working...
        X