B3 Stochastic Full w/BarColorNow with Bar Color!
The simplest upgrade to the classic indicator, old script:
B3 Stochastic Full
Also, if you like this one you may appreciate my personally modified take on the stochastic readings:
B3 Extended Stochastics
Stochastic Oscillator
Stochastic %BIt's a Stochastic indicator combined with Bollinger %B. This way you just need to check if it is above 1.0 or below 0.0 (Outside Bollinger Bands).
K/D DifferenceThis script provides a histogram for easier analysis of K D difference of a Stochastic oscillator.
RSI & StochasticA combination of RSI and Stochastic using default settings.
- RSI or Relative Strength Index is the white line.
- Stochastic %K is the aqua line
- Stochastic %D is the orange line
- The purple rectangle is the RSI range going from 30 (oversold) at the bottom to 70 (overbought)
- The top dotted line indicates the price being overbought on the stochastic
- The bottom dotted line indicates the price oversold on the stochastic
I mainly use both indicators to spot divergence/ potential upcoming turning points (tops or bottoms).
For example on the chart the white line shows the price of Bitcoin Rising
While the yellow line shows the stochastic declining and the red RSI stayed more or less at the same level.
Another way to use this indicator is to use the aqua line crossing above the orange line as an entry for a long trade this strategy is most useful when both are near the bottom of the range. The opposite is true for short trades but
both should be combined with other indicators such as moving averages support levels or volume for best results.
Generally RSI is more useful in trending markets & the stochastic is more useful in sideways or choppy markets.
AKMY Multiple StochasticsRefer Sample Chart for description - updated to version 4 and additional script suited with Author's trading setting which original script was inspired from script developed by Manu76
Stochastic Pop and Drop by Jake Bernstein v1 [Bitduke]I found a simple strategy by Jake Bernstein, modified it a little and created a strategy with Risk Management System (SL+TP); After that I test it on the different cryptocurrency pairs.
About the Indicator
Basically it's the strategy of 2 indicators: Stochastic Oscillator to define the bias and Average Directional Index to confirm it.
One again, It uses Stochastic Oscillator to define the trading bias. In particular, the trading bias was deemed bullish when the weekly 14-period Stochastic Oscillator was above some default value (in him paper - 50) and rising and vice versa.
Once the trading bias is established, Steckler used the Average Directional Index (ADX) to define a slowdown in the trend. ADX measures the strength of the trend and a move below 20 signals a weak trend.
Modifications
I didn't implement Average Directional Index (ADX) and test just different sources for data, oscillator periods and different levels in relation to the crypto market.
So, it shows good results with two tight thresholds at 55 and 45 level.
The bar chart below the defining the bullish and bearish periods (green and red) and gives a signal to enter the trade (purple bars).
Backtesting
Backtested on XBTUSD , BTCPERP (FTX) pairs. You may notice it shows good results on 3h timeframe.
Relatively low drawdown
~ 10% (from 2019 to date) FTX
~ 22% (4 years from 2016) Bitmex
I backtested on the different altcoin pairs as well, but the results were just not good.
Relatively good results were shown by some index pairs from the FTX exchange ( FTX:SHITPERP ), but I think there is a few data for backtesting to be asure in them.
Bitmex 3h (2017 - 2020) :
i.imgur.com
FTX 3h (2019 - 2020):
i.imgur.com
Possible Improvements
- Regarding trading algorithm it would be good to check with strategy with ADX somehow. Maybe for the better entries
- As for Risk Management system, it can be improved by adding trailing stop to the strategy.
Link: school.stockcharts.com
Dumb Indicator 21 - Function's Candlestick Bar's StyleThe idea is help traders to see the patterns and levels from a different point o view.
This script create candlestick using the opening, high, low and close price as source on your favorite function.
It's very simple to use:
Select a function in the drop box list, the number of bars length, check or uncheck the boxes to treat source as logarithm, smooth, and if you want to plot the SMA from the results.
To make a deeper analysis, you can select to plot the candles in Stochastic or in Percent Rank way.
The Stochastic and Percent Rank plot will show how far the price is close to highest or lowest value of the source from the last "Stochastic Length" number of bars.
Some functions with different names can plot the same results.
This indicator works on every kind of market, but you will need to find the best function and length to use.
Please, if you find anything good with this, share to everyone.
Better Stochastic RSI to find DivergencesThis indicator is a modified version of a stochastic RSI oscillator. I want to share this because it is really good for analysis of divergence between price action and the oscillator. You can also use it to trade overbought and oversold conditions.
To find out more what a divergences is when we talk about trading. Take a look at this: medium.com
How to pirnt out siganl price on candleHi, this is Yong from Mby_lab
this codes explain how print out signal price on candles.
only working on 4H timeframe.
Core code based on 3H timeframe so This time close show on 4H, realtime close.
if 3H close fixed, then it will show on 4H line break style and this is not show twice on candle cause like this
When 3H closed / 4H = realtime
4H closed / 3H = realtime
then like this
3am close show 4am candle
6am close show next 4H candle for 8am~
..
.....
enjoy this!
this codes can help solve timeframe / security issues.
//
LEAN ChangeLEAN = Difference between %K and %D values of stochastic
Change in LEAN is plotted over the bar as a "Circle"
RED Circle => LEAN is decreased from previous value
GREEN Circle => LEAN is increased from previous value
Value of LEAN can be viewed at data window.
Lane's Stochastics (yasujiy)This script is original Lane's Stochastics.
Default script uses SMA for %D, but this %D is calculated separately numerator and denominator.
GBP CopperThis is copper prices in GBP.
After noticing that the FTSE100 shot up in March 2018 very sharply and continued into May while the rest of the world seemed to take its time carrying on until September while the FTSE fell back after its May peak, I wonder if the price of copper had any effect.
So here's the price of Copper in GBP.
TradingView Alerts to MT4 MT5 + dynamic variables NON-REPAINTINGAccidentally, I’m sharing open-source profitable Forex strategy. Accidentally, because this was aimed to be purely educational material. A few days ago TradingView released a very powerful feature of dynamic values from PineScript now being allowed to be passed in Alerts. And thanks to TradingConnector, they could be instantly executed in MT4 or MT5 platform of any broker in the world. So yeah - TradingConnector works with indices and commodities, too.
The logic of this EURUSD 6h strategy is very simple - it is based on Stochastic crossovers with stop-loss set under most recent pivot point. Setting stop-loss with surgical precision is possible exactly thanks to allowance of dynamic values in alerts. TradingConnector has been also upgraded to take advantage of these dynamic values and it now enables executing trades with pre-calculated stop-loss, take-profit, as well as stop and limit orders.
Another fresh feature of TradingConnector, is closing positions only partly - provided that the broker allows it, of course. A position needs to have trade_id specified at entry, referred to in further alerts with partial closing. Detailed spec of alerts syntax and functionalities can be found at TradingConnector website. How to include dynamic variables in alert messages can be seen at the very end of the script in alertcondition() calls.
The strategy also takes commission into consideration.
Slippage is intentionally left at 0. Due to shorter than 1 second delivery time of TradingConnector, slippage is practically non-existing. This can be achieved especially if you’re using VPS server, hosted in the same datacenter as your brokers’ servers. I am using such setup, it is doable. Small slippage and spread is already included in commission value.
This strategy is NON-REPAINTING and uses NO TRAILING-STOP or any other feature known to be faulty in TradingView backtester. Does it make this strategy bulletproof and 100% success-guaranteed? Hell no! Remember the no.1 rule of backtesting - no matter how profitable and good looking a script is, it only tells about the past. There is zero guarantee the same strategy will get similar results in the future.
To turn this script into study so that alerts can be produced, do 2 things:
1. comment “strategy” line at the beginning and uncomment “study” line
2. comment lines 54-59 and uncomment lines 62-65.
Then add script to the chart and configure alerts.
This script was build for educational purposes only.
Certainly this is not financial advice. Anybody using this script or any of its parts in any way, must be aware of high risks connected with trading.
Thanks @LucF and @a.tesla2018 for helping me with code fixes :)
Apirine Stochastic MACD w/ MA Selection by Cryptorhythms📊 Apirine Stochastic MACD w/ MA Selection by Cryptorhythms
Intro
Had to re-release due to moderation.
This happens to be my first open source indicator, hope you all enjoy it!
Description
This indicated is ported from November 2019 issue of TASC. “The Stochastic MACD Oscillator” in this issue, author Vitali Apirine introduces a new indicator created by combining the stochastic oscillator and the MACD . He describes the new indicator as a momentum oscillator and explains that it allows the trader to define overbought and oversold levels similar to the classic stochastic but based on the MACD .
Options
-You can enable bar coloration for trade state (signal conditions setup in the "long" and "short" variables).
-You can choose histogram or columns for the convergence/divergence display.
-You can turn on/off and adjust the overbought / oversold zones.
-You can choose what type of moving average to use in the calculation from a small selection of options. This gives you more flexibility to adapt the indicator to your needs.
👍 We hope you enjoyed this indicator and find it useful! We post free crypto analysis, strategies and indicators regularly. This is our 70th script on Tradingview!
🤐Check my Signature for other information
DiNapoli Preferred Stochastic Oscillator [ChuckBanger]In the late 1950s, George Lane developed stochastics, an indicator that measures the relationship between an issue's closing price and its price range over a predetermined period of time. This is Joe DiNapoli version of stochastic oscillator. Use it as you wold use a regular stochastic indicator.
Easy to Use Stochastic + RSI StrategyA simple strategy that yields some great results.
CODE VARIABLES
LINE 2 - Here you can change your currency and amount you want to invest on each entry.
LINE 10/11/12 - Here we establish what date we want to start backtesting from. Simply change the defval on each line to change the date (In the code below we start on Jan 1st, 2014).
LINES 19 through 27 - Here we set our Stochastic and RSI sensitivity (Currently %K = 14, %D = 3, RSI = 14). Change these to your preference.
LINE 39/41 - Here we execute our orders (Currently set when %K crosses %D under the 20 value and RSI is less than 50 to BUY, %K crosses %D above the 80 value and RSI is greater than 60 to SELL). Change these to your preference.
NOTE: As a beginner you may not want to short stock, therefore LINE 6 was added to only allow long positions.
I didn't overlay the RSI value over the Stochastics because it was too cluttered. Just add the RSI indictor seperately to your layout.
As always, couple this with trend following and exit/entry rules to make the profitability even higher!
Cheers!
PtahX's Slow Stochastic with AlertsPtahX Slow Stochastic
converted to Pinescript Version 4
initial code thanks to Oshri17 !!
PtahX Version
converted to version 4
modified color scheme
Upper and lower band crossing alerts added (Entrance & Exit)
Modified Stochastic MACD Oscillator - Vitali ApirineFor all MACD enthusiasts out there, hot off the press, I present this next generation "Modified Stochastic MACD Oscillator" employing PSv4.0, originally formulated by Vitali Apirine for TASC - November 2019 Traders Tips. Just when you may have thought it was the end of the evolutionary line for MACD technology, it's not! Basically it's a NEW hybridization of a MACD and stochastic rolled into one, maintaining scale symmetry to support overbought/oversold defined levels across time frames and assets, unlike the ordinary MACD. On the ordinary MACD, this is virtually impossible to do properly, and trust me, I have tried with zero success. My less than 40 line implementation, at initial release, is a heavily modified version of the original indicator using novel techniques, surpassing not only Apirine's original intended design, but also the "contemporary MACD" provided by TV, visible on the bottom of the chart.
Utilizing the "Power of Pine", I included the maximum amount of features I could surmise in an ultra small yet powerful package. I provided an abundance of control over each feature as an attempt to create another heavenly MACD experience in an open source package, only rivaled by my "Ultimate MACD Super Pack". Configurations are displayed above in multiple scenarios that should be suitable for most traders. Of notable mention, I rescaled the oscillator more towards a zero mean unity scale, while still leaving the waveforms completely intact.
Features List Includes:
Dark Background - Easily disabled in indicator Settings->Style for "Light" charts or with Pine commenting
AND much, much more... you have the source!
For those of you who are new to Pine Script, this script also may help you understand advanced programming techniques in Pine and how they may be utilized in a most effective manner. I would like to see Tradingview become the go to platform for the best MACD indicators attainable with this contribution to the TV community. This is commonly what my dense intricate code looks like behind the veil, and if you are wondering why there is no notes, that's because the notation is in the variable naming. If you wish to contribute additional ideas, please do so below in the comments about all things MACD in Pine.
NOTICE: Copy pasting bandits who may be having nefarious thoughts, DO NOT attempt this, because this may violate Tradingview's terms, conditions and/or house rules. "WE" are always watching the TV community vigilantly for mischievous behaviors and actions that exploit well intended authors for the purpose of unscrupulously increasing brownie points in reputation scores. Hiding behind a "protected" wall may not protect you from investigation and account penalization by TV staff. Be respectful, and don't just throw a meaningless feature in there branding it as "your" gizmo. Fair enough? Alrighty then... I firmly believe in "innovating" future state-of-the-art indicators, and please contact me if you wish to do so.
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. When available time provides itself, I will consider your inquiries, thoughts, and concepts presented below in the comments section if you do have any questions or comments regarding this indicator. When my indicators achieve more prevalent use by TV members, I may implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Schaff Trend Cycle [ChuckBanger]The Schaff Trend Cycle is a method, developed by Doug Schaff and based on the concept that trends also have repeating high and low patterns, or cycles. This is a modified MACD line, run through a modified stochastic algorithm and smoothed with Wilders’ smoothing in order to estimate the final Schaff Trend Cycle (STC) indicator. Its purpose is to identify the direction, in which a trend cycle is moving and possible peaks and bottoms within this cycle.
If this is interesting you should also take a look at MACD Leader:
For more info about Schaff Trend Cycle Indicator:
www.investopedia.com
CBCI RSI ParallelParallel version of CBCI Cu + RSI w/ SMA and EMA. It's both indicators, but combined into one indicator space with an adjustable bidirectional offset for the spacing and location.
According to Constance Brown, both the CBCI and RSI are technically supposed to be used in tandem to easily spot divergences - this is an attempt to put that into practice, in one indicator, in the context of tradingview subscription limitations for non Pro/Premium users.
cbci-mModified CBCI with the Composite disabled by default and two additional optional EMAs + hlc3 default source.
[Coingrats]RSI Divergence + StochRSIThis indicator shows the RSI and StochRSI. RSI divergence will also be marked.
- Bullish divergence - green triangle,
- Hidden bullish divergence - gray triangle
- Bearish divergence = red triangle
- Hidden bearish divergence - gray triangle
Credits to BabyWhale83 for the code to spotting divergence
WANNA TIP ME? BUY ME SOME BEERS!
BTC: 3BMEXX5JrX94ziUSoQMLEmi51WcYwphAg3
ETH: 0x541e504bb461aa141de6ddce09dc89eb16f58f9c
LTC: LPBJXzUZJksCuCK27AY2qAVYGGGiUfejok
DON'T FORGET TO LOOK AT OUR SITE MYCRYPTODARAR.COM