Posted 4/19/2010 08:12:13
|
|
|
|
| How do I setup BarFrequency of 2 of 3min - its not on the list that comes up?
|
|
Posted 4/19/2010 10:07:07
|
|
|
|
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
|
|
|
|
| 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
|
|
|
|
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
|
|
|
|
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
|
|
|
|
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)
|
|
|
|