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 pilotfo, Today, 10:59 AM
        0 responses
        2 views
        0 likes
        Last Post pilotfo
        by pilotfo
         
        Started by UltraNIX, Today, 10:38 AM
        0 responses
        7 views
        0 likes
        Last Post UltraNIX  
        Started by Photon66, Today, 09:49 AM
        1 response
        12 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by jeff_dw, Today, 09:55 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by torch2k, Today, 10:17 AM
        0 responses
        5 views
        0 likes
        Last Post torch2k
        by torch2k
         
        Working...
        X