RSI DivergenceRSI DIVERGENCE is a difference between a fast and a slow RSI. Default values are 5 for the fast one and 14 for the slow one.
You can use this indicator in 2 different ways:
normal RSI : check double or triple top/bottom on a chart meanwhile RSI is descending/ascending (check the example on chart)
signal line : when RSI Divergence cross zero line from bottom to top you get a buy signal (the line become green), vice versa when the RSI Divergence cross zero line in the opposite way you get a sell signal (the line become red)
Forex
Forex Master v4.0 (EUR/USD Mean-Reversion Algorithm)DESCRIPTION
Forex Master v4.0 is a mean-reversion algorithm currently optimized for trading the EUR/USD pair on the 5M chart interval. All indicator inputs use the period's closing price and all trades are executed at the open of the period following the period where the trade signal was generated.
There are 3 main components that make up Forex Master v4.0:
I. Trend Filter
The algorithm uses a version of the ADX indicator as a trend filter to trade only in certain time periods where price is more likely to be range-bound (i.e., mean-reverting). This indicator is composed of a Fast ADX and a Slow ADX, both using the same look-back period of 50. However, the Fast ADX is smoothed with a 6-period EMA and the Slow ADX is smoothed with a 12-period EMA. When the Fast ADX is above the Slow ADX, the algorithm does not trade because this indicates that price is likelier to trend, which is bad for a mean-reversion system. Conversely, when the Fast ADX is below the Slow ADX, price is likelier to be ranging so this is the only time when the algorithm is allowed to trade.
II. Bollinger Bands
When allowed to trade by the Trend Filter, the algorithm uses the Bollinger Bands indicator to enter long and short positions. The Bolliger Bands indicator has a look-back period of 20 and a standard deviation of 1.5 for both upper and lower bands. When price crosses over the lower band, a Long Signal is generated and a long position is entered. When price crosses under the upper band, a Short Signal is generated and a short position is entered.
III. Money Management
Rule 1 - Each trade will use a limit order for a fixed quantity of 50,000 contracts (0.50 lot). The only exception is Rule
Rule 2 - Order pyramiding is enabled and up to 10 consecutive orders of the same signal can be executed (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts).
Rule 3 - Every order will include a bracket with both TP and SL set at 50 pips (note: the algorithm only closes the current open position and does not enter the opposite trade once a TP or SL has been hit).
Rule 4 - When a new opposite trade signal is generated, the algorithm sends in a larger order to close the current open position as well as open a new one (for example: 14 consecutive Long Signals are generated over 8 hours and the algorithm sends in 10 different buy orders at various prices for a total of 350,000 contracts. A Short Signal is generated shortly after the 14th Long Signal. The algorithm then sends in a sell order for 400,000 contracts to close the 350,000 contracts long position and open a new short position of 50,000 contracts).
Forex Master v2.0 (EUR/USD)This is version 2 of my Forex Master algorithm originally posted here:
BACKTEST CONDITIONS:
Initial equity = $100,000 (no leverage)
Order size = 100% of equity
Pyramiding = disabled
TRADING RULES:
Long entry = EMA5(RSI20) cross> 50
Profit limit = 50 pips
Stop loss = 50 pips
Short entry = EMA5(RSI20) cross< 50
Profit limit = 50 pips
Stop loss = 50 pips
Long entry = Short exit
Short entry = long exit
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.
Forex Trading Sessions with Daylight Savings TimeV1 - Max WarrenDifferent version of the CM one but everything is configurable and easy to manage.
Daylight savings may also be toggled, I cannot automatically toggle it yet but hopefully with a pine update I will be able to.
It had the four main sessions but version two could possibly have all of them as optional toggles
Hope it is useful
Forex Master (EUR/USD)ATTENTION:
This is a symmetrical algorithm designed only for trading EUR/USD on the 1h time frame. For other currency pairs and time frames, you need to re-calibrate the RSI-EMAs as well as the profit targets and stop losses.
BACKTEST CONDITIONS:
Initial equity = $100,000 (no leverage)
Order size = 100% of equity
Pyramiding = disabled
TRADING RULES:
Long entry = EMA20(RSI10) cross> 50
Profit limit = 50 pips
Stop loss = 50 pips
Short entry = EMA30(RSI30) cross< 50
Profit limit = 50 pips
Stop loss = 50 pips
Long entry = Short exit
Short entry = long exit
DISCLAIMER: None of my ideas and posts are investment advice. Past performance is not an indication of future results. This strategy was constructed with the benefit of hindsight and its future performance cannot be guaranteed.
Big Shadow by Walter Peters v1.1Version 1.1 is here!
This is an indicator for the Big Shadow (engulfing candle) that Walter Peters teaches in his course (fxjake.com) and book "Naked Forex". I have really been diving into this one and back testing it like crazy. The results have been great and I will be publishing them on the nakedforexnow.com forum soon since it probably isn't appropriate to do it here.
If you like it, please reach out to me @fredferrell on the forum. I would love to discuss back testing results with other traders.
Moving averages and bandsI coded this simple indicator based on multiple ideas shared by Tim West at his "Key Hidden Levels" chatroom.
We have a moving average ribbon comprised of the average of the highs and lows in 10 periods. The colored space in between acts more or less like fair value and is often where price is when consolidating.
Green and red triangles at the top and bottom of the screen.
The ones at the bottom, correspond to signals obtained from a 4 period moving average of the close's slope. It helps get excellent exits for trending moves by changing color with the moving average slope.
The ones at the top, are green while Bollinger Band Width increases, and red while it decreases, relative to the previous bar.
Background color highlights when the close moves over the moving average of the highs or under the moving average of the lows, indicating a change of trend is possible, or at least a pause/consolidation.
The idea is to have multiple reasons to stay in a trade, which is normally very hard to do, specially when winning.
Cheers,
Ivan Labrie
Time at Mode FX
<50% Body CandleScript to identify candlesticks with less than 50% body of total high low candlestick. Places a dot inside the candle. Make sure indicator is moved in the top of Objects Tree so the dot will not be hidden behind the candlebar.
Gold Price Trend Overlay This chart overlay provides the daily 9 SMA of Gold.
If the price of GOLD is ABOVE the 9 SMA then the line will be GOLD
If the price of GOLD is BELOW the 9 SMA then the line will be RED
A good way to use this overlay is by understanding how Gold effects currency pairs.
if GOLD is BULLISH - then AUD/USD is BULLISH
if GOLD is BULLISH - then NZD/USD is BULLISH
if GOLD is BULLISH - then EUR/USD is BULLISH
if GOLD is BULLISH - then USD is bearish
if GOLD is BULLISH - then USD/CHF is BEARISH
if GOLD is BULLISH - then USD/CAD is BEARISH
Pip Foundry - Auto Switching Fx Fut VolumeMy premium indicators are available for monthly lease at www.tradingview.com
I previously published a simple volume script that allowed you to manually apply a different security to the one you are charting as the volume plot. However, this script will automatically apply the correct volume data to whatever forex pair you are viewing without requiring a manual setting.
Pip Foundry - Fx IDC OBVMy premium indicators are available for monthly lease at www.tradingview.com
I previously published a simple OBV that allowed you to manually apply a different security to the one you are charting as the volume plot. However, this script will automatically apply the correct volume data to whatever forex pair you are viewing without requiring a manual setting.
Pip Foundry - Simple VolumeMy premium indicators are available for monthly lease at www.tradingview.com
Requested by user SunnyBTC for use in the Forex market on the EURUSD pair.
This simple indicator will allow you to view the volume of a security other than the one you are currently charting.
Edit: This script has since been updated. Please see related link at bottom.
ATR Pips [LazyBear]This is ATR in pips. This was requested by user @ElixiumCapital. ATRPIPs in his words:
"ATR PIPs is useful for finding markets with your desired amount of volatility, for example I prefer to trade forex pairs with the highest amount of volatility in the past 5 days, setting the length parameter to 5 days. And setting my stop loss at 25% to 33% of the the indicators value."
I have added options to show a BB around ATR, as well as normal ATR (not in PIPs). All the parameters are configurable.
List of my public indicators: bit.ly
List of my app-store indicators: blog.tradingview.com
Forex Session OverlapApplies gray background coloring for each major active Forex session, the more sessions active the lighter the background. Adjusted coloring for low (Sydney, Tokyo) and high (Frankfurt, London, New York) liquidity. Market opening hours for Sydney, Tokyo, Frankfurt, London and New York have been set to 08:00 - 17:00 local time and are converted to EST while taking daylight saving time into account across regions (REMEMBER: configure manually!). Sessions can be turned on or off separately. By default this indicator hides itself in larger time-frames (>30min by default). Enabling session breaks or daily pivots helps distinguish between sessions.
KK_Intraday MAsHey guys,
today I was browsing through intraday Charts looking at some moving averages. Basically what I wanted to see was whether the currency pair was trading below or above the moving average of the day/week/month. For a better understanding: The daily MA on a 15 minute Forex Chart would be the 96 MA.
I encountered the problem that i always had to change the settings for my MAs when changing the Time Interval, so I coded this here up. It is pretty simple but maybe somebody else has the same problem and can put it to use.
The script has some settings as listed below:
Choice which MAs to plot, (Daily, Weekly, Monthly)
Choice which type of MA to use (Simple, Exponential, Weighted)
Neccesary Settings for the correct calculation (e.g. Number of trading hours per day). These settings depend on the instrument you are using and should always be checked before using this script.
There are a few things to Note when using this script:
This script works for intraday charts only.
The monthly MA doesn't work on any Time Interval smaller than 15 minutes. Can't do anything about it unfortunately.
This is my first published Script, use it with caution and let me know what you think about it!
Pip collector [LazyBear]A simple but effective Forex strategy requested by user @pipcollector.
Suggested chart timeframe is 5mins.
Indicator marks potential long/short entries based on the following conditions:
LONG
------
Price above pip median ema on daily, 4 hour and 1 hour timeframe. These 3 timeframes and median EMA lengths are configurable.
Background color is set to GREEN (if option is enabled).
As soon as price touches or crosses the median ema, a GREEN arrow is shown to mark potential long.
SHORT
------
Price below pip median ema on daily, 4 hour and 1 hour timeframe. These 3 timeframes and median EMA lengths are configurable.
Background color is set to RED (if option is enabled).
As soon as price touches or crosses the median ema, a RED arrow is shown to mark potential short.
NO SETUP
-----------
Moving averages do not align on the 3 timeframes.
Background color is set to GRAY (if option is enabled)
I have noticed that this works well on other instruments too (anything trending), also on higher time frames. Feel free to leave any questions/comments on this below.
List of my public indicators: bit.ly
List of my app-store indicators: blog.tradingview.com
Mirrored MACD [LazyBear]This is a famous indicator I have seen used by many Forex traders in MT4 platform. This indicator uses the difference between EMA of "close" and EMA of "open" to form the oscillator lines (not just a convergence/divergence calculation between EMA of "close")
Current market state is determined by which histogram is above zero line. For more confirmation, wait for it to cross above Signal line too. Crossing down the signal or zeroline should be the exit condition. Also, look for divergences.
Use plot labels BullHisto/BearHisto/BearLine/BullLine/ZeroLine/Signal for setting up alerts.
Complete list of my indicators:
-----------------------------
docs.google.com
CM_DayOfWeek All Instruments V2Updated Code That Highlights Bars Based On Days Of The Week.
Works On Daily and Intra-Day Bars.
Works on All Instruments. Stocks, Forex, Futures, Bitcoin.
Shows Correct Trading Sessions!!!
Ability to Turn On/Off Each Day Of The Week via Inputs Panel.
[LAVA] Early Warning IndicatorCombined the RSI inverse of gold to USD with the Dollar index (or whatever stock symbol that may be inverted/complementary) with another asset/currency, like bitcoin, you can basically be well informed when a potential move is on the horizon. Settings allow for inverse settings and de-combining the two pairs as well as a nice cloud look if all the lines get annoying.
CM Opening Range-Asia and Europe SessionCM Opening Range Asia AndEurope Sessions
Requested by rayhug1 to use Asia Range of 5pm Est to 2am Est...uses 540 minutes (5pm to 2am Est — 9 Hours) to calculate the Range...then breakouts trigger after 2am
-Ability to change Start and End Times to use any entire session.
---Defaults to 540 minutes (9 hours) but Opening Range Calculation can be changed to 1 hour, 2 hour etc. in Inputs tab
***Known Bug…Currently will NOT Plot accurately the U.S. Session from 0800 to 0759. Will Update Indicator when Fixed.
-Ability to Change the Start and End Times to Accommodate any session.
—Default is 1700 to 1659 (Asian Range)
—Europe Session 0200 to 0159
***All times are based on New York Time or Eastern Standard time … GMT-5
***Times will change based on Daylight Savings Time.
Indicator: Krivo Index [Forex]Krivo index, suggested by Richard Krivo, tries to quantify the "strength" of a currency by checking how many of its pairs are trading strongly (close above 200sma). As you can see from the chart, KI gives an excellent overview of their strength. Note how it correctly points out the JPY crash (Nov 2012).
I decided to implement KI for each currency separately to be compliant with Pine requirements. Also, this enables to add only the needed currency KI scripts (for ex., just CAD_KI and USD_KI). You can add the needed currency KI scripts and merge them all together to form a chart like this. Make sure you "right click" on all and select "Scale Right" (or "Scale Left". Thing to note is all KIs shd be aligned to the same scale).
I have published KI for only 5 currencies now, but can add more on request. BTW, this index is usable on all time frames.
More info on KrivoIndex:
-----------------------------
www.dailyfx.com
JPY crashing:
-----------------------------
webcache.googleusercontent.com
Euro Slump:
-----------------------------
www.bloomberg.com
Please see the comment below for the complete list of currency pairs I used for deriving these indexes.