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 algospoke, 04-17-2024, 06:40 PM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by bmartz, 03-12-2024, 06:12 AM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Aviram Y, Today, 05:29 AM
    2 responses
    8 views
    0 likes
    Last Post Aviram Y  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X