Editing symbol data file in static data provider
Author: skaarr
Creation Date: 3/2/2013 1:07 AM
profile picture

skaarr

#1
Can you please explain how "add bar" section works? I do not see adding bars, may be something wrong with this code?

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

Eugene

#2
No idea what might be wrong with your code, but in Google provider, adding, removing and editing new bars has been working fine in all bar scales.

For example, you could've forgotten to signal Wealth-Lab that your data provider supports Bar Data editing (CanEditSymbolDataFile), or, your data provider does not support the BarDataStore.

And if you're working a database, the rendition of SaveEditedSymbolDataFile as found in the Google provider will be of no help: it works with the local Bars storage whereas you'd have to build your own logic for committing the changes to the DB.
profile picture

skaarr

#3
This is not my code, I copy-paste part of Google Static provider and ask explain this part, because it logic is not clear.
CODE:
Please log in to see this code.

Why in this section you search bar time in stored bars series, and then just search same time in new bars series? And after that, you just reassign bars. So may be this foreach loop not needed in this place?
profile picture

Eugene

#4
It's been over a couple of years since I touched it for the last time, and I don't quite remember; but what you're saying makes sense: looks like the loop might not be required when adding new bars.
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).