ThinkScript (TOS) Programming Question (Page 2) - ThinkOrSwim Programming | futures trading

Go Back

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

ThinkScript (TOS) Programming Question
Started:August 1st, 2010 (01:46 PM) by Curbfeeler Views / Replies:6,184 / 10
Last Reply:March 8th, 2016 (03:19 PM) Attachments:1

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 (TOS) Programming Question

Old March 8th, 2016, 03:19 PM   #11 (permalink)
Trading Apprentice
Paris France
Futures Experience: Beginner
Platform: TradingView
Broker/Data: CQG
Favorite Futures: ES1!, CL1!, DY1!
Pharmakon's Avatar
Posts: 37 since Jan 2016
Thanks: 100 given, 17 received

Curbfeeler View Post
The problem is this hasn't been defined in my code yet, so I can't reference it. Thinkscript does not give you any way to define a variable at the top of the code and then change it towards the bottom of the code. So for instance, if I could drop myself a little breadcrumb in ThinkScript and tell myself that the two lines had been 30 ticks apart, I'd be fine--so long as I could reference this at the top of my code later.

Hi !

It will be easier to paste your code here to be able to see it. I don't know how to code on ThinkorSwim, but popular languages make it possible. You can define the variable at the top of your code and change it at the bottom, no ?


Reply With Quote

Reply > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming > ThinkScript (TOS) Programming Question

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
Visual Programming (programming without coding) LukeGeniol Platforms and Indicators 11 September 16th, 2016 12:49 PM
ThinkScript studies c0ol2 ThinkOrSwim 5 April 8th, 2014 12:50 PM
ThinkScript: Three Line Break StockJock ThinkOrSwim Programming 0 December 16th, 2010 11:10 AM
Thinkscript Volatility Indicator tosmonkey ThinkOrSwim Programming 4 November 29th, 2010 04:29 PM

All times are GMT -4. The time now is 12:22 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-22 in 0.07 seconds with 20 queries on phoenix via your IP