ThinkScript (TOS) Programming Question - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


ThinkScript (TOS) Programming Question
Updated: Views / Replies:7,523 / 10
Created: by Curbfeeler Attachments:1

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 1  
 
Thread Tools Search this Thread
 

ThinkScript (TOS) Programming Question

  #1 (permalink)
Elite Member
Des Moines, IA
 
Futures Experience: Beginner
Platform: NinjaTrader
 
Posts: 22 since Nov 2009
Thanks: 33 given, 16 received

ThinkScript (TOS) Programming Question

Hi. I have a question about Thinkscript. I am not optimistic that anyone can help me, because I don't think what I want to do is possible. My strategy is a kind of swing method. I have a condition (unimportant at this point, to go into detail), and then this condition is met I want to draw two horizontal lines above and below the signal bar. I want these lines to continue until price breaks either line. I want to ignore additional signals while this signal is still in play (see picture).

Here is the problem...

When I create the "HighLine" I need to look back and see what "HighLine[1]" was (last bar compared to price). That's easy enough, but I also need to take a peek at "LowLine[1]."

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.

Maybe I am missing something. Is there anybody who has figured out a way to do something similar?

Any help is appreciated. I have a feeling I may need to draw two dots and fill the lines in manually. What a drag that will be, since I could code this whole strategy in NT is less than an hour.

Attached Thumbnails
ThinkScript (TOS) Programming Question-tos_strategy.png  
Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
new york, ny
 
Futures Experience: Beginner
Platform: Velocity, Sierracharts, TOS
Broker/Data: Velocity/TT FIX
Favorite Futures: 6E
 
Posts: 21 since Aug 2010
Thanks: 14 given, 5 received

I do not know if you are familiar with ....


these sites but here goes.

http://www.thinkscripter.com/

http://thinkscript.blogspot.com/

http://readtheprospectus.wordpress.com

you should also check the forum on thinkscripter.com

good luck,


Reply With Quote
The following 2 users say Thank You to oztrd for this post:
 
  #4 (permalink)
Elite Member
Orlando, FL
 
Futures Experience: Advanced
Platform: NinjaTrader, ToS, Sierra Chart, MCDT
Broker/Data: Interactive Brokers
Favorite Futures: ES, NQ, 6E, 6A, TF, CL
 
kojava's Avatar
 
Posts: 43 since Jan 2011
Thanks: 53 given, 28 received

Thanks for those links. They are very helpful.




Quoting 
...

you should also check the forum on thinkscripter.com

good luck,



Reply With Quote
 
  #5 (permalink)
Elite Member
Glyndon, Maryland, USA
 
Futures Experience: Advanced
Platform: TOS
Favorite Futures: options
 
Posts: 24 since Sep 2010
Thanks: 6 given, 47 received

If you expain in more detail, preferrably in English I am happy to help you figure it out.

Reply With Quote
 
  #6 (permalink)
TruthSeeker
Canada
 
Futures Experience: Intermediate
Platform: NT, IB
Broker/Data: IB
Favorite Futures: Currency Futures
 
sam1197's Avatar
 
Posts: 55 since Feb 2011
Thanks: 13 given, 12 received

Help with TOS Pivots


optntdr13 View Post
If you expain in more detail, preferrably in English I am happy to help you figure it out.

Can I use your talent in modifying/writing TOS Pivot points to plot mid points? Thanks in advance.

R3
M5
R2
M4
R1
M3
Pivot Point
M2
S1
M1
S2
M0
S3

example" M1 = (S1 + S2)/2

Thanks in advance.

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Cleveland, Ohio
 
Futures Experience: Advanced
Platform: ToS
Favorite Futures: 6E
 
Posts: 4 since Jul 2010
Thanks: 2 given, 0 received

Here's another ThinkScript reference site:
www(DOT)share-tos.blogspot(DOT)com

The original post asked about drawing lines above/below breakout levels. Have you looked at the TOS DarvasBox Study for ideas?
I've not posted enough here to include a link, sorry.

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
boston mass
 
Futures Experience: Intermediate
Platform: nt
Favorite Futures: futures
 
Posts: 2 since Apr 2012
Thanks: 0 given, 0 received

nt to TOS

Hello I have a custom nt indicator fairly simple one. Is it possible to get it translated so I can see if it will work well with TOS? Itshould its not auto execute just sort of rollingaversge I dictator. Thnc

Reply With Quote
 
  #9 (permalink)
Trading Apprentice
Calgary Canada
 
Futures Experience: Intermediate
Platform: ThinkorSwim
Favorite Futures: Gold GC, Currency, Crude
 
Posts: 8 since Feb 2016
Thanks: 3 given, 0 received

thanks

Reply With Quote
 
  #10 (permalink)
Elite Member
Paris France
 
Futures Experience: Beginner
Platform: TradingView
Broker/Data: CQG
Favorite Futures: ES1!, CL1!, DY1!
 
Pharmakon's Avatar
 
Posts: 45 since Jan 2016
Thanks: 115 given, 26 received



oztrd View Post
these sites but here goes.

ThinkScripter Community Forum - Give Help, Get Help, Pay it Forward

Thinkorswim thinkscript library

http://readtheprospectus.wordpress.com

you should also check the forum on thinkscripter.com

good luck,



Hi ! Thanks for these links. Do you know also a post about how start ToS Script to do automated trading on PaperMoney ?


Best Regards,
P.

Reply With Quote

Reply



futures io > > > > > ThinkScript (TOS) Programming Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Programming (programming without coding) LukeGeniol Platforms and Indicators 11 September 16th, 2016 01:49 PM
ThinkScript studies c0ol2 ThinkOrSwim 5 April 8th, 2014 01:50 PM
ThinkScript: Three Line Break StockJock ThinkOrSwim Programming 0 December 16th, 2010 12:10 PM
Thinkscript Volatility Indicator tosmonkey ThinkOrSwim Programming 4 November 29th, 2010 05:29 PM


All times are GMT -4. The time now is 11:34 PM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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 2017-12-17 in 0.13 seconds with 20 queries on phoenix via your IP 54.221.73.186