RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Daily Trading NewBar() other than Midnight Expand / Collapse
Message
Posted 3/4/2010 21:50:27 Post #11038
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member
Is there a way to have a daily trading strategy where RightEdge fires the NewBar() event/method at a time other than midnight? If your RE was not running at midnight you would lose the NewBar() event?...Is there a way to trigger it later?

We also investigated using say, 1-minute bars, and configured them to return the latest historical datapoint. The problem with that was that when we did .LookBack(x), it would think in terms of minutes rather than days...is there a way to link a "fake" minute bar frequency that would run after hours and return the prices as of 4:00 pm, but use lookbacks in terms of days?

Thank you!

Posted 3/5/2010 09:53:37 Post #11044
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
There is not a way to force a time on a daily bar. If you're using create ticks from bars, you'll get 4 ticks on a daily bar (open, high, low, close). You could theoretically produce your own event that occurs after the close bar hits.

Would that help?

invingator (3/4/2010)
Is there a way to have a daily trading strategy where RightEdge fires the NewBar() event/method at a time other than midnight? If your RE was not running at midnight you would lose the NewBar() event?...Is there a way to trigger it later?

We also investigated using say, 1-minute bars, and configured them to return the latest historical datapoint. The problem with that was that whenwe did.LookBack(x), it would think in terms of minutes rather than days...is there a way to link a "fake" minute bar frequency that would run after hours and return the prices as of 4:00 pm, but use lookbacks in terms of days?

Thank you!
Posted 3/5/2010 17:37:24 Post #11047
 

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being
I think this should be added as a feature. For people that trade end of day it is going to be a reoccurring question/problem.

We have added timers and other code to get around this but a built in solution would be much better.




Posted 3/8/2010 05:45:31 Post #11070
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member
Hi kaizen,

Could you please expound a bit / add some clarifying comments/code on how you got around this problem? My solution is EOD only, and, while I jumped over the other blocks, I kind of hit the wall with this one...

Thanks!
Posted 3/17/2010 02:25:26 Post #11199
 

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member
Hi billb,

Could you please expound further on how you could see a solution to this problem using "create ticks from bars"?

Thanks!
Posted 3/18/2010 11:07:17 Post #11203
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Create ticks gives you 4 ticks per bar, since you're wanting to operate "inside" the bar, right? If you want to produce a tick after the close, as kaizen mentions, you'll have to generate your own event or use a timer or some other work around to make this happen since we don't have any mechanism that's automatic.

invingator (3/17/2010)
Hi billb,

Could you please expound further on how you could see a solution to this problem using "create ticks from bars"?

Thanks!
« 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 5:41pm

2005-2007 © RightEdge Systems