SpreadTrade - CorrelationCorrelation Based Pair Trading Strategy (Trading the spread)
There are three popular styles of Pair trading:
* Distance based pair trading
* Correlation based pair trading
* Cointegration based pair trading
The correlation based strategy is to short the outperforming instrument and go long on the underperforming one
whenever the temporary correlation weakens which means one instrument going up and another going down.
Here, instead of two different instruments two timeframes of the same instrument are used, lower and higher.
In order to calculate the trade size, we would need to calculate hedge_ratio,
which is simply the ratio of the closing price of the instrument in the current tf to the higher tf.
So whenever we want to go short on spread we’ll short 1 unit of current tf and go long on hedge ratio times units of higher tf.
In order to generate trading signals, we need to define our trading logic.
So, we’ll go long on the spread when the hedge ratio goes below its p rolling mean by mult times of its
rolling standard deviation and vice versa.
Note that both p and mult can be changed as per your selection of instruments.
See: analyticsprofile.com
NOTE:
There is a minor problem to it in Pinescript. After a while the signal line goes horizontal and the two bounds, upper and lower, converge unless you update the time frame.
Kepp me in the know if you find a solution to this problem)
Trading
Bitfinex BTC longs/total ratioRatio of bitfinex longs versus the total btc in positions. Maybe a good indicator of market sentiment. It allows you to see too where were people taking profit or closing positions. Remember that ratio going up doesn't necesarily mean more longs positions are being added. It could mean shorts are closing position massively. The conversely is also true.
The rate above 0.5 doesn't necesarily bullish, though, and the indicator is "timeframe" agnostic. So take into account that there could be tons of longs positions that were opened since back before summer 2017, It seems to be too of positions opened at prices below 4.000$. That's why the average seems to be around 0.6.
The blue lines indicates current ratio (or on close for past bars). The red line is the max ratio (higher shorts versus lowest longs).
Trading Session IndicatorThis indicator is basically just a back-testing tool. All it does is highlight the background of your charts with the specified color within the specified timezone.
This is useful particularly for back-testing purposes, such as testing a day-trading strategy within a particular period of the day or ignoring signals that fall within the given timeframe (which is useful for ignoring setups during your testing that appear while you're asleep or at work etc.)
Take it easy :)
- Matt.
BullTrading MultiTimeFrame ATR %Good afternoon traders.
Have you ever got trapped on the middle of a consolidation? Well, it just happened to me trading the 1 minute chart last friday!
So, I coded this script to display a percentage of ATR for a given resolution.
Now, how can you benefit using this information?
For example:
Using the standard settings (resolution is calibrated 15 minutes in order to trade 1minute charts), just draw your prefered support and resistance. Then measure the number of pips between support and resistance. This number should be approximately the same the indicator is displaying. If the indicator is displaying a lower value, maybe it will be a good idea to tighten your support/resistance levels (if the price goes against you, you will have confidence and probability on your side to open an opposite position and reach your Take profit before a new reversal take place.
Change colors and resolution for your desired timeframe until you find your particular "sweet spot"
Have a nice trading week.
Donchian Fibonacci Trading ToolDONCHIAN FIBONACCI TRADING TOOL
This indicator is based on a Donchian Channel with Fibonacci zones I published before. Features are added which enable trading decisions, it suggests when to open either a long or a short position, it provides suggestions for a stop loss level and suggests a take profit level, the calculation of the take profit suggestion can be altered in the inputs. The user should devise a trading strategy on his own, several strategies are possible, but as a Donchian Channel is used, these must come down to refinements in the classical Turtle Trading system.
NO LAGGING
Donchian Channels have no lagging, this tool being based on these, has none as well. The only added feature with a little lagging is the Hull MA, all other features work at once and report right now the historical context of the present bar or candle even while it is developping.
ANY TIME FRAME
This indicator works in any time frame. However, when the user sets the prediction calculation to percent, then in small intraday time frames the result will be relatively huge.
FALSE SIGNALS
Fibonacci retracement levels are based on inclinations which exist in nature and which also exist in the financial markets. The expectations, labeled ‘DFT: expect’, based on these levels, are usually correct. The take profit levels otoh, labeled ‘DFT: predict’, are usually incorrect. The trader should take care and needs proper ‘gut feeling’ in using these
FEATURES TRIGGERED BY THE MARKET ENTERING OR LEAVING ZONES
1. REACTIVE COLORS
The zone in which the close is, is brighter coloured.
2. ENTRY AND EXIT MARKERS NEAR UP- OR DOWN TREND ZONES
If the close enters the Up Trend or Down Trend zone, coming from another zone, a triangle is placed just outside the channel border. If it leaves the zone, an X cross is placed.
3. MARKET SITUATION EXPECTATION LEVELS (OFFSET)
The indicator can report four market situations which may be valid for the last candle:
3.1. Market is in up trend: a blue dot is placed in an offset (=future) position of the High Border,
expect levels are placed offset of High Border and the Highest Fibonacci line,
3.2. Market is in down trend: a red dot is placed offset the Low Border, also expect levels offset the Low Border and the Lowest Fibonacci line.
3.3. Market is high ranging, i.e. last break out was at High Border and market is not in up- or down trend. A green dot is placed offset the Center High Fibonacci line and expect levels offset the Highest and Center Low Fibonacci lines.
3.4. Market is low ranging, i.e. last break out was at Low Border and market is not in up- or down trend. A brown dot is placed offset the Center Low Fibonacci line and expect levels offset the Center High and Lowest Fibonacci lines.
FEATURES TRIGGERED BY AN ATTEMPT TO BREAK OUT OF THE CHANNEL BORDERS
4. SWING LINE
When the High Border is touched, the Swing Line changes its level to the Highest Fibonacci line and changes its color to blue. When the Low Border is touched, the Swing Line changes its level to the Lowest Fibonacci line and changes its color to red. This way you can see whether the general trend is up- or down and also if and when the line has been crossed.
5. DIAMOND MARKERS (OFFSET)
These markers flash when the last bar or candle or the one before that, touches a channel border, the offset is equal to the expect levels.
6. PREDICTION LEVEL (OFFSET)
The prediction level flashes in the same situation as the diamond marker. The default level is 1 Average True Range. Most are in fact false signals. One can switch the prediction level off by setting the added amount to 0, then only the Diamond Markers will flash
OTHER FEATURES
7. HULL MOVING AVERAGE
Its direction provides an indication of the price dynamics.
8. SUPPRESSION OF PLOTTING SOME LAST VALUES
Quite a few lines stop before the last bar or candle. This way the last candle seem free loating and the chart reports only the values the user needs.
Enjoy, Eykpunter.
Price Channel v2Added parameters for source of highest and lowest line.
It's usefull for ultra volatile markets like cryptocurrencies and penny stocks. Using close price as source helps to filter out false breakout signals in turtle trading strategy.
Bollinger Awesome Alert R1 by JustUncleLThis indicator is an implementation of the Bollinger Band and Awesome Oscillator Scalping system.
This technique is for those who want the most simple method that is very effective. It is BEST traded during the busiest trading hours, 3am to 12am EST NY time. This method doesn't work in sideways markets, only in volatile trending markets.
Time Frames: 1, 5, 10, 15 ,30 min.
Currency pairs: majors.
Other Chart indicators:
Add Awesome Oscillator.
Optionally Add Squeeze Indicator.
Here's the strategy:
Going LONG:
Enter a long position when the black 3 EMA has crossed up through the Bollinger red middle band MA. At the same time, the Awesome should be approaching or crossing it's zeroline, going up. This is indicated by "Buy" alert.
Going SHORT:
Enter a short position when the black 3 EMA has crossed down through the Bollinger red middle band MA. At the same time, the Awesome should be approaching or crossing it's zero line, going down. This is indicated by the "Sell" Alert.
Take profit:
10-20 pips depending on pair or When Awesome Oscillator turns a different colour.
HINTS: Best trades tend to occur when price reversing bounce off outer band and outside the Optional Bollinger Squeeze indication.
Trading PubI got this e-mail from some place called Trading Pub that had what they claimed was some indicator that made money every time. They included the formula and I'm interested in coding so I thought I'd give it a try. It looks like it's supposed to; it doesn't look like magic like they said (of course). This is much cheaper than paying them a bunch of money to lose a bunch of money.
Triple Guppy CrossGUPPY MULTIPLE ESTIMATED MOVING AVERAGE (EMA) is for Trend Trading. This script uses three sets of crosses to give us an indicator of possible trend reversal. Red cross is the first alert, followed by blue and black. Black cross being the strongest, red cross weakest.
More information about Guppy Trading can be found in the link below
Universal Time Frame v1.1Now it should work better but is only for intraday charts. There are some other glitches though; I'll try to fix them as soon as possible.
Chauvenet RadiusThe Chauvenet criterion is a well-known criterion of selection and rejection of the data used by the Physics. It establishes that in an experiment is well to discard the data whose distance from the average is greater than a certain number of the delta.
In the stock market if prices move away from the average with a volatility too high are suspect. This principle is embodied in the Chauvenet floor with the definition of two asymptotes and two data areas rejection.
The Chauvenet Radius is the quadratic sum of the delta (distance from average) and sigmoid (volatility) and is therefore an obvious market stability index. In fact the moments when price strongly moves away from the average with high volatility coincide with the moments of high instability of the market.
It can be considered an evolution of John Bollinger method introduced during the '80.
Source: www.performancetrading.it
Fractal Dimension Adaptive Moving Average (D-AMA)etfhq.com
Overall the D-AMA produced results that were near identical to that of the FRAMA but the D-AMA is a slightly faster average.
It is very difficult to pick between the FRAMA and the D-AMA but becuase the FRAMA offers a slightly longer trade duration it the best Moving Average we have tested so far.
Intramarket Correlator L-O-L-A excerptHere we have an intramarket correlator taken as an excerpt from the L-O-L-A institutional trading system.
The plot displayed on the screen is the correlation index of the correlated security plotted against the security data series. Suggest simple line plots of contrasting colors.
When the plot is below the security price this is an indication of a strong negative correlation. When the plot is above the security price this is indicative of a strong positive correlation.
Provided for free by Tarzan at tradingview. or noprism@hushmail.com
plz contact for more information on L-O-L-A
*** Past performance is not necessarily indicative of future results ***
Life is like a moving picture
Nothing in life is a permanent fixture
Ray Davies
Trading hours background highlight UTC basedHighlights trading opening hours in the background based on UTC times.
Settings for US and EU markets available now, let me know if you want other markets.
Candles Pattens (v. 1.14)This script sows you candlestick patterns in real-time.
At that moment script knows Bearish/Bullish Engulf and Doji Points.
You can recommend me which pattens you want to see in next version at comment section below
UCS_S_Steve Primo - Strategy #8Hello Fellas,
Hope you are trading fantastic and fine. Here is another setup from Steve Primo (Stocks) Setups. He claims this can be applied on any market, and you can. Primarily focused on Stocks and Futures market.
NOTE : I DID CODE THE BOTTOM INDICATOR, NOT PUBLISHING IT, ITS JUST RSI(5)
What did I change, ofcourse I don't publish what I find, There is a bit of me in the codes.....
1. Setup only shows up at meaningful levels, Stringent Filter
Myself and tradearcher will keep this upto date. As he has volenteered to help with the track record of steve primo strategies.
docs.google.com
This is more like catching a freight train after a mini pullback.
AGAIN, This is not a holy grail, but this fits my personality of trading, Buying pullbacks on stronger stocks. Because it is harder to get a UCS_momo_Oscillator to signal a setup, primarily because of the smoothing, you can use this as an alternative to catch the excitement trade.
Do not sit on it for more than T+4 days, Unless another setup triggered in your way.
Rule - Buy/Sell the candle breakout next day after the setup - in the direction it is setting up
- Close the Position @ 100% candle extension or RSI Oversold.