Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

parabolic stop

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

    parabolic stop

    Hello,

    I thought I haved solved all questions for the strategy. Now it occurs that the stoploss doesn´t work as stop but it closes in a winning position because it uses the upper parabolic as "stop". How can I avoid this and what do I have to change in the stoploss variable so that only lower parabolic works as stoploss (for longs of course). My stoploss now is

    stop1=ParabolicSAR(0.02, 0.2, 0.02)[0];
    SetStopLoss("LG1", CalculationMode.Price, stop1, false);

    In the attached screenshot you can see what I mean - the strategy should use the (lower) parabolic as stop - of course it does - but it also closes winners at upper.

    Thanks
    Tony
    Attached Files
    Last edited by tonynt; 07-31-2011, 01:03 PM. Reason: better title for other user

    #2
    Tony, I believe this is working as expected, because there is only one parabolic output. It will spit out a price either above or below the current bars, as dictated by the indicator's logic. Have you tried setting TraceOrders = true in Initialize() to see what prices the stops are being submitted at? Please also print out the parabolicSAR value as well to see if the prices match.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Shansen, 08-30-2019, 10:18 PM
    24 responses
    939 views
    0 likes
    Last Post spwizard  
    Started by Max238, Today, 01:28 AM
    0 responses
    7 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by rocketman7, Today, 01:00 AM
    0 responses
    4 views
    0 likes
    Last Post rocketman7  
    Started by wzgy0920, 04-20-2024, 06:09 PM
    2 responses
    28 views
    0 likes
    Last Post wzgy0920  
    Started by wzgy0920, 02-22-2024, 01:11 AM
    5 responses
    33 views
    0 likes
    Last Post wzgy0920  
    Working...
    X