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

#68237
David
  • Topics: 9
  • Replies: 16
  • Posts: 25

Thanks Peter,

Tools such as CANDLESTICKPATTERN() return string values, which can be displayed in a watchlist. Is it possible to have Python scripts return strings or booleans, or are they limited to returning numbers only?

For the use case I have in mind, ideally I’d like a Python script to return a small array of numbers and have them displayed as an array in a watchlist. I could easily convert that array to a string if that was going to work, but not sure how to implement it if the only option is to use the Close values (which I assume need to be numeric).

Pin It on Pinterest