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.
Size:
Color:
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.
Size:
Color:
Thanks for pointing this out. I'll see what I can do to get this fixed.
Size:
Color:
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
Size:
Color:
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.
Size:
Color:
Thanks for fast answering ...
Size:
Color:
The topic starter's issue is fixed in 6.9.21.
Size:
Color:
Thanks for implementing. How do I update WLP to get this?
Size:
Color:
I'm currently expecting this 6.9.21 to be pushed out on Wednesday evening.
Size:
Color:
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?
Size:
Color:
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.
Size:
Color: