Parse a symbol’s thinklog note or know cumulative delta?


Category:
0
0

1) Is there a way to have thinkscript to parse a symbol’s thinklog note?

OR

2) Is there a way to have thinkscript access the cumulative delta of all the current positions under the symbol?

 

I use scans on my current positions and alert when I should exit. I want the scans to automatically know whether the positions under the symbol are bullish or bearish. I currently use a workaround that is OK, but suboptimal.

 

I could reverse my thinking: uncheck “Show underlying symbols instead of option symbols” and re-write all my code to incoportate GetUnderlyingSymbol(), but this would be a massive effort.

 

Thanks!

-Charles

Marked as spam
Posted by (Questions: 5, Answers: 4)
Asked on February 29, 2020 9:12 am
311 views
0
Private answer

Sorry but the answer is no on both counts. There are no tools in the Thinkorswim language for parsing strings. There is no way for the code in Thinkorswim to read any content in the Thinklog. Finally, there are no tools in the Thinkorswim language that can access information about live positions.

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on February 29, 2020 6:48 pm
0
Thank you for your quick response! I had a feeling the answer was no. I'll keep using my workaround. Maybe eventually I'll be ambitious enough to rewrite my code to use GetUnderlyingSymbol() and uncheck “Show underlying symbols instead of option symbols”.
( at March 1, 2020 7:52 am)