I'm trying to get the yesterday's stochastics value in an intraday strategy but it doesn't seem to work.
Here's what I'm doing:
CODE:
Please log in to see this code.
However it doesn't seem to work. What's the best way to accomplish this ?
Size:
Color:
1. You should synchronize the Daily DataSeries.
2. Put the block outside of the loop. That would be the correct placement which would not lead to executing the time consuming operation hundreds and thousands times instead of just once.
Then refer to the Daily value in the loop.
Please refer to the WealthScript Programming Guide for examples:
* Multi-Time Frame Analysis > Intraday/Daily
* DataSeries > Accessing Secondary Symbols > Secondary Series Synchronization
Size:
Color:
Size:
Color: