Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

parabolic SAR stop strategy

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

    parabolic SAR stop strategy

    Hi,

    I would like to test using pSAR as a stop in the Strategy Analyzer but not sure how to do that. Is it possible to use a pSAR stop using the Strategy Wizard? Thanks

    #2
    Hi winja,

    You can do this with the SetStopLoss() method. http://www.ninjatrader-support.com/H...tStopLoss.html

    Please also check out this reference sample. http://www.ninjatrader-support.com/v...ead.php?t=3222

    In the OnBarUpdate() method...
    Code:
    SetStopLoss(CalculationMode.Price, ParabolicSAR(0.02, 0.2, 0.02)[0]);
    Josh P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by jonelusiya, Today, 01:36 AM
    0 responses
    0 views
    0 likes
    Last Post jonelusiya  
    Started by Stevenastleberry, Today, 01:13 AM
    0 responses
    5 views
    0 likes
    Last Post Stevenastleberry  
    Started by sidlercom80, 10-28-2023, 08:49 AM
    95 responses
    1,129 views
    0 likes
    Last Post sidlercom80  
    Started by kevinenergy, 02-17-2023, 12:42 PM
    48 responses
    1,205 views
    1 like
    Last Post TradeSaber  
    Started by FatCanary, 06-11-2021, 09:11 AM
    17 responses
    1,043 views
    0 likes
    Last Post Laurentvan  
    Working...
    X