Stochs on the chart vs as lower study - TradeStation | futures io social day trading
futures io futures trading

Stochs on the chart vs as lower study
Updated: Views / Replies:374 / 0
Created: by trendfriendpa 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 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

Stochs on the chart vs as lower study

  #1 (permalink)
Elite Member
philadelphia USA
Trading 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, 52 received

Stochs on the chart vs as lower study

Thanks to whomever will code this for TS

# = code not being used but in script or a comment

# study includes color candle changes based on overbought/oversold condition of 3X

declare upper;

input K_period = 16;
input D_period = 6;
input SlowTrendLength = 3;
input smoothing_type = { default EMA, SMA, WMA };
input stochastic_type = { FAST, default SLOW };
input over_bought = 75;
input over_sold = 25;
input show_bubbles = yes;
input show_sec_bbls = no;
input show_alerts = yes;

def aggPer = getAggregationPeriod();
def adjAggPer = if aggPer == AggregationPeriod.MIN then
else if aggPer == AggregationPeriod.TWO_MIN then
else if aggPer == AggregationPeriod.THREE_MIN then
else if aggPer == AggregationPeriod.FOUR_MIN then
else if aggPer == AggregationPeriod.FIVE_MIN then
else if aggPer == AggregationPeriod.TEN_MIN then
else if aggPer == AggregationPeriod.FIFTEEN_MIN then
else if aggPer == AggregationPeriod.TWENTY_MIN then
else if aggPer == AggregationPeriod.THIRTY_MIN then
else if aggPer == AggregationPeriod.HOUR then
else if aggPer == AggregationPeriod.TWO_HOURS then
else if aggPer == AggregationPeriod.FOUR_HOURS then
else if aggPer == AggregationPeriod.DAY then
else if aggPer == AggregationPeriod.TWO_DAYS then
else if aggPer == AggregationPeriod.THREE_DAYS then
else if aggPer == AggregationPeriod.FOUR_DAYS then
else if aggPer == AggregationPeriod.WEEK then
else if aggPer == AggregationPeriod.MONTH then

def _kPeriod;
def _dPeriod;
def _slowTrendLength;
if aggPer == AggregationPeriod.MONTH then {
_kPeriod = K_period * 3;
_dPeriod = D_period * 3;
_slowTrendLength = SlowTrendLength * 3;
} else {
_kPeriod = K_period;
_dPeriod = D_period;
_slowTrendLength = SlowTrendLength;

def priceH = high( period = adjAggPer );
def priceL = low( period = adjAggPer );
def priceC = close( period = adjAggPer );

def lowest_low = lowest( low, _kPeriod );
def highest_high = highest( high, _kPeriod );
def fastK = if ( highest_high - lowest_low ) <= 0 then 0 else 100 * ( close - lowest_low ) / ( highest_high - lowest_low
def fastD = if smoothing_type == smoothing_type.EMA then ExpAverage( fastK, _dPeriod ) else Average( fastK,
_dPeriod );
def slowK = fastD;
def slowD = if smoothing_type == smoothing_type.EMA then ExpAverage( slowK, _dPeriod ) else Average( slowK,
_dPeriod );

plot stochD = if stochastic_type == stochastic_type.FAST then fastD else slowD;
stochD.SetPaintingStrategy( PaintingStrategy.POINTS );
stochD.AssignValueColor( if stochD >= stochD[1] then else if stochD < stochD[1] then Color.Magenta else
Color.GRAY );

#---Reference lines

plot OverBought = over_bought;
OverBought.SetDefaultColor( Color.BLACK );
def Hundred = 100;
AddCloud( OverBought, Hundred, Color.RED, Color.RED );

plot OverSold = over_sold;
OverSold.SetDefaultColor( Color.BLACK );
def Zero = 0;
AddCloud( OverSold, Zero, Color.Yellow, Color.Yellow );

# Plot Arrows on the 50 line
# Marks Green Dot only if period previous to Green Dot was below 25
# Marks Red Dot only if period previous to Red Dot was above 75

def MoveUp = stochD[1] <25 and stochD > stochD[1] and stochD[1] < stochD[2];
def MoveDown = stochD[1] > 75 and stochD < stochD[1] and stochD[1] > stochD[2];

#plot ArrowUp = if MoveUp then 50 else double.nan;

#plot ArrowDn = if MoveDown then 50 else double.nan;

# AddLabel to show the value of the Exponential Average
# AddLabel(yes, AsText(expAvg1, NumberFormat.TWO_DECIMAL_PLACES), Color.PLUM);

# Changes color of Candles

AssignPriceColor(if slowK > 75 then Color.BLUE else if slowK < 25 then color.magenta else color.current);

If prefer not to post eld file, please PM the eld file to me.


Attached Thumbnails
Stochs on the chart vs as lower study-stochs-chart.jpg  
Reply With Quote


futures io > > > > Stochs on the chart vs as lower study

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Journal Challenge $1600 in Prizes & Free Journalytix for all participants!


3 Excellent Entries, and How To Automate Them w/Kevin Davey

Feb 21

The Driving Force Behind the Market w/Earn2Trade

Mar 5

TBA w/Stage5 & iSystems

Mar 12

TBA w/John Grady @ No BS Day Trading

Mar 19

Day Trading Oil Futures: Reducing Risk & Increasing Profits w/DTN IQFeed

Mar 26

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lower Study - from an infomercial HELP fliparch ThinkOrSwim 2 August 22nd, 2015 12:07 PM
plotting the difference between two moving averages as a lower study in ToS StephenAndersen ThinkOrSwim 6 March 2nd, 2015 03:25 AM
Double Stochs for TOS KySt ThinkOrSwim 3 January 22nd, 2015 10:51 PM
Trouble getting study to display on chart JamieTX Sierra Chart 1 November 10th, 2012 05:56 AM
Study on Chart Pattern LukeGeniol The Elite Circle 22 June 13th, 2011 09:47 PM

alerts, code, eld, ema, futures, oscillator, sma, stochastics, thinkorswim, tradestation, type

All times are GMT -4. The time now is 05:53 AM. (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 WhatsApp Business,
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 2019-02-20 in 0.20 seconds with 15 queries on phoenix