Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How SetProfitTarget/SetStopLoss calculate its exact price

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

    How SetProfitTarget/SetStopLoss calculate its exact price

    Hi,

    Would like to know how do SetProfitTarget() and SetStopLoss() exactly set the respective price value when uses the tick value in CalculationMode.Ticks? Which reference price value do these functions use to calculate the exact StopLoss and Profit Target price, given the ticks as input?

    Thanks in advance.

    #2
    Hello ckkoh_sgp,

    Thank you for your post.

    When using CalculationMode.Ticks for the Set() methods you need to set an int for a number of ticks away from the average entry price. For example:
    Code:
    SetProfitTarget(CalculationMode.Ticks, 8); // sets profit target 8 ticks from average entry price.
    You can find an example of using ticks for the Set() methods at the following link: http://www.ninjatrader.com/support/f...ead.php?t=5790

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    47 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    23 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    33 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    42 views
    0 likes
    Last Post CarlTrading  
    Working...
    X