RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



MACD of ratio Expand / Collapse
Message
Posted 12/5/2006 20:24:18 Post #611
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
This example shows how to calculate the ratio of prices for two symbols, and a MACD of that ratio.

The system can be downloaded by clicking here

Posted 8/31/2008 16:52:34 Post #6540
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hi,

New to RE, as well as C#. Tried downloading the ratio trading system, but it won't compile....

I get 4 error messages that don't really mean a lot to me

'ISeries.Values' in explicit interface is not a member of interface

'DataSeries' does not implement interface member 'RightEdge.Common.Iseries.LookBack(int)

etc.

Any advice on how to go about?

Thanks,

Claes

Posted 9/1/2008 13:31:08 Post #6553
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
That trading system is out of date.  In the current version of RightEdge it would actually be be a lot easier to do this.  The "Developing Trading Systems in RightEdge" section of the help has some information that should help you with this.  If you still need help I can try to update this system.

Thanks,
Daniel

Posted 9/1/2008 18:03:08 Post #6554
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Thanks Daniel, that looked a whole lot easier, will give it a try!

BTW, how do I know that a new bar has been built for BOTH symbols for which I am trying to calculate the ratio...? Is there a separate event that fires when all symbols in a folder have had a bar generated for the same period?
Posted 9/1/2008 19:22:59 Post #6557
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
The bars and indicators for both symbols will have been updated before the NewBar method in your symbol script is called for either symbol.

If you need to run some code before or after all of the symbol script NewBar methods have been called, override the NewBar method of the system class.  The base version of this will call the symbol script NewBar methods, so you can call base.NewBar() and then do whatever you want to do after they have all been processed.  If you want to control the order the symbols are processed in, you can leave the call to base.NewBar() out and call NewBar() on each symbol script yourself.

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, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 6:44am

2005-2007 © RightEdge Systems