MACDouble & StochRSI w/ safeties and variable time interval v0.3UPDATE:
IMPORTANT!!! MAKE SURE "RECALCULATE AFTER ORDER FILLED" IS CHECKED. I will have it on by default in the future.
This is a continuation of my previous scripts of two MACD indicators with a Stochastic RSI indicator.
New features:
- Alternate MACD time interval
You can now set the time interval for the second MACD indicator to a different resolution than the displayed chart.
Uncheck the box and select the desired interval. For example, if your chart is set to 15min then first MACD will be set at 15 min and you can select 5 min for the second MACD.
- Alternate StoRSI time interval
You can (and should) set the StochRSI to a different time interval as well. StochRSI hasn't worked great with previous versions. Now you can set it to a different time resolution as well. I strongly recommend you set it at a higher (slower) resolution; for example if your chart is set at 15min then you should test setting the StochRSI at 30 or 45min.
- ' True" StochRSI logic
Trading logic for StochRSI is now a true StochRSI, instead of just reading "k" and ignoring "d", K now has to be greater than D to buy and less than to sell.
- Safeties
A primitive but low risk safety in the form of an uptrend/downtrend price safety. If current close+high isn't greater than the previous close and high then the buy order will not be executed. The same applies for sell orders.
- Cap on losses from short positions
A stop loss safety set to 9000 for exiting sell positions. This will need refinement in the future but this puts a cap on losses from any sell position. At an initial currency of 10,000 this translates to 90.00. If it is giving you problems simply delete line 78 from the source code.
Please feel free to ask any questions or send me suggestions. This is still very much a work in progress and I'll try to polish up the rough spots but it is fully functional. With a slower StochRSI and the safeties I have gotten it to consistently outperform the old 2x MACD strategy script---typically by 3-fold.
Стохастический осциллятор
Stochastic RSI - MTF - Up/down colours - 4hr default - squattterStochastic RSI - MTF - Up/down colours - 4hr (240) default
Stochastic CCI MTF w/ UP/DOWN colours - squattterStoch CCI has a nicer divergence than Stoch RSI.
Enjoy!
Stochastic CCI MTF w/ UP/DOWN colours - squattterStoch CCI has nicer divergences than Stoch RSI.
Enjoy.
KT_Smooth_StochasticI normally don't publish my indicators. However, I couldn't find a smoothed stochastic on TradingView officially or unofficially. This is a standard implementation of a smoothed Fast Stochastic where %K and %D are calculated and then smoothed by n periods. This helps to reduce chop and gives better extreme signals.
I have defaulted the indicator to use commonly used settings where %K is over 14 periods, %D is over 7 period, and the smoothing factor is 3 periods. I have also defaulted the extreme lines to an upper band of 80, mid band of 50, and lower band of 20. However, my favorite settings are %K = 10, %D = 10, Smooth = 3, upper band = 75, mid band = 50, and lower band = 25.
Sniper Stochastics 2 Sniper Stochastics 2 is like the other one - a triple stochastics consisting of different lengths, in this case 55,89,144.
One thing I noticed was that the stochastics lines can be a kind of divergence detector with the slow (red), medium (blue) and fast(black) lines making breakaways once they converge.
For example, if the lines are together and the black line starts to diverge upwards, it means that there is a positive divergence which will happen quickly and then end. The blue and the red lines are longer term divergences.
I wanted to share this one and the unique and interesting use of divergences with this indicator.
Rob RSI Stoch MACD Combo Alert//Created by Robert Nance on 5/28/16. Additional credit to vdubus.
//This was a special request from rich15stan. It combines my original RSI Stoch extremes with vdubus’ MACD VXI.
//This script will give you red or green columns as an indication for oversold/overbought,
//based upon the rsi and stochastic both being at certain levels. The default oversold is at 35.
//If Stochastic and RSI fall below 35, you will get a green column. Play with your levels to see how
//your stock reacts. It now adds the MACD crossover, plotted as a blue circle.
Super StochSuper Stoch Update
// Short Name Changed To "SS 3.0"
// Added a third StochRSI.
// Default resolutions S1= W, S2= D, S3= 240 (4H)
// Signal function for all StochRSI's.
// Made a Variety of Cosmetic Changes
Super StochAdded signal functionality to StochRSI 2
Set Default Resolution of StochRSI 1 to "D" and StochRSI 2 to "240"
Stochastic HistogramLast Edited: 5/19/16
Description:
This is a basic Stochastic histogram that essentially shows when the indicator
is either above or below the 50 level. Colors can be customized to your liking.
Length and smoothing factor can be adjusted as well. Defaults are 14 (Length)
and 3 (Smoothing Factor).
NOTE: The above chart contains the built-in stochastic indicator for comparison.
Stochastic Weighted Average for use on H1A weighted average of Hourly, Daily, Weekly and Monthly Stochastic.
SMI BarsUses SMI (Stochastic Momentum Index) to set bar colors:
When SMI above overbought, bar color is red.
When SMI is between 0 and overbought, bar color is maroon
When SMI is between oversold and 0, bar color is green
When SMI is below oversold, bar color is lime.
When SMI crosses above or below 0, bar color is orange.
MACD + Stochastic, Double Strategy (by ChartArt)This strategy combines the classic stochastic strategy to buy when the stochastic is oversold with a classic MACD strategy to buy when the MACD histogram value goes above the zero line. Only difference to the classic stochastic is a default setting of 71 for overbought (classic setting 80) and 29 for oversold (classic setting 20).
Therefore this strategy goes long if the MACD histogram goes above zero and the stochastic indicator detects a oversold condition (value below 29). If the inverse logic is true, the strategy goes short (stochastic overbought condition with a value above 71 and the MACD histogram falling below the zero line value).
Please be aware that this pure double strategy using simply two classic indicators does not have any stop loss or take profit money management logic.
All trading involves high risk; past performance is not necessarily indicative of future results. Hypothetical or simulated performance results have certain inherent limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not actually been executed, the results may have under- or over-compensated for the impact, if any, of certain market factors, such as lack of liquidity. Simulated trading programs in general are also subject to the fact that they are designed with the benefit of hindsight. No representation is being made that any account will or is likely to achieve profits or losses similar to those shown.
StochRSI overSold/Bought alerts - by squattterDepending on the new trend - Fisher 100 crossing 0;
Set an alert on each Long/Short "crossing down", 0.8 (or anything below 0.99), "on condition"
[STRATEGY][RS]MarxBabu 4 Oscillators V0EXPERIMENTAL:
fixed some mixed signals :p
request for MarxBabu.
[RS]Khizon (DWTI) Strategy V0Request for Khizon01:
corrected a issue with the default stoch rsi settings (14 smoothing when it should be 3), can always change back since the 14 settings were better performing at the current chart.
added option to just open buy trades or sell trades separately and close were previously swing trade occur.
added plot titles.
Stochastic In BandsWhat about to display Stochastic Oscilator in EMA-ATR Bands? If you like the idea I would code advanced version
Stochastic + RSI, Double Strategy (by ChartArt)This strategy combines the classic RSI strategy to sell when the RSI increases over 70 (or to buy when it falls below 30), with the classic Stochastic Slow strategy to sell when the Stochastic oscillator exceeds the value of 80 (and to buy when this value is below 20).
This simple strategy only triggers when both the RSI and the Stochastic are together in a overbought or oversold condition. The one hour chart of the S&P 500 worked quite well recently with this double strategy.
By the way this strategy should not be confused with the 'Stochastic RSI', which measures the RSI only.
All trading involves high risk; past performance is not necessarily indicative of future results.