Converting a Thinkorswim (Java-based) indicator into a Python script? - Matlab, R project and Python | futures io social day trading
futures io futures trading


Converting a Thinkorswim (Java-based) indicator into a Python script?
Updated: Views / Replies:631 / 1
Created: by ClutchAce Attachments:0

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
 
Thread Tools Search this Thread
 

Converting a Thinkorswim (Java-based) indicator into a Python script?

  #1 (permalink)
Trading Apprentice
Cookeville, TN
 
Futures Experience: Advanced
Platform: R|Trader, Thinkorswim
Favorite Futures: CL, RB, 6E, ZB, DX
 
Posts: 41 since Oct 2011
Thanks: 10 given, 15 received

Converting a Thinkorswim (Java-based) indicator into a Python script?

Anyone with experience translating Thinkorswim's thinkscript into a Python script? I'm mostly through the phase of matching up equivalent functions in Python and noting syntax quirks, but there's still some 'glue' of the coding which I'm unsure of.

Examples from thinkscript:
1) CompoundValue(int length, IDataHolder visible data, IDataHolder historical data) functions in Thinkscript are calculated per ToS reference "according to the following rule: if a bar number is greater than length then the visible data value is returned, otherwise the historical data value is returned. This function is used to initialize studies with recursion."
-> I can substitute this with if-else (nested) conditionals, I think...

2) Switch-case statements don't exist in Python. Googling "switch case python" yields several links that go into a workaround for Python


So, just looking for anyone to share ideas for translating this correctly.


Last edited by ClutchAce; July 7th, 2016 at 05:57 PM.
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.


Reply



futures io > > > > Converting a Thinkorswim (Java-based) indicator into a Python script?

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
Python Script to see which contract has the most volume Aufidius Matlab, R project and Python 1 July 23rd, 2015 02:57 PM
Converting time based charts to volume and tick based charts SeanKozak Commodities Futures Trading 1 April 1st, 2014 10:05 PM
Help with converting ToS script into Easylanguage (Volatility/STDeviation Indicators) mhc217 EasyLanguage Programming 1 January 11th, 2014 10:19 PM
Converting an eSignal Study to Thinkorswim zenmaster101 ThinkOrSwim Programming 3 March 1st, 2012 06:17 PM
Needed Bid / Ask bar script for thinkorswim Rad4633 ThinkOrSwim 3 October 8th, 2011 03:05 PM


All times are GMT -4. The time now is 11:01 AM.

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-18 in 0.08 seconds with 19 queries on phoenix via your IP 54.226.113.250