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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    630 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    565 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X