RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Drawdown calculation Expand / Collapse
Message
Posted 8/18/2010 04:47:49 Post #12068
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
Any chance of modifying the simulation drawdown calculation to base it off the bar-low/high for long/short positions?

I think it currently uses the bar closing price which gives an understated dd.

- an extreme example ... a mean reversion strategy working off 1 hour bars enters an ES long position on 5/6/10 2:00pm @ 1142 , the bar close is 1112 , the bar low is 1056.

robert
Posted 8/18/2010 07:48:43 Post #12069
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
It uses the account value at a given point in time, not necessarily the bar close, so perhaps we could update or modify the system statistics on a tick basis in the simulation. Are you creating ticks from bars by chance?

tickbytick (8/18/2010)
Any chance of modifying the simulation drawdown calculation to base it off the bar-low/high for long/short positions?

I think it currently uses the bar closing price which gives an understated dd.

- an extreme example ... a mean reversion strategy working off 1 hour bars enters an ES long position on 5/6/10 2:00pm @ 1142 , the bar close is 1112 , the bar low is 1056.

robert
Posted 8/19/2010 00:18:33 Post #12071
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
So if I'm understanding you correctly, I need to set CreateTicksFrombars = true and then I'll be able to update the stats within NewTick. Can you help me out with the code snippet I need within NewTick to do this? tia.

Posted 8/19/2010 07:26:20 Post #12075
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Sorry I wasn't clear. We would have to make a code change on our end in the statistics class. It's taking a snapshot of the account value at the close. We would need to modify this for it to work as you'd like it to. But after we make that change, you'd need to create ticks from bars to have the O,H,L,C events trigger a recalculation.

tickbytick (8/19/2010)
So if I'm understanding you correctly, I need to set CreateTicksFrombars = true and then I'll be able to update the stats within NewTick. Can you help me out with the code snippet I need within NewTick to do this? tia.

Posted 8/20/2010 04:05:00 Post #12086
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
ah ok. Well if you can implement that it sounds like it will solve the problem. Thanks

Robert
Posted 5/1/2011 12:56:54 Post #13140
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Has the change mentioned above been implemented in build 34?

Thanks, Duane
Posted 5/1/2011 17:51:44 Post #13145
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
dwebber (5/1/2011)
Has the change mentioned above been implemented in build 34?

Thanks, Duane


No, it hasn't.

Thanks,
Daniel
Posted 5/1/2011 21:15:22 Post #13150
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
Is the drawdown calculated on the close of intraday bars if the system is running on a daily frequency? For example, the close of hourly bars when running a daily simulation.

Thanks, Duane
Posted 5/4/2011 12:49:09 Post #13160
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
It is calculated on whatever the "System Frequency" is set to in the trading system properties.

Thanks,
Daniel
« Prev Topic | Next Topic »


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 4:44pm

2005-2007 © RightEdge Systems