Synchronize() between independent Bars, DataSeries ?
Author: kribel
Creation Date: 8/15/2015 9:16 AM
profile picture

kribel

#1
Hi there!

I have a few questions regarding the Synchronize method.

1) Can I use the Synchronize() method outside a strategy? If yes, how?
2) Is there a Synchronize() method which synchronizes one DataSeries to another independent from the Bars object, e.g. Synchronize( ds1, ds2)?
3) Is there a Synchronize() method which synchronizes Bars objects in the same way as in point 2?

Many thanks
Konstantin
profile picture

Eugene

#2
1) What is the purpose?
2) No need for an extra method. You can already synchronize between different DataSeries. Just give it a try.
3) Yes. Strike F11, start typing the first letters of Synchronize, and you'll find the method's description and calling convention. The requested version will be there.
profile picture

kribel

#3
1) I am writing an indicator which needs to synchronize some DataSeries of different lengths. I thought it might be great to be able to use Synchronize().

2) Do you mean the option of using SetContext() and then Synchronize()? If not, then I really cannot find any Synchronize() method with two or more arguments. Could you please help me?

3) Sorry, I missed that.
profile picture

Eugene

#4
1) Thanks, I see it. No, this Synchronize can't be used in this context. Good news: there is undocumented (read: your usage is unsupported) method BarScaleConverter.Synchronize. Once I was after a similar task (plotting external symbol as drag and drop indicator) and this saved me. For an example of its usage, download the open source code of Community Components Community Indicators and see the ../Helper/ExternalSymbolPlotter.cs class

2) You're not missing anything. You don't need it. ds1 = Synchronize(ds2). Does this ring a bell?
profile picture

kribel

#5
Hi Eugene,

1) I downloaded the source code of Community Components. Unfortunately there is no su h file as ExternalSymbolPlotter.cs. Could you please help?

2) I think we had here a misunderstanding. I mean that I have two DataSeries objects which are not synchronised to the primary Bars and would like to synchronise one to the other. If I use ds1 = Synchronize (ds2) it will synchronize ds2 to the primary bars. At least I understand it this way. What I mean is someting more like that: ds3 = Snchronize (ds1, ds2). I guess I can do it with SetContext ().
profile picture

Eugene

#6
1) I stand corrected. It's Community Indicators.
profile picture

kribel

#7
Hi Eugene!

Thank you very much! This is exactly what I need.

QUOTE:

Good news: there is undocumented (read: your usage is unsupported) method BarScaleConverter.Synchronize.


I understand this the way that if I find any bugs then there will be no support from your side. Is that correct?

Who is the owner or author of the BarScaleConverter class then?

Many thanks
Konstantin
profile picture

Eugene

#8
QUOTE:
I understand this the way that if I find any bugs then there will be no support from your side. Is that correct?

This, and if you have any questions w.r.t. its usage, too. This is the policy for all internal, undocumented methods not intended to be consumed by the end user.

QUOTE:
Who is the owner or author of the BarScaleConverter class then?

This is an internal Wealth-Lab function. I won't expect you to find any bugs there. It's an important (core) component.
profile picture

kribel

#9
The methods of the BarScaleConverter class are straight forward. I am quite sure I will get along with them.

Many thanks!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).