ThinkScript Help needed with a simple strategy - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


ThinkScript Help needed with a simple strategy
Updated: Views / Replies:802 / 7
Created: by Pongor 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
 

ThinkScript Help needed with a simple strategy

  #1 (permalink)
Trading Apprentice
Austin + TX/USA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Futures
 
Posts: 5 since May 2015
Thanks: 0 given, 0 received

ThinkScript Help needed with a simple strategy

I am trying to learn how to program a strategy for ThinkorSwim but I am either not very suited to programming or just plain dumb.

I am trying to enter a trade long if the current price is 5 ticks above an SMA but have had issues trying to work out the code. I have a Fast SMA Envelope on my chart with a third slow SMA. If the price is five ticks above the upper SMA and the envelope is above the slow SMA then enter long with a trailing stop 2 ticks below the lower Fast SMA in the envelope. And vice versa for a short entry. It is a simple trending strategy that I want to test on a number of different contracts but having issue with the automated trade entry semantics.

This is what I have so far.

# Input Declarations:
#
input opentime = 0830;
input closetime = 1600;
input priceHigh = high;
input priceLow = low;
input priceClose = close;

input lengthFast = 5;
input lengthSlow = 50;

input entry_price = 5.0;

input displace = 0;

plot SMA_High = Average(priceHigh[-displace], lengthFast);
SMA_High.SetDefaultColor(GetColor(8));

plot SMA_Low = Average(priceLow[-displace], lengthFast);
SMA_Low.SetDefaultColor(GetColor(5));

plot SMA_Close = Average(priceClose[-displace], lengthSlow);
SMA_Close.SetDefaultColor(GetColor(1));

Thanks in advance to anyone who can shove me the right direction.

Reply With Quote
 
  #2 (permalink)
Membership Temporarily Revoked
Joaquin Texas
 
Futures Experience: Intermediate
Platform: Thinkorswim
Broker/Data: Etrade
Favorite Futures: Options
 
Posts: 8 since May 2015
Thanks: 0 given, 1 received

Hello there, has anyone given you a hand yet. I am going to take a look at what you are trying to setup today and will get back to you. I need the practice programming thinkscript and this seems like a fairly straightforward place to jump in. I'll post back with what I have for you to look at.

Regards,
David

Reply With Quote
 
  #3 (permalink)
Trading Apprentice
Austin + TX/USA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Futures
 
Posts: 5 since May 2015
Thanks: 0 given, 0 received



Dbjergins View Post
Hello there, has anyone given you a hand yet. I am going to take a look at what you are trying to setup today and will get back to you. I need the practice programming thinkscript and this seems like a fairly straightforward place to jump in. I'll post back with what I have for you to look at.

Regards,
David

Hi David,

Thanks for looking at this for me. I must admit that I have been tied up with study for college since I posted and haven't yet found a good ThinkScript tutorial course. I think the strategy is simple, it should be just for trending instruments. I appreciate any help you can provide. If you need more information on the strategy I can pm you a short document on it.

Thanks again

Pongor

Reply With Quote
 
  #4 (permalink)
Membership Temporarily Revoked
Joaquin Texas
 
Futures Experience: Intermediate
Platform: Thinkorswim
Broker/Data: Etrade
Favorite Futures: Options
 
Posts: 8 since May 2015
Thanks: 0 given, 1 received

Converse


Pongor View Post
Hi David,

Thanks for looking at this for me. I must admit that I have been tied up with study for college since I posted and haven't yet found a good ThinkScript tutorial course. I think the strategy is simple, it should be just for trending instruments. I appreciate any help you can provide. If you need more information on the strategy I can pm you a short document on it.

Thanks again

Pongor

Do you have a few minutes young man

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
Austin + TX/USA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Futures
 
Posts: 5 since May 2015
Thanks: 0 given, 0 received


Dbjergins View Post
Do you have a few minutes young man

Yes sir, how may I help

Reply With Quote
 
  #6 (permalink)
Membership Temporarily Revoked
Joaquin Texas
 
Futures Experience: Intermediate
Platform: Thinkorswim
Broker/Data: Etrade
Favorite Futures: Options
 
Posts: 8 since May 2015
Thanks: 0 given, 1 received

Apple's to Apple's

Just to make sure we are using the same terminology could you email me the strategy doc that you mentioned. The programming Is the part I understand I am still learning some of the aspects of how the studies and strategies mathematical formulas are setup. I appreciate you letting me help with this. I started working with thinkscript a few months ago and really enjoy this part of it as much as the trading. It's not going to be difficult to set this up just about anyway you want it and add a few gizmos for fine tuning and customization. And it gives me some good practice in an area of TS that I haven't dealt with yet. My email is dbjergins at outlook dot com. This stupid forum wouldn't let me post my email so I had to type it goofy like that....sorry. I'll get right on it and try to have you something to check out in just a little bit.

thanks again and I hope school is going well
David

Reply With Quote
 
  #7 (permalink)
Trading Apprentice
Austin + TX/USA
 
Futures Experience: Beginner
Platform: ThinkorSwim
Favorite Futures: Futures
 
Posts: 5 since May 2015
Thanks: 0 given, 0 received

Sent David

Reply With Quote
 
  #8 (permalink)
Trading Apprentice
chicago+il
 
Futures Experience: Intermediate
Platform: ThinkorSwim
Favorite Futures: stocks
 
Posts: 2 since Jun 2015
Thanks: 0 given, 0 received

Need help on Thinkscript

I'm trying to write a code for scanning for :-

- stocks that have reached their all time low.

and another code

-stocks that are 3% away from reaching their all time low.

is there anyone out there that could help me out?

Thank you

Reply With Quote

Reply



futures io > > > > > ThinkScript Help needed with a simple strategy

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
Simple line drawing NT indicator needed silver99 Hire a Consultant or Programmer 0 August 21st, 2014 01:40 PM
Help with very basic ThinkScript Strategy snipsta ThinkOrSwim Programming 6 August 6th, 2013 10:52 PM
Help converting thinkscript strategy to NT strategy bhavn008 NinjaTrader Programming 1 November 25th, 2012 12:46 PM
thinkScript Programmer needed aamarx ThinkOrSwim Programming 0 March 29th, 2012 12:47 PM
Simple strategy vast NinjaTrader Programming 19 August 5th, 2010 06:39 PM


All times are GMT -4. The time now is 08:09 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-15 in 0.11 seconds with 19 queries on phoenix via your IP 54.234.247.118