Resizing a Bars object
Author: superticker
Creation Date: 8/26/2020 3:29 AM
profile picture

superticker

#1
How do I resize (truncate) spx so it's the same size as spx2?

CODE:
Please log in to see this code.

I tried a FOR loop, but the compiler says an indexer [...] is not allowed in a Bars object. For example ...
CODE:
Please log in to see this code.

---
Off topic comment, but when I pass spx2 into my library routine, it all works fine. However, when I pass spx into my library routine, I get "Object reference is not set to an instance of an object". I'm not sure why since both are Bars objects.
profile picture

Eugene

#2
In Wealth-Lab "resizing" is called synchronization. You can accomplish it as instructed in the WealthScript Programming Guide: DataSeries > Accessing Secondary Symbols > Secondary Series Synchronization.
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).