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

#68233
Peter
  • Topics: 0
  • Replies: 208
  • Posts: 208

Hi David

By Default, the watchlist will use the Close of the most recent bar in the dataout list.
You can access previous bars using the array operator e.g. close of previous par is PYTHON(PYTHONFILE=TickSize.py)[1]

Pin It on Pinterest