RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



BarFrequency Expand / Collapse
Message
Posted 4/19/2010 08:12:13 Post #11477
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
How do I setup BarFrequency of 2 of 3min - its not on the list that comes up?
Posted 4/19/2010 10:07:07 Post #11478
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
Which BarFrequency are you talking about? If you mean the system's frequency in the system properties, there is a button at the end of the list that will let you choose different frequencies. You can also edit the list that shows in the dropdown in the Frequencies tab of the RightEdge options.

Thanks,
Daniel
Posted 4/19/2010 10:23:57 Post #11479
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Sorry didn't explain that very well - yes I can edit the list of system frequencies ok.  Its within the code I'm talking about,

i.e

I can do the following

M60 = GetFrequency(BarFrequency.SixtyMinute);   as SixtyMinute is one of the options that comes up in the promptinh

the following does not work as a 3min frrequency is not valid

M3Freq = GetFrequency(BarFrequency.TheeMinute);

How can I add a three minute frequency - or any other I want for that matter.

Cheers

Posted 4/19/2010 10:43:53 Post #11480
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
There is an overload to GetFrequency that accepts a TimeSpan. So you can do:

M3Freq = GetFrequency(TimeSpan.FromMinutes(3));

Thanks,
Daniel
Posted 4/19/2010 15:20:34 Post #11483
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Cheers - thats sorted now.

One more thing is an indicator (Double Stochastic) I have which doesn't seem to work in the multi frequency environment - it works fine
on all charts of any timeframe though

I've set it up below in the same way I would other indicators but it always produces NaN for all values

Private M3DS As DStoch

M3DS = New DStoch(10,3)
M3DS.SetInputs(Close,High,Low)
SystemData.IndicatorManager.SetFrequency(M3DS, M3Freq)


Posted 4/19/2010 23:07:28 Post #11486
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
You are setting the inputs to M3DS to the Close, High, and Low series of whatever your main system frequency is. Try this:

M3DS.SetInputs(M3Freq.Close,M3Freq.High,M3Freq.Low)
« 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 2:15pm

2005-2007 © RightEdge Systems