CC - Array-meta Consolidated Interval Display (ACID)This script extends my other two Array examples (which I've also provided to you open source):
The Ticker-centric 5m,15m,45m,1h,4h,1d resolution labels using arrays:
And the more Macro VIX,GLD,TLT,QQQ,SPY,IWM 1d resolution labels using arrays:
This script aims to show how to use min/max/avg with Arrays easily. My next example after this will be exploring the usage of variance versus covariance ratios over different periodic interval resolutions. Currently, this is using the following intervals: 5m,15m,45m,1h,4h,1d. It takes these intervals, calculates the values at those resolutions and puts the absolute min and max from the 5 minute to the 1 day resolutions.
It's more of an example of the power that arrays can hold, as all this truly is right now is a min/max bound calculator. The real gem lies in the avg calculators for multiple resoltuions tied into a single label with readable data. Check out the code and let me know what you think. If you need more examples, the other two scripts I mentioned before are also open source.
Using this on intervals of less than 1D sometimes times out, the way I wrote it is memory intensive, may not work for non-pro users.
Thanks!
NONE OF THIS IS FOREWARD LOOKING STATEMENTS, THIS IS NOT A PREDECTIVE ANALYSIS TOOL. THIS IS A RESEARCH ATTEMPT AT A NOVEL INDICATOR. I am not responsible for outcomes using it.
Please use and give criticisms freely. I am experimenting with combining resolutions and comparing covariance values at different levels right now, so let me know your thoughts! The last indicator will likely not be open source, but may be depending on how complex I get.
簡單移動平均線(SMA)
Multi timeframes 4 SMA'sThis script gives you the possibility to fastly plot 4 SMA's (défault 20, 50, 100 and 200 periods) in the actual TimeFrame and for 4 others timeframes.
In fact, when you're in lower timeframes, you may want to see where highers TF SMA's are without always changing the TF of the chart. This script was created for that.
It's really simply to use, by default only 4 SMA's of the present timeframe are ploted. If you want to check the higher TF SMA's, just tick the lines in the script parameters.
No strategy here, only trying to faster the use of indicators by changing parameters on multiple MA in the same time.
Don't hesitate to leave a comment if you have ideas to improve the script.
Enjoy !
CC - Macro Consolidated Interval Display (MCID)Ever wish you didn't have to rapidly flip between 6 different tickers to get the full picture?
Yeah, me too. Do you also wish that you kind of understood how the shift / unshift function works for arrays?
Yeah, I did too. Both of those birds are taken care of with one stone!
The Macro Consolidated Interval Display uses the new Array structure and security to display data for VIX, GLD, TLT, QQQ, SPY and IWM (at a 1D interval) SIMUTANEOUSLY! Regardless of which ticker you're looking at you can get the full picture of macro futures data without flipping around to get it.
This is my first script trying to use arrays. It basically shows the following a 1d interval:
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for VIX.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for GLD.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for TLT.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for QQQ.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for SPY.
ATR14, RSI7, RSI14, SMA50, SMA200 and VWAP for IWM
To make it more or less busy, I've allowed you to toggle off any of the levels you wish. I've also chosen to leave this as open source, as it's nothing too experimental, and I hope that it can gain some traction as an Array example that the public can use! If you don't like the different values that are shown, use this source code example as a spring-board to put values that you do care about onto the labels.
If this code has helped you at all please drop me a like or some constructive criticism if you do not think it's worth a like.
Good luck and happy trading friends. This should be compatible with my CID as well:
If this gets traction, I will post something similar for a dynamic combination of tickers and intervals that you can set yourself.
WR Robo Level 1FCPO trading robot alert is based on one of the popular WR Level 1 Technique strategy.
This alert is suitable to used by personal who are understand WR Level 1 Technique.
The script will identify candle that is touch SMA line and trend candle (in direction of Long or Short) to determine either to go with Long or Short entry.
Once entry is confirm, script will popup one label with detail of Long Entry Condition or Short Entry Condition.
This is an example of Long Entry Condition :
This is an example of Short Entry Condition :
Recommended Chart Settings:
Asset Class: FCPO Active Contract
Time Frame: 15 Minute
Long Entry Conditions:
a) Green Label with information of Buy Stop value, Take Profit Value and Stop Loss Value
b) Buy Stop value will be plot with Black Circle symbol on the chart
b) Take Profit value will be plot with Orange Cross symbol on the chart
b) Stop Loss value will be plot with Red Cross symbol on the chart
Short Entry Conditions:
a) Red Label with information of Sell Stop value, Take Profit Value and Stop Loss Value
b) Sell Stop value will be plot with Black Circle symbol on the chart
b) Take Profit value will be plot with Orange Cross symbol on the chart
b) Stop Loss value will be plot with Red Cross symbol on the chart
The entry label will appear once WR Level 1 Technique is valid.
Exit Conditions:
a) Stop loss level is hit
b) Take profit level is hit
c) Last candle at the end of the day (at 17:59:45 or earlier)
Default Robot Settings:
Simple Moving Average ( SMA ) : 50
Disclaimer:
This is a FCPO trading strategy that involves high risk of equity loss, You agree to use this script at your own risk.
If you have any suggestions, comments or interested to use this script, kindly PM us to obtain an access.
JBravo SwingThis follows Johnny Bravo Dominate Stocks strategy. When full price bar closes above SMA 9, this indicates a buy. When price bar closes below EMA20, this indicates a sell. If the MAs are all sloping up and aligned in order 9,20,180, then this indicates a Strong Buy. If the MAs are all sloping down and aligned in order 180,20,9, then this indicates a Strong Sell.
BTC Volume Contango IndexBased on my previous script "BTC Contango Index" which was inspired by a Twitter post by Byzantine General:
This is a script that shows the contango between spot and futures volumes of Bitcoin to identify overbought and oversold conditions. When a market is in contango, the volume of a futures contract is higher than the spot volume. Conversely, when a market is in backwardation, the volume of the futures contract is lower than the spot volume.
The aggregate daily volumes on top exchanges are taken to obtain Total Spot Volume and Total Futures Volume. The script then plots (Total Futures Volume/Total Spot Volume) - 1 to illustrate the percent difference (contango) between spot and futures volumes of Bitcoin. This data by itself is useful, but because aggregate futures volumes are so much larger than spot volumes, no negative values are produced. To correct for this, the Z-score of contango is taken. The Z-score (z) of a data item x measures the distance (in standard deviations StdDev) and direction of the item from its mean (U):
Z-score = (x - U) / StDev
A value of zero indicates that the data item x is equal to the mean U, while positive or negative values show that the data item is above or below the mean (x Values of +2 and -2 show that the data item is two standard deviations above or below the chosen mean, respectively, and over 95.5% of all data items are contained within these two horizontal references). We substitute x with volume contango C, the mean U with simple moving average ( SMA ) of n periods (50), and StdDev with the standard deviation of closing contango for n periods (50), so the above formula becomes: Z-score = (C - SMA (50)) / StdDev(C,50).
When in contango, Bitcoin may be overbought.
When in backwardation, Bitcoin may be oversold.
The current bar calculation will always look incorrect due to TV plotting the Z-score before the bar closes.
Closing RangeIndicator shows the closing range of each bar. Closing range is where the bar closes (high - close) relative to the length of the wick (high - low). A close at the top of the wick would be 100%, middle 50%, bottom 0%.
In addition, the indicator multiplies closing range by volume to weight toward high volume days.
A simple moving average is applied to visualize trend in volume-weighted closing range over time.
Options include changing the threshold of bullish closes. The default is 50%, but you can view a close above 40% as a bullish.
Simple moving average can be enabled/disabled as well as the length adjusted.
Vervoort SmoothingThis script has both the Triple Exponential Moving Average (TEMA) and zero lag sma written as functions. Both from Capturing Profit with Technical Analysis (24-25) by Sylvain Vervoort.
Best regards,
capam
PT TMA BandsVersion 1.0 of our TMA Bands is a visual of areas of interest. The purpose of this indicator is to determine where the price will likely bounce or reject. When an asset is ranging, it very well respects the neutral (middle) zone. The highest RR trade setups are when the price goes from one end of the bands to another.
The bands included are of an ATR multiplier based on multiple moving averages. Each moving average has a unique feature that offers a high probability reaction when price gravitates towards it. We have color-coordinated the bands into three zones. The Main zone being the middle area where the asset tends to play ping pong & range, Top zone, which offers the best RR for shorts & the bottom zone, which provides the best RR for longs.
Strategy:
When scalping or swinging, always look for shorts close to the red zone as possible with a stop loss above the red band. When longing, always look for longs close to the green zone area with a stop loss below the green band. Anything in orange is a neutral zone, which will confirm the asset is more than likely ranging. I don’t advise taking trades in that zone unless you have solid risk management. When playing the macros, H12+ always look for price to find support at the orange (middle) band before deciding on a shift in trend. If the asset breaks down from the orange (middle) band, you usually get a retest of that band before further downside. Also, something to consider, if you punt longs at the green zone, you want to target the orange (middle) band. If you punt shorts at the red zone, you want to target the orange (middle) band. I usually take 70% off at the middle band & let the rest run if ultimately end up in the opposite zone.
This Oscillator is best with the buy/sell signals we provide. It offers extra confluence with stop loss & targets. I enjoy using it on all time frames for swinging & scalping. It is included as part of the library. Just message us for access!
multi MA by Liquidator15 MA in a single indicator script.
7 different MA types:
- SMMA
- EMA
- SMA
- MG
- TMA
- DCF
- LSMA
multi timeframe.
Simple Moving Average CrossThe script uses 3 simple moving averages that you can define (SMA Top, SMA Mid, SMA Long).
Once the SMA Top is above the SMA Mid and the SMA Mid is above the SMA Top a long position is entered.
Once the SMA Top is below the SMA Mid and the SMA Mid is below the SMA Top a short position is entered.
You may define how long before these positions are entered by adjusting the bars in the Inputs section.
A setting of 0 will enter a position as soon as the conditions are met,
whereas a setting of 5 will wait 5 bars after the conditions are met before entering the positions.
BEST Standalone Trade Manager with Automatic Take ProfitHello BEST traders
The BEST Trade Manager got upgraded with many more features
This version allows setting automatically the TP levels on either Daily/Weekly/Monthly Fibonacci/Traditional/Camarilla/Woodie pivots and Daily/Weekly/Monthly/Intraday Moving Averages
I. 💎 SCRIPTS ACCESS 💎
1. Available only with one-time payment on my website.
2. My website URL is in this script signature at the very bottom (you'll have to scroll down a bit and going past the long description) and in my profile status available here: Daveatt
3. Many video tutorials explaining clearly how all our indicators work are available on your website > guides section.
4. You may also contact me directly for more information
II. 🔎 What is the BEST Trade Manager?🔎
2.1 Concept
The BEST Trade Manager is compatible with any indicator.
Once connected, it adds another layer of good stuff with real-time user custom defined stop loss (8 available options), take profits (4 possible options) + alerts compatible for trading automation.
2.2 How hard is it to update your indicator?
We'll send to our customers, a comprehensive and easy tutorial, to make any indicator compatible.
I guarantee you, it should take no more than 2 minutes per indicator. We made it easy, fun, and awesome. #bolder #statement
III. The amazing benefits of our Plug&Play system
I hope you're ready to be impressed. Because, what I'm about to introduce, is my best-seller feature - and available across many of my indicators.
The BEST Trade manager can be connected to any external indicator
Let's assume you want to connect your RSI divergence to your Trade Manager.
I mentioned an RSI divergence but you may connect any oscillator ( MACD, On balance volume, stochastic RSI, True Strenght index, and many more..) or non-oscillatory (divergence, trendline break, higher highs/lower lows, candlesticks pattern, price action, harmonic patterns, ...) indicators.
THE SKY IS (or more likely your imagination) is the limit :)
Of course, this tool is compatible with my other indicators
We go in-depth on our website why the Plug&Play is an untapped opportunity for many traders out there - URL available on my profile status and signature
IV. 🧰 Features 🧰
Candles can be colored to highlight the trend direction better [/b [
4.1 Stop-Loss Management
For what's following, let's assume that 2 is the stop-loss value you inserted in the indicator, and the Algorithm Builder gives a BUY signal.
This is NOT a recommendation at all, only an example to explain how this feature works.
- %Trailing: The Stop-Loss starts 2% away from the entry price - and will move up (because we're on a BUY trade as per our example) every time your trade will gain 2% profit
- Pips Trailing: Same as above but using a distance in pips/USD value
- Percentage: The Stop-Loss stays static 2% away from the entry price. There is no trailing here
- TP Trailing: Trail your stop-loss every time a Take Profit level is hit
- Supertrend: embedded supertrend use as a trailing stop
- Fixed: Set the Stop-Loss at a fixed position (value should be in currency/units)
- ATR multiple: Set the Stop-loss at a multiple of ATR
- External connector: Let's say your indicator already contains embedded stop-loss levels, you can add them in the Trade Manager
4.2 Take Profits Management
You can manage up to 3 take profit levels defined as a percentage or price value or ATR multiple.
The expected input is in percentage value (for instance, setting the % target of TP1 to 2% will set the TP1 level 2% away from the entry price
This version allows setting automatically the TP levels on either Daily/Weekly/Monthly Fibonacci/Traditional/Camarilla/Woodie pivots and Daily/Weekly/Monthly/Intraday Moving Averages
4.3 Built-in Risk-to-Reward Panel with real-time analytics
The good stuff doesn't stop here.
You'll notice that this sometimes green (when in a LONG), sometimes red (when in a SHORT) panel at the right of your chart.
- Entry Price: the price when the Algorithm Builder will give a signal.
- The Trade PnL in percentage.
- Entry Stop Loss: Distance (in currency/units) between the selected stop-loss algorithm (percent, trailing, TP trailing, etc.) and the entry price.
- Entry TP1/TP2/TP3: Distance (in currency/units) between the entry price and the first take profit
- Risk/Reward TP1/TP2/TP3: Using the Stop-loss distance at entry, and Take Profit 1/2/3 at the entry to compute the risk-to-reward ratio.
- Max drawdown and Max opportunity (value and percentage): respectively the maximum loss and maximum win per trade
For more details, please check the guides section of my website. Links are in my signature and profile status.
V. 🔔 Alerts 🔔
We enabled the alerts on the:
1. Stop-Loss hit
2. Take Profit 1/2/3 hit
3. custom hard exits based on either MACD / RSI divergence/ MM cross
5.1 🤖 Compatible with trading bots? 🤖
It's compatible with all third-parties out there capturing alerts and forwarding them to the brokers.
We enabled TradingConnector and ProfitView alert templates so far.
If you have any doubts or questions, please hit me up directly or ask in the comments section of this script.
BEST regards,
Dave
SMA StrategyIn this strategy, I took advantage of two different sma intersections for buying and selling points. You can use the intersection of 2 sma values for buying and 2 separate sma intersection for selling.
The main purpose of this strategy is to calculate the rate of return of the indicator belonging to this system. You can access the indicator version from this link and set an alarm.
SMA Strategy - Indicator Version for AlertIn this indicator, I made use of two different sma intersections for buying and selling points. You can use the intersection of 2 sma values for buying and 2 separate sma intersection for selling.
There are 3 different alarms for those who want to set an alarm.
- Cross Alarm: The alarm that will work on buy-sell signals for those who have the right to set a single alarm.
- Buy Alarm: The alarm that will operate at the receiving point according to the values you specified.
- Sell Alarm: The alarm that will operate at the sales point according to the values you specify.
Zion's Multi Timeframe SMA crossThis script shows the multiple time frame SMA cross overs under single label.
It ideal to use this indicator with 1min chart to show trend change
PineScript v4 - Forex Pin-Bar Trading StrategyPineScript v4, forex trading robot based on the commonly used bullish / bearish pin-bar piercing the moving averages strategy.
I coded this robot to stress-test the PineScript v4 language to see how advanced it is, and whether I could port a forex trading strategy from MT4 to TradingView.
In my opinion, PineScript v4 is still not a professional coding language; for example you cannot use IF-statements to modify the contents of global variables; this makes complex robot behaviour difficult to implement. In addition, it is unclear if the programmer can use nested IF-ELSE, or nested FOR within IF.
The sequence of program execution is also unclear, and although complex order entry and exit appears to function properly, I am not completely comfortable with it.
Recommended Chart Settings:
Asset Class: Forex
Time Frame: H1
Long Entry Conditions:
a) Moving Average up trend, fast crosses above slow
b) Presence of a Bullish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping up, angle threshold (optional)
Short Entry Conditions:
a) Moving Average down trend, fast crosses below slow
b) Presence of a Bearish Pin Bar
c) Pin Bar pierces either Moving Average
d) Moving Averages must be sloping down, angle threshold (optional)
Exit Conditions:
a) Stoploss level is hit
b) Takeprofit level is hit
c) Moving Averages cross-back (optional)
Default Robot Settings:
Equity Risk (%): 3 //how much account balance to risk per trade
Stop Loss (x*ATR, Float): 2.1 //stoploss = x * ATR, you can change x
Risk : Reward (1 : x*SL, Float): 3.1 //takeprofit = x * stop_loss_distance, you can change x
Fast MA (Period): 20 //fast moving average period
Slow MA (Period): 50 //slow moving average period
ATR (Period): 14 //average true range period
Use MA Slope (Boolean): true //toggle the requirement of the moving average slope
Bull Slope Angle (Deg): 1 //angle above which, moving average is considered to be sloping up
Bear Slope Angle (Deg): -1 //angle below which, moving average is considered to be sloping down
Exit When MA Re-Cross (Boolean): true //toggle, close trade if moving average crosses back
Cancel Entry After X Bars (Period): 3 //cancel the order after x bars not triggered, you can change x
Backtest Results (2019 to 2020, H1, Default Settings):
EURJPY - 111% profit, 2.631 profit factor, 16.43% drawdown
EURUSD - 103% profit, 2.899 profit factor, 14.95% drawdown
EURAUD - 76.75% profit, 1.8 profit factor, 17.99% drawdown
NZDUSD - 64.62% profit, 1.727 profit factor, 19.14% drawdown
GBPUSD - 58.73% profit, 1.663 profit factor, 15.44% downdown
AUDJPY - 48.71% profit, 1.635 profit factor, 11.81% drawdown
USDCHF - 30.72% profit, 1.36 profit factor, 22.63% drawdown
AUDUSD - 8.54% profit, 1.092 profit factor, 19.86% drawdown
EURGBP - 0.03% profit, 1.0 profit factor, 29.66% drawdown
USDJPY - 1.96% loss, 0.972 profit factor, 28.37% drawdown
USDCAD - 6.36% loss, 0.891 profit factor, 21.14% drawdown
GBPJPY - 28.27% loss, 0.461 profit factor, 39.13% drawdown
To reduce the possibility of curve-fitting, this robot was backtested on 12 popular forex currencies, as shown above. The robot was profitable on 8 out of 12 currencies, breakeven on 1, and made a loss on 3.
The default robot settings could be over-fitting for the EUR, as we can see out-sized performance for the EUR pairs, with the exception of the EURGBP. We can see that GBPJPY made the largest loss, so these two pairs could be related.
Risk Warning:
This is a forex trading strategy that involves high risk of equity loss, and backtest performance will not equal future results. You agree to use this script at your own risk.
Net BTC Exchange VolumeBTC Net exchange volume of top BTC exchanges with moving averages
- Jake Scanlan
Static + Dynamic LevelsShows static and dynamic levels which can act as support/resistance. These are important as there is a lot of users who are interested in buying/selling at these prices.
Static Levels include -
Daily/Weekly/Monthly/Yearly Open (changes color depending on if below or above price)
Previous Daily/Weekly/Monthly/Yearly Open
Previous day's High/Low
Dynamic Levels include -
100/200 Daily MA
100/200 Weekly MA
PEC Range (Prefer on 1D chart)Price Expansion and Contraction is basic calculation of Candles High-Low and it is average of previous 5 High-Low. Which will help to analyse volatility of running situation. This can be used for analysis purpose only not as buy/sell signals.
How to use this?
Ranges of candles may increase on lower value of PEC.
Ranges of candles may decrease on high of PEC.
This is not ATR of 5 period.
Barcolor Averaging1. Colors candles or bars, ascending (blue) or descending (red), as determined by the MA setting.
2. Colors candles white when the MA is flat, or the market is moving sideways or in consolidation.
Moving Average Colored EMA/3 SMA1. Updated this available script to have 2 SMA's and 2 EMA's.
2. Revised so that plot turns white when flat.
3. Added Trend Gain to control what slope "flat" has for different TF's.
The Lazy Trader - Index (ETF) Trend Following Robot50/150 moving average, index (ETF) trend following robot. Coded for people who cannot psychologically handle dollar-cost-averaging through bear markets and extreme drawdowns (although DCA can produce better results eventually), this robot helps you to avoid bear markets. Be a fair-weathered friend of Mr Market, and only take up his offer when the sun is shining! Designed for the lazy trader who really doesn't care...
Recommended Chart Settings:
Asset Class: ETF
Time Frame: Daily
Necessary ETF Macro Conditions:
a) Country must have healthy demographics, good ratio of young > old
b) Country population must be increasing
c) Country must be experiencing price-inflation
Default Robot Settings:
Slow Moving Average: 50 (integer) //adjust to suit your underlying index
Fast Moving Average: 150 (integer) //adjust to suit your underlying index
Bullish Slope Angle: 5 (degrees) //up angle of moving averages
Bearish Slope Angle: -5 (degrees) //down angle of moving averages
Average True Range: 14 (integer) //input for slope-angle formula
Risk: 100 (%) //100% risk means using all equity per trade
ETF Test Results (Default Settings):
SPY (1993 to 2020, 27 years), 332% profit, 20 trades, 6.4 profit factor, 7% drawdown
EWG (1996 to 2020, 24 years), 310% profit, 18 trades, 3.7 profit factor, 10% drawdown
EWH (1996 to 2020, 24 years), 4% loss, 26 trades, 0.9 profit factor, 36% drawdown
QQQ (1999 to 2020, 21 years), 232% profit, 17 trades, 3.6 profit factor, 2% drawdown
EEM (2003 to 2020, 17 years), 73% profit, 17 trades, 1.1 profit factor, 3% drawdown
GXC (2007 to 2020, 13 years), 18% profit, 14 trades, 1.3 profit factor, 26% drawdown
BKF (2009 to 2020, 11 years), 11% profit, 13 trades, 1.2 profit factor, 33% drawdown
A longer time in the markets is better, with the exception of EWH. 6 out of 7 tested ETFs were profitable, feel free to test on your favourite ETF (default settings) and comment below.
Risk Warning:
Not tested on commodities nor other financial products like currencies (code will not work), feel free to leave comments below.
Moving Average Slope Angle Formula:
Reproduced and modified from source:
SSL Backtester With ATR SL TP and Money ManagementSimilar to other SSL Channel scripts, but this one allows you to set an ATR-derived stop loss and adds the option to risk a % of the equity or used a fixed lot.
Enters upon a long or short SSL crossover.
FIXED LOTS
For 0.01 "lots" use 1000
For 1 standard lot, use 100,000
FOR MONEY MANAGEMENT
For 1% risk, enter 0.01
For 10% risk, enter 0.1
etc
You should be able to adapt this to any other indicator by just changing the entry conditions and adding your own indicator values.
It is not meant to be a profitable script, just a template to begin adding money management ideas to existing scripts which currently just enter and exit on an event.