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 Karado58, 11-26-2012, 02:57 PM
    8 responses
    14,828 views
    0 likes
    Last Post Option Whisperer  
    Started by Option Whisperer, Today, 09:05 AM
    0 responses
    1 view
    0 likes
    Last Post Option Whisperer  
    Started by cre8able, Yesterday, 01:16 PM
    3 responses
    11 views
    0 likes
    Last Post cre8able  
    Started by Harry, 05-02-2018, 01:54 PM
    10 responses
    3,204 views
    0 likes
    Last Post tharton3  
    Started by ChartTourist, Today, 08:22 AM
    0 responses
    6 views
    0 likes
    Last Post ChartTourist  
    Working...
    X