Reply To: Sample Python script, and a question about returning values from that script

Optuma Forums Optuma Scripting Sample Python script, and a question about returning values from that script Reply To: Sample Python script, and a question about returning values from that script

#68191
Peter
  • Topics: 0
  • Replies: 207
  • Posts: 207

Hi

Once you have set the ticksize in the dataout rows , you can use the PYTHON() function in Optuma scripting (remove the return ticksize line)

So for example in a watchlist you can click on the + to add a column and choose new script column.  Then in the script enter the above line.
The TickSize value should appear in the watchlist.

You can also use the last row value as a variable in scripts using the $ operator to change a list into a variable

The output of the print function in python scripts can be viewed using an outputdeubgstring viewer. DBGView is a good one.
https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

Regards
Peter

1 user thanked author for this post.

Pin It on Pinterest