Thinkscripts - ThinkOrSwim Programming | futures io social day trading
futures io futures trading


Thinkscripts
Updated: Views / Replies:39,418 / 105
Created: by optntdr13 Attachments:31

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

Thinkscripts

  #61 (permalink)
Elite Member
philadelphia USA
 
Futures Experience: Intermediate
Platform: TOS, Sierra Chart
Broker/Data: TD Ameritrade, Infinity Futures
Favorite Futures: options, Russell emini futures
 
Posts: 74 since May 2011
Thanks: 50 given, 51 received

EMA colored line - for angle

Go into the code and change green to, let's say, orange and red to pink.


DailyEMA.AssignValueColor(if DailyEMA > DailyEMA[1] then color.orange else color.pink);

Reply With Quote
 
  #62 (permalink)
Knowledge Seeker
Dubai, UAE
 
Futures Experience: Intermediate
Platform: TOS, TradeStation
Broker/Data: OX, TradeStation
Favorite Futures: Stocks & Basic Options
 
RedK's Avatar
 
Posts: 171 since May 2012
Thanks: 44 given, 138 received


bldrmtnman View Post
is there a simple way to make that a selectable color for the two colors? I find there is too much red and green employed elsewhere in the chart, so it makes the EMA too similar to other indicators, making it difficult to differentiate between them.

@bldrmtnman, there you go .. this way you can set the Up/Down colors from the study settings

 
Code
input price = FundamentalType.CLOSE;
input aggregationPeriod = AggregationPeriod.DAY;
input length = 9;
input displace = 0;
input showOnlyLastPeriod = no;

plot DailyEMA;

if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
DailyEMA = Double.NaN;
} else {
DailyEMA = Expaverage(fundamental(price, period = aggregationPeriod)[-displace], length);
}

DailyEMA.DefineColor ("Up", Color.Green);
DailyEMA.DefineColor ("Down", Color.Red);
DailyEMA.AssignValueColor(if DailyEMA > DailyEMA[1] then DailyEMA.Color("Up") else DailyEMA.Color("Down"));
DailyEMA.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);

hope this helps .. sorry if i can't help further.. i stopped using ToS,

RedK

Reply With Quote
The following 2 users say Thank You to RedK for this post:
 
  #63 (permalink)
Elite Member
San Diego CA
 
Futures Experience: Beginner
Platform: TOS
Favorite Futures: StocKs
 
Posts: 26 since May 2012
Thanks: 14 given, 5 received

hope this helps .. sorry if i can't help further.. i stopped using ToS,


REDK,

What happened? Why no more TOS?

Reply With Quote
 
  #64 (permalink)
Trading Apprentice
Oakhurst CA USA
 
Futures Experience: Beginner
Platform: Think or Swim
Favorite Futures: SPY
 
Posts: 3 since Jul 2012
Thanks: 3 given, 1 received


RedK View Post
@bldrmtnman, there you go .. this way you can set the Up/Down colors from the study settings

 
Code
input price = FundamentalType.CLOSE;
input aggregationPeriod = AggregationPeriod.DAY;
input length = 9;
input displace = 0;
input showOnlyLastPeriod = no;

plot DailyEMA;

if showOnlyLastPeriod and !IsNaN(close(period = aggregationPeriod)[-1]) {
DailyEMA = Double.NaN;
} else {
DailyEMA = Expaverage(fundamental(price, period = aggregationPeriod)[-displace], length);
}

DailyEMA.DefineColor ("Up", Color.Green);
DailyEMA.DefineColor ("Down", Color.Red);
DailyEMA.AssignValueColor(if DailyEMA > DailyEMA[1] then DailyEMA.Color("Up") else DailyEMA.Color("Down"));
DailyEMA.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);

hope this helps .. sorry if i can't help further.. i stopped using ToS,

RedK

RedK,

Thanks, sorry to hear you've moved away from the TOS platform. Care to tell why? I'm a neophyte and have settled on the platform for its versatility and its platform independence (ie, Mac, PC, iphone, ipad) trading options and every other instrument I think I might trade.

Would be interested to find out why it was lacking in your view.

thanks again for the assist.

Reply With Quote
The following user says Thank You to bldrmtnman for this post:
 
  #65 (permalink)
Elite Member
New York City New York USA
 
Futures Experience: Intermediate
Platform: Think or Swim, Infinity Futures
Broker/Data: Thinkor Swim for Charts an Infinity Futures for Trading Dom
Favorite Futures: Oil
 
Posts: 51 since Jul 2012
Thanks: 448 given, 45 received

Study Colors

RedK,
Yes.... is there a way to just have the color box with all the possible colors come up like in there regular TOS studies this way we could pick whatever colors we want that would solve the problem and make it easy for everyone.

Hguru

Reply With Quote
 
  #66 (permalink)
Knowledge Seeker
Dubai, UAE
 
Futures Experience: Intermediate
Platform: TOS, TradeStation
Broker/Data: OX, TradeStation
Favorite Futures: Stocks & Basic Options
 
RedK's Avatar
 
Posts: 171 since May 2012
Thanks: 44 given, 138 received


pbenson68 View Post
REDK,

What happened? Why no more TOS?

@pbenson68 & @bldrmtnman,
should have said, the "platform departed with me" .. TDAm decided to stop business for certain international locations, it so happens i'm currently "job based" in one of them .. you can check my journal for more on the story.. in short i was asked to close my account and move out, which i did. then my access to ToS is now deactivated ..

i do respect the business rules of companies like TDAm, and appreciate that their exec's strives to bring the best value to shareholders, however i have the right to disagree with the business strategy to achieve that (and that would be irrelevant to TDAm anyways). i firmly beleive it doesn't make any business sense for a company to burn the money they previously invested to attract clients (my estimation, given the advertising cost, Dmails, sign-up bonus, support & backoffice staff man-hours, infra cost..etc) may be somewhere above $1K per client.. and also leave these clients with a bad taste. but then, if the board of a large corp like TDAm thinks this is the right way things should be, who am I to say otherwise.

on the platform, it's one of the best in my "limited" expereince, for viewing, analysis and customizing the way you trade around stocks and options, for those like me who want to avoid C++/C# and complex coding languages. futures, forex ..etc are a different story.

The brokerage service, order execution, data feed and client support quality levels (incl the backoffice staff when you need/have to deal with compliance, tax, transfer depts), in my view and the expereinces i had, leaves a big room for improvement and i would rate them as far below 21st century world. but that's my personal view and my short (1.5 year) expereince with them .. so totally subjective. a quick google search can provide details on these specifics from many ex-TDAm clients.

i still owe it to ToS (referring to the software) for teaching me so much.. clean & precise help files, expert presenters daily in the Swimlesson sessions.. etc .. From a brokerage service side of things, happier that i moved to another broker.. at one point in time, i felt my monet wasn't safe there and that makes you lose sleep (allow me to skip the reasons).. can't continue with a broker once it gets to that level.. i will continue to love ToS and if there's a chance, write/test my setups & scripts on it.

after moving out, i wanted to sum up my expereince and share for the possible benefit of others.. i hope i did this, in a non-emotional way, the goods and the bads, while skipping the useless details ..

so thank you for asking,
RedK

Reply With Quote
The following 2 users say Thank You to RedK for this post:
 
  #67 (permalink)
Elite Member
desert CA
 
Futures Experience: Intermediate
Platform: NT7, TOS
Broker/Data: AMP/wCQG, TDA
Favorite Futures: CL,YM
 
Posts: 2,027 since Jul 2011
Thanks: 2,211 given, 1,551 received

Hi Redk, thanks for the trade ribbon indicator. I'm working on translating it to NT. The idea of taking another average on the WMA looks very interesting and helpful when graphically shown. Could be a nice scalping indicator.

TOS is one of the best all-for-one platforms today I would agree. It was my first broker and platform. They recently opened up new commodity futures and other chat rooms yesterday where live audio can be heard from the pit floor.


Last edited by Cloudy; October 13th, 2012 at 04:45 PM.
Reply With Quote
The following user says Thank You to Cloudy for this post:
 
  #68 (permalink)
Knowledge Seeker
Dubai, UAE
 
Futures Experience: Intermediate
Platform: TOS, TradeStation
Broker/Data: OX, TradeStation
Favorite Futures: Stocks & Basic Options
 
RedK's Avatar
 
Posts: 171 since May 2012
Thanks: 44 given, 138 received

@Cloudy, thanks for that .. i know some on the forum will appreciate your effort converting to NT ..

another intriguing concept i also looked at is to use a single WMA of some length and combine it with same WMA length but shifted by one period. You get signals from the crossing..

a quick note, in the Trader_Ribbon, the Mid line has a big role though, as it acts as a "reversal threshold" .. so can be used to indicate exit loss levels.

glad you find value in that concept,
RedK

Reply With Quote
The following 2 users say Thank You to RedK for this post:
 
  #69 (permalink)
Elite Member
Kansas City MO
 
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: Stocks
 
Posts: 35 since Oct 2012
Thanks: 262 given, 17 received

I'm looking for something like this...


optntdr13 View Post
I just wanted to let folks know that if you are looking for something specific, chances are I have it or wrote it and am more than happy to share with any and all. If you would like to have any T.....D......ARK stuff, I have coded almost every single one of them but won't share publically due to the maketstudies goons I will however send via PM or e-mail and am happy to do so.

TF trading using CCI method-it works
Although this is for TF futures, it works as well for all futures. My setup includes double BB at 20, 2 and 2.5; 20, 31, & 62 EMAs; Stochastics Slow of 6,5,3 and 8,3,3 on same plane as price; and most important, is the CCI (Commodity Channel Index) at 14, -45, 45 on a histogram display. I go long (Buy)on the first CCI bar that closes over 45 or Short (Sell) on the first CCI bar below -45(-45 to -200) You can use it to trade everything on any time frame. Once you have looked at enough charts on this setup, the trades and its accuracy will be clear. Trading just the TF on 12-20-10, there were 8 winning trades and no loses for a total of 132 ticks. There is one other aspect of my CCI trading I have not yet disclosed and you can pick it up after looking at the level of the CCI bars and there relationship to one another at reversals. I promise you, this is a winning system. I should add that this works on continuation trades and reversals. Trade with the trend on continuation trades and against the trend on reversals. Particularly on the reversal trades, move the stop to protect gains, as the market can always continue in its original direction and trend, but most often it does not until the CCI shows it is. I use the 20SMA, 20EMA, 31EMA to show the trends. The 20SMA is found in the BBs.
WK

Attached Thumbnails
Thinkscripts-image.jpg  
Reply With Quote
The following user says Thank You to Fourwedge for this post:
 
  #70 (permalink)
Elite Member
Kansas City MO
 
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: Stocks
 
Posts: 35 since Oct 2012
Thanks: 262 given, 17 received

The cci method above


Comes from the trades hideout... index futures trading thread


I would also like some help getting the cci cloud to change the colors of the candles at +/- 45 to the color of the cloud itself. Any thing between +/- 45 is white. And there fore the candles are white as well?

I'm new to script and am looking for some help. Thanks in advance to everyone for patience with a noob.

Fourwedge

Attached Thumbnails
Thinkscripts-image.jpg  
Reply With Quote

Reply



futures io > > > > > Thinkscripts

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
     


All times are GMT -4. The time now is 02:37 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-16 in 0.15 seconds with 19 queries on phoenix via your IP 54.163.209.109