Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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 :
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
#
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 )
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?
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://www.yahoo.com/
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:
I get a lot of requests for help building strategies. Many of which are repeats of other requests. I am starting this thread to handle many of these requests as the public building and revising of strategies would certainly help the community. Please …