SMA_HISTO for thinkorswim - ThinkOrSwim | futures io social day trading
futures io futures trading

SMA_HISTO for thinkorswim
Updated: Views / Replies:315 / 1
Created: by alagrande 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 100,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

Thread Tools Search this Thread

SMA_HISTO for thinkorswim

  #1 (permalink)
glendale ca usa
Posts: 49 since Sep 2017
Thanks: 2 given, 40 received

SMA_HISTO for thinkorswim


input Length3 = 14;
input MovAvgLength = 9;

def highest3 = Highest(high, Length3);
def lowest = Lowest(low, Length3);
def data = if highest3 == lowest then -100 else (highest3 - close) / (highest3 - lowest) * (-100);
def PercentR_SMA = if( data > 0, 0, data);

plot SMA = 10*Average(data =PercentR_SMA, length = MovAvgLength) +500; #*.1 +50;

input Length4 = 14;
input MovAvgLength4 = 14;

def highest4 = Highest(high, Length4);
def lowest4 = Lowest(low, Length4);
def data4 = if highest4 == lowest4 then -100 else (highest4 - close) / (highest4 - lowest4) * (-100);
def PercentR_SMa4 = if( data4 > 0, 0, data4);

plot SMA4 = 10*Average(data =PercentR_SMA4, length = MovAvgLength4) +500; #*.1 +50;

PLOT smO = WildersAverage(Floor(sma)) ;
PLOT sm1 = WildersAverage(ROUND(sma)) ;

addcloud(smo, sma, color.yellow, color.cyan);
addcloud(sma4, sma,,;
#smO.assignValueColor(if smo>0 then color.cyan else;

input length = 30;#70
input over_Sold = 20;
input over_Bought = 80;

def highest = Highest(high, length);
def divisor = highest - Lowest(low, length);
plot "%R" = if divisor equals 0 then 0 else 100 - 100 * (highest - close) / divisor;
plot OverBought = over_Bought;
plot OverSold = over_Sold;

"%R".DefineColor("OverBought", GetColor(1));
"%R".DefineColor("Normal", GetColor(7));
"%R".AssignValueColor(if "%R" > over_Bought then "%R".color("OverBought") else if "%R" < over_Sold then "%R".color("OverSold") else "%R".color("Normal"));

plot line0 = 0;
line0.setStyle (curve.MEDIUM_DASH);
line0.AssignValueColor(if "%R" > over_Bought then "%R".color("OverBought") else if "%R" < over_Sold then "%R".color("OverSold") else color.dark_gray);

#smo.AssignValueColor(if "%R" > over_Bought then "%R".color("OverBought") else if "%R" < over_Sold then "%R".color("OverSold") else color.dark_gray);


Reply With Quote
  #2 (permalink)
Market Wizard
Portland, OR
Trading Experience: None
Massive l's Avatar
Posts: 1,803 since Mar 2011
Thanks: 1,321 given, 3,076 received

Why's it amazing?

Reply With Quote


futures io > > > > SMA_HISTO for thinkorswim

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now

Webinar: The Seven Most Effective Trading Setups w/Peter Davies @ Jigsaw

Oct 17

Similar Threads
Thread Thread Starter Forum Replies Last Post
VSA for ThinkorSwim cbritton ThinkOrSwim Programming 430 December 11th, 2018 02:50 AM
Renko charts or indicator for Thinkorswim. Is it possible? trader555 ThinkOrSwim Programming 8 March 1st, 2016 10:53 AM
ThinkOrSwim (TOS) Trading Platform Big Mike ThinkOrSwim 30 July 24th, 2011 08:43 AM
Auto futures trading on ThinkorSwim optionzen ThinkOrSwim Programming 6 June 3rd, 2011 03:36 PM
Seemingly unsolvable error messages in ThinkorSwim Alerts Txurruka ThinkOrSwim Programming 1 October 13th, 2010 10:04 AM

All times are GMT -4. The time now is 06:58 PM. (this page content is cached, log in for real-time version)

Copyright © 2019 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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