How to assign values to each bar
Author: kiewo
Creation Date: 5/17/2013 5:11 AM
profile picture

kiewo

#1
Hello,

I want to assign special custom values (sorted by date ) wich are stored in a .txt file to each bar. How can I do this, so that I can make an if-condition ( if (Close[bar] > Customvalue[bar]) ....

Thanks a lot!
profile picture

Eugene

#2
Hi Wolfgang,

No need to reinvent the wheel -- simply let FillSeriesFromFile from Community Components do this job for you:

FillSeriesFromFile

Also see the WealthScript Programming Guide > DataSeries > Filling a Custom DataSeries > "How to: Create a DataSeries filled with zeroes", Example 2.
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).