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
May 12, 2022 at 8:32 am
#68233
- 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]