StochasticSlow <--- need help to modify it - ThinkOrSwim | futures io social day trading
futures io futures trading


StochasticSlow <--- need help to modify it
Updated: Views / Replies:3,253 / 4
Created: by khalid alshalan Attachments:2

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
 

StochasticSlow <--- need help to modify it

  #1 (permalink)
Trading Apprentice
Riyadh SaudiArabia
 
Futures Experience: Advanced
Platform: THINKORSWIM
Favorite Futures: stocks
 
Posts: 7 since Mar 2014
Thanks: 0 given, 0 received

StochasticSlow <--- need help to modify it

I need to change a Lower indicator to be an UP indicator with the candles with an arrow signals

the indicator in THINKORSWIM is named ( StochasticSlow ). it is a lower indicator as in the chart down :

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).


What I want to change are :

1- make this indicator UP with the candles.
2- remove Slow K.
3- make up arrow signal when the ( Slow D) crosses the oversell line up ---> arrow up ( means BUY )
4- make down arrow signal when the ( Slow D) crosses the overbuy line from up to down ---> ( means SELL )


If any one can make this changes her is the script :

===

#
# TD Ameritrade IP Company, Inc. (c) 2008-2014
#

declare lower;

input over_bought = 80;
input over_sold = 20;
input KPeriod = 10;
input DPeriod = 10;
input priceH = high;
input priceL = low;
input priceC = close;
input smoothingType = {Default SMA, EMA};

plot SlowK = reference StochasticFull(over_bought,over_sold,KPeriod,DPeriod,priceH,priceL,priceC,3,smoothingType).FullK;
SlowK.setDefaultColor(GetColor(5));

plot SlowD = reference StochasticFull(over_bought,over_sold,KPeriod,DPeriod,priceH,priceL,priceC,3,smoothingType).FullD;
SlowD.setDefaultColor(GetColor(0));

plot OverBought = over_bought;
OverBought.SetDefaultColor(GetColor(1));

plot OverSold = over_sold;
OverSold.SetDefaultColor(GetColor(1));

====


best regards ,,

Reply With Quote
 
  #2 (permalink)
Elite Member
Las Vegas
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Zen-Fire
Favorite Futures: ES
 
Posts: 14 since Jun 2009
Thanks: 65 given, 2 received

See if this works for you

1- make this indicator UP with the candles.
==> change declare to upper.
2- remove Slow K.
put ## in front of plot slowK

Dont know how to do 3, 4 yet.

3- make up arrow signal when the ( Slow D) crosses the oversell line up ---> arrow up ( means BUY )
4- make down arrow signal when the ( Slow D) crosses the overbuy line from up to down ---> ( means SELL )

Reply With Quote
 
  #3 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
 
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 384 since Oct 2010
Thanks: 3,597 given, 421 received


To hide a plot you can uncheck "Show Plot" in the preferences.

This is for arrows above as show on the attached image:

 
Code
input over_bought = 80;
input over_sold = 20;
input KPeriod = 10;
input DPeriod = 10;
input priceH = high;
input priceL = low;
input priceC = close;
input smoothingType = {Default SMA, EMA};

def SlowD = reference StochasticFull(over_bought,over_sold,KPeriod,DPeriod,priceH,priceL,priceC,3,smoothingType).FullD;
def OverBought = over_bought;
def OverSold = over_sold;


# ARROWS 
plot Up = if (Crosses(SlowD,OverSold)and SlowD > OverSold, close,double.nan);
Up.setLineWeight(5);
Up.setDefaultColor(color.green);
Up.setPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_UP);
Up.HideBubble();

plot Down = if (Crosses(slowD,OverBought)and slowD < OverBought, close,double.nan);
Down.setLineWeight(5);
Down.setDefaultColor(color.red);
Down.setPaintingStrategy(paintingStrategy.BOOLEAN_ARROW_DOWN);
Down.HideBubble();

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Reply With Quote
The following 2 users say Thank You to rmejia for this post:
 
  #4 (permalink)
Trading Apprentice
Vail, CO USA
 
Futures Experience: Intermediate
Platform: ThinkorSwim
Favorite Futures: options
 
Martzee's Avatar
 
Posts: 12 since Jan 2015
Thanks: 6 given, 8 received

Help with TOS programming

Hello rmejia,

I reviewed your code of adding arrows to the oscillator but I am having a problem with it as it tries to add those arrows into the same lower window as Stochastic is. When I change declaration to upper, it moves everything, even the Stochastic to upper window and it messes up the price chart. When the arrows are in the lower window, it messes up the stochastic chart.

I wanted to submit pictures but since I am new here I cannot do that.



I would like the arrows to be plotted in the same window as the stochastic oscillator is rather than in the price window. Is it possible and how to do that?

Actually I would like to have the same in MACD window. What I would like to achieve is the following:

1) If Stochastic SlowK crosses SlowD in overbought territory (above 85) plot a red arrow down in the stochastic window

2) If MACD value crosses Avg down plot a red in the MACD window

3) If Stochastic is Slowk crossed SlowD and MACD Value crossed Avg down plot red arrow in price chart

The price chart arrows will be plotted only if the steps #1 and #2 are true. That would be a sell signal, the buy signal would be the opposite.

I wanted to submit pictures but since I am new here I cannot do that.

I uploaded images to my website where you can look at them:

hellosuckers . net / images / StochStudy.png

and .

../ StochResult.png

Hope this will get you an idea what I want to achieve and hope this won't get me banned.


Is there a way to program it to generate buy and sell signals based on described above? Can anyone help?

Thanks a lot!

Martin

Reply With Quote
 
  #5 (permalink)
1.Fibs 2.??? 3.Profit
Puerto Rico
 
Futures Experience: Intermediate
Platform: thinkorswim
Broker/Data: TD Ameritrade
Favorite Futures: ES
 
rmejia's Avatar
 
Posts: 384 since Oct 2010
Thanks: 3,597 given, 421 received


Martzee View Post
I reviewed your code of adding arrows to the oscillator but I am having a problem with it as it tries to add those arrows into the same lower window as Stochastic is. When I change declaration to upper, it moves everything, even the Stochastic to upper window and it messes up the price chart. When the arrows are in the lower window, it messes up the stochastic chart.

I copy pasted the code to a new script and by default it placed itself in the "Price" area for studies since there was no "declare lower". To get it lower I had to move it, and to get it together with the Stochastics Slow had to put it there but the script I posted was quickly done with just the intention of having it in the price.

The OP asked for the same indicator in the yahoo! thinkscript group and Jaime Pinto gave him a nice complete package study. He did a PINTO_StochasticSlow study that looks like it does what you need. Here is the link to the thread:
https://groups.yahoo.com/neo/groups/TOS_thinkscript/conversations/topics/20332

I have not played around with Strategies in TOS forever but what you are asking for could perhaps be done there, if not it would be with 3 different studies. The strategies tool in TOS is very limited and has little control so many times a profitable strategy will not really be profitable because the entries and exits are not real. There is no way to automatically set TOS to buy and sell on signals and strategies. For that something like NinjaTrader could be used. There is a thread for NinjaTrader strategies that could provide some guidance on creating strategies:
https://futures.io/elite-circle/32758-want-your-ninjatrader-strategy-created-free.html

Attached Thumbnails
StochasticSlow &lt;--- need help to modify it-arrows.jpg  
Reply With Quote

Reply



futures io > > > > StochasticSlow <--- need help to modify it

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Linda Bradford Raschke: Reading The Tape

Elite only

Adam Grimes: TBA

Elite only

NinjaTrader: TBA

January

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help to modify this Indi hen78 NinjaTrader Programming 2 October 23rd, 2013 12:52 PM
BLUELINE DELIGHT >>>Intraday Trading Strategy Guide<<< Gabriyele The Elite Circle 407 May 30th, 2013 08:29 AM
looking to modify vroc and use in a scan. adross1 ThinkOrSwim Programming 2 February 25th, 2012 05:17 PM
this damn language <- learn dutchbookmaker Matlab, R project and Python 2 August 4th, 2011 01:10 PM


All times are GMT -4. The time now is 02:11 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-11 in 0.12 seconds with 20 queries on phoenix via your IP 54.226.34.209