Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Blew through stop...

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

    Blew through stop...

    Backtesting a large basket of stocks. I have a set .75 stop loss as shown below based on 1minute bars. On 7/19/12 at 11:18 ticker APC dropped about 3.5pts in 4minutes. It blew right through my stop. Is there any way to avoid this or handle it in a better way? Also I figured in backtesting it would not bypass the stop like it would live?

    for(int i = 0; i < 280; i++)
    if ((BarsInProgress == i + 280)&& (Position.MarketPosition == MarketPosition.Long)
    && Closes[i+280][0] < Position.AvgPrice - .75)//StopLoss
    {
    ExitLong(i+280, 200 , "StopLoss"+i, "EnterLong"+i);
    }

    #2
    Delta007, that's just a market order you issue when triggered - so the bar after the condition to do so became true in backtesting. So that outcome would be expected.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    9 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    14 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Started by strategist007, Yesterday, 07:51 PM
    0 responses
    13 views
    0 likes
    Last Post strategist007  
    Started by StockTrader88, 03-06-2021, 08:58 AM
    44 responses
    3,983 views
    3 likes
    Last Post jhudas88  
    Working...
    X