Optuma Forums › Optuma Scripting › Multiple Symbol list Script values for historical data › Reply To: Multiple Symbol list Script values for historical data
- Topics: 5
- Replies: 430
- Posts: 435
The BarsTrue() function is usefull if there is a specific look back period you want to check. However in your example you are wanting to check the entire history for each code, which varies from code to code.
In this scenario i’d suggest using the ACC() function instead.
Using the Moving Averages in your example the updated script would look like this…
V1 = MA(BARS=10, STYLE=Exponential) CrossesAbove MA(BARS=20, STYLE=Exponential) ;
Add the above script to a Watchlist and you should see the result you are after.
- This reply was modified 2 years ago by Matthew.