外汇
Forex MA Racer - SMA Performance /w ZeroLag EMA TriggerThis strategy uses 5 Simple Moving Averages and 2 ZeroLag Exponential Moving Averages, to determine possible entries and exits.
- Pretuned for Forex on 15m period
- Uses SMA(10/20/50/100/200) and EMA(9/21) by default
- Be cautios in sideward markets!
Default Strategy Inputs (Forex / Crypto)The code in this post contains a set of default strategy inputs I use in new projects / backtests in Tradingview.
Full code commentary is available on the Backtest-Rookies website. To comply with house rules, I cannot post the direct link here.
Features
Trade Direction: So that you can limit the strategy for long only, short only or trade in both directions. It is important to note that when you select “Long Only”, you will still see Short signals on the chart. However, they are only used to close a position rather than reverse it. This is the default behaviour for strategies. The same applies to “Short Only”.
Date Ranges: So that you can isolate backtesting to specific periods of interest such as bull or bear markets.
Sessions: So you can easily get an idea of the expected results during your own session. You may also notice that performance of the strategy varies depending on which session it is deployed in.
Some example stop losses: It is not an exhaustive list but it should be enough to provide some inspiration for different types of stops that you can experiment with.
Happy Scripting. I hope the community finds it useful.
Currency StrengthRepublished: The original script violated house rules by including an external link to Backtest Rookies.
Background
The currency strength indicator takes up to 4 forex pairs and calculates the average strength across all pairs. The indicator uses the pair's daily percentage change to calculate the overall strength. For flexibility, it can accept any instrument as an input. This means you can use multiple instances to track various currency strengths. It was designed with the major pairs in mind but there is no reason why it cannot be used for other FX pairs.
Note: The indicator defaults to GBP. When setting it up for other currencies, be sure to flag whether the currency is a counter currency or not.
The code is provided free and open source. Please modify it as you see fit.
Screenshots
Defaults with Annotation
Yen strength beating pound strength
Opposing Trends
[Alerts] - Moving Average Cross and/or Bbands botThis is the alert script for :
We've included the basic alert syntax for Autoview automation. You can learn more about the syntax here: autoview.with.pink and you can watch this video here: www.youtube.com
These settings are set, by default, to the lowest contracts allowed by Bitmex (at the time of this posting) to avoid a spam account.
You can learn more about Autoview here:
autoview.with.pink
Get your invite and join us in slack here:
slack.with.pink
Ichimoku Cloud Score v1.0This script calculates a simple Ichimoku Score based on the signals documented here , with a few additions. Each of the score components can be individually weighted via the script inputs . The output is a plot of the normalized Ichimoku score, in the range of -100 to 100.
This script has been heavily modified from 'Ichimoku Cloud Signal Score v2.0.0 '. Credit to user 'dashed' for the initial implementation.
This has been modified with several refinements:
Clean/Organized Code
Simplified Inputs
Improved Style
Scores normalized to a range (-100, 100)
Bugfixes and Improvements
Script Inputs: i.imgur.com
Cowabunga System from babypips.comPlease do read the information below as well, especially if you are new to Forex.
The Cowabunga System is a type of Mechanical Trading System that filters trades based on the trend of the 4 hour chart with EMAs and some other familiar indicators (RSI, Stochastics and MACD) while entering trades base on 15 minute chart.
I have coded (quite amateurishly) the basic system onto a 15 minute chart (the 4 hour settings are coded as well). The author says the system is to be traded off the 15 minute chart with the 4 hour chart only as a reference for trend direction.
4 Hour Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
Then we move onto the 15 minute chart, where he gives us the trade entry rules.
15 Minute Chart Settings
5 EMA
10 EMA
Stochastics (10,3,3)
RSI (9)
MACD (12,26,9)
Entry Rules - long entry rules used, obviously reverse these for shorting.
1. EMA must cross above the 10 EMA.
2. RSI must be greater than 50 and not overbought.
3. Stochastic must be headed up and not be in overbought territory.
4. MACD histogram must go from negative to positive OR be negative and start to increase in value.
What I did.
1. Set the RSI and Stochastic levels to avoid entries when they indicate overbought conditions for long and oversold conditions for short (80 and 20 levels).
2. Users can input specific times they want to backtest.
3. User's can configure profit targets, trailing stops and stops. Default is set it to was 100 pips profit target with a 40 pip trailing stop. (Note, when you are changing these values, please note that each pip is worth 10, so 100 pips is entered as 1000.)
The Cowabunga System from babypips.com is another popular and active system. The author, Pip Surfer, continues to post wins and losses with this system. It shows there is a lot of honesty and integrity with this system if the author keeps up to date even 10 years later and is not afraid of sharing the times the system causes losses.
As an example of this, here is post he shared just last week . It's almost like a journal, he gives specific times and reasons why he entered, lets the readers know when he was stopped out, etc. I think that what he does is equally important as his system.
To read more about this system, visit the thread on babypips.com, click here.
How to automate this strategy for free... Version 2Hello fellow traders and automation lovers.
It has been about 2 years since we originally created Autoview to connect your exchanges/brokers with your TradingView alerts. We've since added multiple exchanges, parameters and have built a large community filled with awesome, passionate traders.
One of the first strategies we built was sadly not a viable one for trading due to it using built-in variables that resulted in the backtest results being inaccurate in comparison to placing live trades. Luckily, we did not encounter repainting until a few strategies in, however, there was a point where we published a few of them as well. We will be going through all of our scripts again to not only eliminate any repainting and update to version 3, but to also include all the code snippets that we've learned to use over the years that allow for accurate backtesting and live trading.
The first script we are redoing is our How to automate this strategy for free using a chrome extension. .
Easter egg: This includes a new snippet of code that makes controlling how many orders you pyramid within a study fast and easy.
We look forward to bringing all of our scripts and delving deep into Pine again :)
Happy Trading
Autoview
HL2 - 22 EMA Cross for RenkoEURUSD
This is a simple strategy to use for those who like Renko bars. I ONLY use it on Renko.
Basic idea is that when the Renko bar closes above or below the 22 EMA, you go long or short.
However, some of the frustrations I've had with any strategy shared in Tradingview is so few folks put in the ability to set a stop or a profit target or the ability to set a specific time to trade. I have added those to this strategy. (And I for the life of me can not remember where I got the code for the the time, I need to find you!).
Special note: If you have never used the Renko bars in Tradingview, make sure you click the Format option next to whatever pair you are looking at and change it from Traditional to ATR. You can set it for a static pip amount if you want. But ATR at first will help you decide which amount of pips you should throw in.
This is my first published strategy so if I screwed up on anything or didn't explain it very well, please let me know!!
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.
Volume Conversion IndicatorVolume Conversion Indicator
The volume conversion indicator is much like the in-built volume indicator. This particular volume indicator allows you to find out how much of something has been traded in a given timeframe.
This is done by multiplying volume by the average price at that point.
What does this mean?
Well, say, for example, you were watching DGB/BTC (DigiByte/Bitcoin). Instead of the volume being displayed in the amount of DGB traded, the amount of BTC traded is displayed instead.
Feel free to comment... Hope this helps :D
BullTrading SwingHigh/SwingLowTraders, good afternoon... are you in a mood for an excellent Institutional Trading Course?
Best of all for FREE!! (please use this valuable information with respect, there are people selling the information contained in this course as their own).
This guy has more than 20 years of trading experience under his belt. This information is a real gem for any trader, no matter the timeframe you trade. This script is a tribute for ICT production and shows the swing highs and swing lows used on institutional trading (Use it in D and 4H timeframes resolution for analysis in order to apply manual trading in lower timeframes).
Here is the link to the ICT Sniper Institutional Trading Course. Enjoy www.dropbox.com
Magic Moving Averages!Magic Moving Averages! is an indicator that comes standard in many forex trading platforms, and now on Tradingview designed for comfortable readability! It incorporates a series of simple moving averages plotted together with increasing periods. Finding a good trade with this is easily found with a set of rules. I took a course with Alex du Plooy on these rules and am using his suggested default values, however there are many more teachers of this method that have various rules that may be similar. If you desire a greater MA spread simply increase the MA Separation value in the input. Best for 15 mins or longer charts.
Happy trading
Fx SessionsThis script displays a lower strip to be aware of Fx Sessions (London, NY and Tokyo). Please pay attention to the pre London "Kill Zone" which comprehends the Gap between the Tokyo close (End of Yellow Strip) and the London open (Beginning of Aqua Strip).
Courtesy from Kevin Prudhom from Octopus Fx Academy.
GMAE Original (By Kevin Manrrique)This script is called GMAE Original by me (Kevin Manrrique). I'm publishing this to the public because we are all traders and we need to support each other as a TVcommunity. This is something I built for fun. This script uses a series of EMA's. NO REPAINT, NO LAGGING! It works better for short-term trends as you can see. Please leave the copyright on the script at all times even if you rebuild it. If you need any help or have questions please inbox me privately. If you interested in joining up and building an indicator or strategy please inbox me as well. Thank you and I hope you enjoy this script as much as I do.
Remember there are no holy grails. The only holy grail there is are indicators built together to stop faulty signals and be as accurate as possible and this is one of them.
Sincerely,
Kevin Manrrique
Pair Strength BasketAgain thanks to LazyBear for bringing over the wavetrend indicator and glaz for the idea of the basket of currencies. This is a power index based on the wavetrend indicator, I cut it down to 5 securities per currency since the limit of securities I could call was 40. I like to use to see which pair is the most OB/OS as it likely presents the best profit potential.
AUD = Yellow
CAD = Gray
CHF = Maroon
EUR = Blue
GBP = Red
JPY = Purple
NZD = Lime
USD = Green
Pair Strength EURUSDThis is an application of the WaveTrend indicator by LazyBear against a basket of the eur and usd to come up with a total eur and usd wt value. You can change the currencies by altering which pairs its run on. As far as changes I removed the lagging 4sma and altered the OB OS to be 2 and 3 standard deviations from a 1000sma just to get a stable view as to where the values tend to rise to. I've had some success using it over the past week or so, when dollar is OB an euro is OS you can expect EURUSD to go up as those reverse and vice versa.
Forex strength meterCalculates the strength of a particular currency taking into account it's rate of change (% price change in a period) in all correlated and anti-correlated pairs. For instance, when looking for USD strength we will add ROC for USDCAD, USDCHF and USDJPY while subtract AUDUSD, EURUSD, GBPUSD and NZDUSD.
After ROC step, one can smooth the result using EMA, or MACD.
As the script needs to fetch values from multiple currencies it isn't the fastest one, but it gets its job done.
Important: Only major currencies (AUD, CAD, CHF, EUR, GBP, JPY, NZD and USD) are considered.
Naked Forex Trading Strategy v2v1 Big Shadow candles based on "How Naked Trading Works" video by Walter Peters: https://youtu created by AlistarElvis
v2 Bugfix calculation largest candle, added parameter for alternative calculation largest candle
Pump_Doctor Trends**You must enable bar colors in the options for the script if you wish to see them**
This indicator is very useful for spotting trends / tops / bottoms.
This is the ultimate altcoin pump spotting tool. Use on higher timeframes for greatest accuracy. If altcoin is newish (ZEC for example), try 4h rather than 1D or 3D.
Green = Uptrend
Red = Downtrend
Gray = Top/local top, bottom/local bottom, or continuation. You will need some knowledge of price action to determine which condition applies.
You can use the oscillator at the bottom as a measure of momentum / trend strength. You can draw trendlines on the oscillator on the top/bottom or the interior.
1337 VolumeThis volume indicator gives you a unique perspective and ability to analyze volume in any market. The upper line that is always >=0 represents average up volume over a user definable period while the lower line that is always <= 0 represents the average down volume over a user definable period.
green == bullish candle but volume lower than average
lime == bullish candle with above average volume
crimson == bearish candle with below average volume
red == bearish candle with above average volume
This indicator is very useful for spotting bottoms / tops (do a visual backtest and observe its behavior) as well as entry opportunities.
By default, the lookback period for average volume is 7, but I encourage you to change this value in order to find settings that work best for your particular market.
If you have any feedback or ideas for improvement, please comment.
Enjoy :D
Tops/BottomsUsing Modified code from Lazybear's CVI 0.17% indicator and some logic, this script can help identify value buy and sell opportunities at a very early phase. Best used as a confirmation tool. This is a beta, so use it as such. Enjoy.
Sometimes "top" indications in an uptrend mean to look for an opportunity to add to position while "bottom" indications during a downtrend can represent the same thing. The trend is your friend, use it to your advantage!
Red star above bar == potential top
Green star below bar == potential bottom