thinkscript - using getATMOption - ThinkOrSwim | futures trading

Go Back

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim

thinkscript - using getATMOption
Started:November 25th, 2014 (08:16 AM) by markncsu Views / Replies:890 / 0
Last Reply:November 25th, 2014 (08:16 AM) Attachments:0

Welcome to

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

thinkscript - using getATMOption

Old November 25th, 2014, 08:16 AM   #1 (permalink)
Trading Apprentice
Raleigh NC/USA
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: options
Posts: 1 since Nov 2014
Thanks: 0 given, 0 received

thinkscript - using getATMOption

How do you assign the result of getATMOption to a variable? When I try the following, I get a "expected double" error.

def symbol = GetATMOption(GetSymbol(), 20141221, OptionClass.CALL);

I assume this is because the function is returning the symbol as type String. But within the Studies editor, it doesn't allow me to create a variable of type String. So I do I assign this result to a variable?


Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > thinkscript - using getATMOption

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with thinkscript scan. Saul ThinkOrSwim 7 August 29th, 2015 06:51 PM
Telechart to ThinkScript smithwhitecapital ThinkOrSwim Programming 0 November 21st, 2014 01:45 PM
thinkscript purelife173 ThinkOrSwim Programming 0 October 30th, 2014 11:50 PM
thinkscript reference situhold ThinkOrSwim 3 September 12th, 2014 12:58 PM
ThinkScript studies c0ol2 ThinkOrSwim 5 April 8th, 2014 12:50 PM

All times are GMT -4. The time now is 05:12 PM.

Copyright © 2016 by All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-25 in 0.06 seconds with 19 queries on phoenix via your IP