I am still learning pinescript, and part of this was created using the Pine Script language reference manual. This includes looking at the time series, a fixed length, and the default intraday_loss variables. This also includes the basic fixed lengths for an swma (Symmetrically weighted moving average) and the script to start creating a strategy. All in all this...
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...
This indicator used to calculate the statistical volatility, sometime called historical volatility, based on the Extreme Value Method. Please use this link to get more information about Volatility. You can change long to short in the Input Settings WARNING: - For purpose educate only - This script to change bars colors.
This strategy uses the RSI indicator together with the Bollinger Bands to go long when the price is below the lower Bollinger Band (and to close the long trade when this value is above the upper Bollinger band). This simple strategy only places a long, when both the RSI and the Bollinger Bands indicators are at the same time in a oversold condition. In this new...
Hello TradingView and world! This is one of our latest concepts for an actual bot builder. This script comes with a bunch of features that we're hoping will alleviate a lot of the stress and confusion around using and building strategies here on TV. Especially if the end-goal is to automate the strategies using Autoview. This is a combination of 2 strategies,...
This version has an important enhancement to the previous one that`s especially useful with intraday minute charts. Due to the volatility had not been taken into account to avoid the extra complication in the formula, the previous formula has some drawbacks: The main drawback is that the constant cutoff coefficient will overestimate price changes in...
Back with another Millionaire tool script, put like a solid 12 minutes here curve fitting the moving averages. THIS WILL MAKE YOU A MILLIONAIRE. It is so easy, it makes one of the hardest industries very very easy. Works on any market. I'VE DECIDED TO SHARE THE SCRIPT AND MAKE IT PUBLIC SO WE CAN ALL BE RICH TOGETHER, MILLIONAIRES
EXPERIMENTAL: use at your own discretion. custom session breakout strategy, it uses a percentage of daily atr to set breakout limits. strategy only viable for intraday timeframes and is suggested under 1hour.
Strategy buy when HVol above BuyBand and close position when HVol below CloseBand. Markets oscillate from periods of low volatility to high volatility and back. The author`s research indicates that after periods of extremely low volatility, volatility tends to increase and price may move sharply. This increase in volatility tends to correlate with the...
This indicator is similar to Bollinger Bands. It based on DAPD - Daily Average Price Delta. DAPD is based upon a summation for each of the highs (hod) for the 21 days prior to today minus the summation for each of the lows (lod) for the last 21 days prior to today. The result of this calculation would then be divided by 21. It will be buy when high above...
Chaikin's Volatility indicator compares the spread between a security's high and low prices. It quantifies volatility as a widening of the range between the high and the low price. You can use in the xPrice1 and xPrice2 any series: Open, High, Low, Close, HL2, HLC3, OHLC4 and ect... You can change long to short in the Input Settings Please, use it only for...
Created by Request: This is a trend trading strategy that uses Price Divergence detection signals that are confirmed by the "Murrey's Math Oscillator" (Donchanin Channel based). Strategy Code Based on: Price Divergence Detector V2 by RicardoSantos UCS_Murrey's Math Oscillator by Ucsgears Strategy Risk Management Based on: Strategy Code Example by...
This is a second attempt at an easy to understand multiple time frame strategy. This one uses ATR for exits. If the position is long, and the price closes below the ATR multiplier, it triggers a close. If the position is short, and the price closes above the ATR/multiplier, it triggers a close. This generates a lot of little trades but is useful because it...
As we all know, timeframe agreement is a powerful tool. This strategy uses 4 time frames and the Keltner ATR for entries and exits.
Code takes six pairs that are highly correlated to GBPNZD and determines if their ROC's are increasing or decreasing. If a pair has an increasing ROC it is given a 1, if decreasing a -1. The numbers are all added up (this is similar to a count for counting cards in blackjack). If the count goes positive the strategy enters a long position, if negative a short...
Double Bollinger Strategy. Price crosses inner BB (with increasing outer BB) long is placed. Long is closed when price closes below outer BB. Reversed for short. The numbers are tuned for NZDUSD 15min chart. Pbin = percent on inner BB Pbout = percent on outer BB There are all kinds of other inputs, trailing stop, limit, etc. Errors, questions, suggestions are...
This is a light weight code and strategy. I tuned it for NZDUSD on a 15 min chart. NZDUSD is a slow moving low volatility pair. A single SMA cross over + crossing a .9 BB + the single SMA is increasing. I will be manually trading this with alerts and once I have LUA down I will set it free with FXCM and see what it can do on it own. ** I use BB as a means of...
WARNING: despite of strategy doesn't use future data (not repaints) it doesn't consider broker`s commissions, which can be harmful for real life high frequency trading. Strategy will definitely fail on non-ordinary security behavior. But if new behavior will get stable, tuned params should make strategy profitable again. This is the second version of this...