RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        


««123»»

Stop Loss bug (backtesting) Expand / Collapse
Message
Posted 2/20/2010 13:07:36 Post #10919
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Something is seriously wrong with RightEdge Signals.
Here are all of the details. The interesting thing is Since beginning of the year I have several entries/exits generated. Some enter 1 day after the signal, others enter correctly on the day the signal is generated. Below are the details for one that enters on Signal +1 day.

I have SystemData.CreateTicksFromBars = false;

Ticker Symbol : CLM
The signal to open the order is 2/11/2010 12:00:00 AM

The order was opened 2/12/2010 0:00 @ 11.12 which is impossible. As the prices for the day are
O H L C Vol Adj Close
12-Feb-10 10.87 10.89 10.11 10.41 107,000 10.41


I use the following Code to generate the order

PositionSettings settings = new PositionSettings();
settings.PositionType = PositionType.Long;
settings.OrderType = OrderType.Limit;
settings.LimitPrice = buyLimitPrice;
settings.Size = tradeSize;
settings.ProfitTarget = longExit;
settings.ProfitTargetType = TargetPriceType.AbsolutePrice;
settings.Description = String.Format("signal date {0}",SystemData.CurrentDate);
OpenPosition(settings);


I will follow up even more with details on faulty exits (i.e stop loss same day and Profit Target Same day) This is still occuring randomly in RE 2010
Posted 2/20/2010 17:35:22 Post #10920
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
I also found a symbol that allows me to reproduce the bug.

Please see my previous post for more info, but here is a simple script which will enter and exit same day with profit target set.

Set the profit target to "RealtivePrice" .04 using the RightEdge Properties Panel.
Then use the attached .cs file for the code.
Run it against symbol TLLE

You will see that on Jan 27th we enter @ .13 and exit on Jan 27th @ .23, this is impossible. CSV of trades attached as well.

Please advise.



  Post Attachments 
BadTrades.cs (25 views, 1.31 KB)
BadTrades.rar (38 views, 958 bytes)
Posted 2/21/2010 07:32:50 Post #10921
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Here is another example using same system I attached before. I attached the entire project, so you should be able to just extract and import

this time I use symbol ATHX

YOu will see same day trades on 6 days.
The CSV is inside the .rar file along with the system.

Also, take a look at the Trade List for these days. I think its a clue something is going wrong.

  Post Attachments 
BadTrades.rar (41 views, 2.85 KB)
Posted 2/22/2010 08:45:18 Post #10932
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Great! I was able to import the system, run it with the data and get results, so we're on our way. However, I'm not seeing the location where you say we have the same trade on 6 days. Let's stay with the symbol ATHX and try to identify what you're seeing in error. It's not immediately obvious to me.

gregoryj (2/21/2010)
Here is another example using same system I attached before. I attached the entire project, so you should be able to just extract and import

this time I use symbol ATHX

YOu will see same day trades on 6 days.
The CSV is inside the .rar file along with the system.

Also, take a look at the Trade List for these days. I think its a clue something is going wrong.
Posted 2/22/2010 08:57:58 Post #10935
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Bill,
Can you confirm you set the profit target to Relative Ratio on the properties tab....see image

http://screencast.com/t/Mjk0NmRlZ
Posted 2/23/2010 09:01:51 Post #10940
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Bill, were you able to reporduce?
Posted 2/23/2010 15:09:42 Post #10941
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
No, I'm not seeing 6 trades on one day, even in the output that you sent me. It is set to relativeratio. PT is 0.01, SL is 0.

gregoryj (2/23/2010)
Bill, were you able to reporduce?
Posted 2/23/2010 15:43:42 Post #10943
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Bill, Not 6 trades in 1 day....rather 6 one day trades. Meaning the enter and exit were the same day.
In the output I sent you (i.e the CSV file which is within the RAR attached)
Do you not see the following 6 trades all occur on the same day?
ATHX Long 500 1/7/2010 0:00 1/7/2010 0:00 3.7 3.75
ATHX Long 500 1/22/2010 0:00 1/22/2010 0:00 2.9 3.03
ATHX Long 500 1/27/2010 0:00 1/27/2010 0:00 2.51 2.58
ATHX Long 500 1/28/2010 0:00 1/28/2010 0:00 2.55 2.64
ATHX Long 500 1/29/2010 0:00 1/29/2010 0:00 2.46 2.61
ATHX Long 500 2/12/2010 0:00 2/12/2010 0:00 3.24 3.31

These are all produced by the same system I attached and could not have occured
Posted 2/24/2010 08:08:14 Post #10948
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Got it, investigating ...

gregoryj (2/23/2010)
Bill, Not 6 trades in 1 day....rather 6 one day trades. Meaning the enter and exit were the same day.
In the output I sent you (i.e the CSV file which is within the RAR attached)
Do you not see the following 6 trades all occur on the same day?
ATHX Long 500 1/7/2010 0:00 1/7/2010 0:00 3.7 3.75
ATHX Long 500 1/22/2010 0:00 1/22/2010 0:00 2.9 3.03
ATHX Long 500 1/27/2010 0:00 1/27/2010 0:00 2.51 2.58
ATHX Long 500 1/28/2010 0:00 1/28/2010 0:00 2.55 2.64
ATHX Long 500 1/29/2010 0:00 1/29/2010 0:00 2.46 2.61
ATHX Long 500 2/12/2010 0:00 2/12/2010 0:00 3.24 3.31

These are all produced by the same system I attached and could not have occured
Posted 2/24/2010 08:32:52 Post #10949
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Excellent! It is so random, and I can't put my finger on it. Look forward to hear what you find.
« Prev Topic | Next Topic »

««123»»

Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 10:03pm

2005-2007 © RightEdge Systems