RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        


12»»

spread trading Expand / Collapse
Message
Posted 3/11/2010 11:32:09 Post #11141
 

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie
Hi. Is it possible in RightEdge to define spreads (for inst. +NATGAS-CRUDE OIL) and chart them (the spread, not the single legs)?
Posted 3/12/2010 09:03:56 Post #11149
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Yes, you'd have to create a UserSeries that merges the data in code. Have a look at the Ratio trading system. This is a user submitted system that hasn't been converted to the latest version of RightEdge, but the concepts remain the same.

fdanil (3/11/2010)
Hi. Is it possible in RightEdge to define spreads (for inst. +NATGAS-CRUDE OIL) and chart them (the spread, not the single legs)?
Posted 6/18/2010 13:47:13 Post #11794
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Hi i downloaded this system is working fine, except for the macdRatio witch remais empty. Any idea ??? Itried 

RatioMACD[symbol].SetInputs(Ratios[symbol]);

RatioMACD[symbol].NewBar();

// Add MACD value to the chart series

Series["RATIOMACD"][symbol].SetCurrentValue(BarUtils.LastValueOf(RatioMACD[symbol]));

but none seems to work. Any idea ??

                                     Thank´s Vitor Dantas

Posted 6/21/2010 07:36:04 Post #11802
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
First, you'll want to use the .Current property instead. Second, what is the value of RatioMACD[symbol] when you add it to the UserSeries?

vitor dantas (6/18/2010)
Hi i downloaded this system is working fine, except for the macdRatio witch remais empty. Any idea ??? Itried

RatioMACD[symbol].SetInputs(Ratios[symbol]);

RatioMACD[symbol].NewBar();

// Add MACD value to the chart series

Series[
"RATIOMACD"][symbol].SetCurrentValue(BarUtils.LastValueOf(RatioMACD[symbol]));

but none seems to work. Any idea ??

Thank´s Vitor Dantas
Posted 6/21/2010 09:56:24 Post #11809
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
The system create a serie that is the ratio from the two securities after this we create a macd over the ratio(MacdSerie). But it returns a macdSerie empty. It´s seems that somewere is missing a command to attach the dataserie to the indicator

                           

Posted 6/22/2010 08:37:19 Post #11814
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
You're basing this off of old code. I would recommend visiting the section Developing Trading Systems in RightEdge. And scroll down to the section titled User Series. You really want to do something like this:

UserSeries mySeries;

public override void Startup()
{
mySeries = new UserSeries();
mySeries.ChartSettings.ChartPaneName = "MySeriesPane";
mySeries.ChartSettings.Color = Color.Red;
mySeries.ChartSettings.DisplayName = "My Ratio";
}

public override void NewBar()
{
mySeries.Current = calculate your value here.
}


vitor dantas (6/21/2010)
The system createa serie that is the ratio from the two securities after this we create a macd over the ratio(MacdSerie). But it returns a macdSerie empty. It´s seems that somewere is missing a command to attach the dataserie to the indicator

Posted 6/22/2010 16:41:07 Post #11819
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Ok , i sow, what i want to do is create a userSeries and create an indicator over the user Serie ! When i do that on that system it returns an empty Indicator of the (userSerie).

I think some Attach command is missing something that feed the indicator with the user serie,

Posted 6/24/2010 08:55:31 Post #11826
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
I'm afraid I don't understand. Can you ask the question a different way?

vitor dantas (6/22/2010)
Ok , i sow, what i want to do is create a userSeries and create an indicator over the user Serie ! When i do that on that system it returns an empty Indicator of the (userSerie).

I think some Attach command is missing something that feed the indicator with the user serie,
Posted 6/29/2010 11:19:17 Post #11845
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Resuming the creation of the userSerie is working fine, but when i create an indicator over this userSerie - only returns double.NAN . . . It doesn´t give me any value !!!

That´s why i´m thinking that i´m mot feeding the indicator properly ...

Posted 6/30/2010 16:10:23 Post #11853
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
Where are you getting the indicator values from? What values are you feeding to the user series?

vitor dantas (6/29/2010)
Resuming the creation of the userSerie is working fine, but when i create an indicator over this userSerie - only returns double.NAN . . . It doesn´t give me any value !!!

That´s why i´m thinking that i´m mot feeding the indicator properly ...
« Prev Topic | Next Topic »

12»»

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:52pm

2005-2007 © RightEdge Systems