Write Protection for DataSeries.Date.Clear() and Add()
Author: haemueller
Creation Date: 3/18/2015 9:40 AM
profile picture

haemueller

#1
I get an NotSupportedException in C#. That would be unfortunate since I have almost finished a program for automatic daily P&F trading. P&F is not on linear time, so I have to edit the price and date series in DataSeries. It would be useful to be able to clear the Date List in one go, and then use newds.Date.Add(date) in a loop to rebuild the newds P&F time series.

Any comments or a handy workaround ? Please let me know!

Regards, H.

https://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k(EHNOTSUPPORTED)&rd=true
profile picture

Eugene

#2
The Date collection is read-only by design. It is not possible to change the bar's date (see FAQ). You could try to set up a new custom Bars object etc. (see QuickRef > SaveToFile etc.) but before anything else, have you reviewed the already existing PnF strategies such as...

1. Built-in "Point and Figure Basic (PnF)"
2. Downloadable ActiveTrader 2011-02 | PnF Double Top
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).