Reply To: Multiple Symbol list Script values for historical data

Optuma Forums Optuma Scripting Multiple Symbol list Script values for historical data Reply To: Multiple Symbol list Script values for historical data

#51819
Matthew
  • Topics: 5
  • Replies: 430
  • Posts: 435

Hi Dan,

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…

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.

Pin It on Pinterest