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.
Size:
Color:
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.
Size:
Color:
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?
Size:
Color:
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.
Size:
Color: