DataSeriesOp.SplitReverseFactor gives different results depending on the date range
Author: KGo
Creation Date: 4/4/2017 4:11 PM
profile picture

KGo

#1
The SplitReverseFactor function gives different results depending on the date range selected. It is ignoring splits that occurred after the end date of the analysis. Those splits are in the clicked data and must be represented in the adjustment. Try PSQ before and after 11/6/2014.
CODE:
Please log in to see this code.
profile picture

KGo

#2
Sometimes DataSeriesOp.SplitReverseFactor gives the correct value as with AAPL. However it is often incorrect as with:
CME
DDM
DXD
EWJ
EWM
FCX
IBN
MVV
PRAA
BIDU
PSQ
QLD
SBS
SDS
SH
Set the end date control to an early date say 2005 and try the below. If both blue and red line show at the last bar there is a problem. I believe the blue as coded is correct and have been using it as a replacement.

Please advise.
CODE:
Please log in to see this code.
profile picture

Cone

#3
Thanks for pointing this out. I'll see what I can do to get this fixed.
profile picture

marcomaier

#4
Hello,

I use the following part of code for my strategy:

CODE:
Please log in to see this code.


Can you tell me how this code has to be modified ("Split (Yahoo! Finance)" is for the Yahoo-data) to work with the Data-Providers Morningstar Static and QuoteMedia or where I can find this informations?

Thanks and greetings

Marco
profile picture

Eugene

#5
Hello Marco,

You cannot modify this code to use Morningstar or QuoteMedia providers as the source of split reverse adjustment. Said providers do not contain a fundamental item like "Split (Yahoo! Finance)".

P.S. Keep in mind that since these data providers do not support split and dividend adjustment you have to refresh the data once a split has taken place.
profile picture

marcomaier

#6
Thanks for fast answering ...
profile picture

Cone

#7
The topic starter's issue is fixed in 6.9.21.
profile picture

KGo

#8
Thanks for implementing. How do I update WLP to get this?
profile picture

Cone

#9
I'm currently expecting this 6.9.21 to be pushed out on Wednesday evening.
profile picture

Panache

#10
CODE:
Please log in to see this code.

Is there a way to build the bars object directly from the data series objects without having to do it bar by bar?
profile picture

Eugene

#11
Probably. Create an Extension method for that and wrap it in your custom library (like C.Components). Should you have followup questions, please make sure to start a new topic. Despite quoting the code, what you're asking for is a separate question.
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).