Hashem OBV+EMA/MAThe On Balance Volume indicator (OBV) is used to measure buying and selling pressure.
It is a cumulative indicator meaning that on days where price went up, that day's volume is added to the cumulative OBV total. If price went down, then that day's volume is subtracted from the OBV total.
The OBV value is then plotted as a line for easy interpretation. OBV is primarily used to confirm or identify overall price Trends or to anticipate price movements after Divergences .
In addition to OBV, EMA and SMA are included. the EMA is used for Support and Resistances for the OBV. and the SMA is used by its Slope (can be S/R as well).
Đường Trung bình trượt Đơn giản (SMA)
Scripting Tutorial B - TManyMA - Commission/FeesThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually.
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish , bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter . Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy.
- Strategy only enters long positions with a market order when MA crossovers occur.
- Strategy exits positions when crossunders occur.
- Trades 100% of the equity with one order/position by default.
- Ability to disable trading certain crosses with input checks.
- Ability to exit trades with a take profit or stop loss.
- User input to allow quick changes to the take profit or stop loss percentages.
- Strategy now calculates on every tick
- Strategy also includes fixed commission values based on Coinbase standard order fees
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
Dr_All indicators V1.0Free users have many restrictions on their use in TradingView.
I put together a lot of indicators I use often.
5 moving average
1 parabolic SAR
1 bollinger band
1 ichimoku cloud
(but it's only cloud)
as always
It's open source.
enjoy!
Zone Moving Average Color Direction Detection This indicator generates a zone for a moving average by means of the high and low source of the same average, the moving average should be worked as zones not as a line, by default a simple average of 200 periods is configured, the indicator has direction detection and represents it by the green and red colors, it also has padding with the same characteristic, it is possible to configure the following:
- Type: SMA, EMA, WMA, VWMA, SMMA, DEMA, THEME, HULLMA, ZEMA, TMA, SSMA
- Period / Length
- Source
- Color Direction Detection
Release Notes: Add a field to change the reaction in the change of color and direction of the Media, set to 1 is the fastest, a larger number filters the address better but is slower, 3 is set by default.
Simple 17 Indicator BFThis is an indicator version of my Simple 17 script.
The rules are simple, when the price closes after crossing above the MA, we have a long signal. When the price closes after crossing below the MA we have a short signal.
I have set up alerts that fire upon these crosses, one for long, one for short.
Reliability[UO]This is an SMA based indicator. It gives a sense of long term behavior of the asset to make a reliable trade setup
How reliable is your asset to trade without gambling? Is there a reliable trend?
Is this price dip an opportunity to buy?
Is this price spike an opportunity to sell? Or would you avoid buying now and rather wait a bit for prices to fall down to a more reasonable level?
You can recognize all of those points on this indicator. The best to do is to look at the prices and patterns on the indicator to learn about those points.
RSI with Moving Averages[UO]This RSI indicator is one of my favorite indicators. This powerful indicator is implemented by Phi-Deltalytics. I modified the drawing so that it is easier (at least for me) to see the signals and trends (it would not matter if you're doing algorithmic trading).
Trends and signals. For detailed instructions and tutorial see Phi-Deltalytics page
Scripting Tutorial A - TManyMA - StopsThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually.
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy.
- Strategy only enters long positions with a market order when MA crossovers occur.
- Strategy exits positions when crossunders occur.
- Trades 100% of the equity with one order/position by default.
- Ability to disable trading certain crosses with input checks.
- Ability to exit trades with a take profit or stop loss.
- User input to allow quick changes to the take profit or stop loss percentages.
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
VRSI-MARSI StrategyI wanted to create an indicator which resembles price movement, aside to volume movement.
The "yellow-blue" line is the MA(5) of the RSI (9) of closing price.
The "orange" line is the MA(5) of the RSI (9) of Volume .
(Default plot of RSI and VRSI is not visible but can be made visible ("Settings" > "Style" > set "Opacity" of "RSI & VRSI"))
The Long (Buy) condition is triggered when the MA(5) of the RSI (9, close) goes up.
The Short (Sell) condition is triggered when the MA(5) of the RSI (9, close) goes down.
Comparing the price movement with the "orange" Volume line helps to spot a possible trend change,
for example when price goes up and an ascending Volume line starts to flatten or starts descending,
this could be a sign that the Bullish trend is weakening, predicting a possible trend change.
Or, when for example a downwards price movement is accompanied with a rising Volume line, this can be a sign of large Bearish power.
Because it still is a RSI indicator, the midline (50), and Oversold/Overbought area's (20-30 & 70-80) are important to watch, especially the MARSI!
A second strategy is made (VRSI-MARSI Strategy 2) where the Long/Short condition is triggered when "MA RSI (close) - MA RSI ( Volume )" crosses.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The Long & Short entries, as well as the Entry Close are visible 1 bar after the trigger.
When the blue line changes in a yellow line (and vice versa) it will show a candle earlier (see yellow dashed lines = (1)).
Also, the condition is fulfilled when the candle closes (2), but the order doesn't take place in the same bar, but the next (3).
Because this is a strategy the "actual Order" will not take place at the "Close" of the candle (2), but at the "Open" at the NEXT candle (3).
I also have this strategy as a study (A+B), where the "Buy" & "Sell" shows a candle earlier.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The entries are default 5% of equity, without pyramiding, which already gives large profits.
A large part of the profit is because of the Entry Close of the Long & Short entries.
You can easily turn these off (Settings > Inputs) to see what profit the strategy gives without Entry Close.
Here they are disabled:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
More information available in the script ;-)
Golden Ratio Fibonacci Multipliers Top Detector [UO]Fibonacci levels that show the critical top and bottom levels. There is no way to miss the top and bottom. And a top detector.
Also the most important SMA lines (SMA 50, 200), EMA21. Those are the most frequently used lines by traders.
This indicator is based on the work of www.tradingview.com
His work set me thinking. Could I also see the bottom using Fibonacci numbers? Yes, of course.
My favorite timeframes with this indicator are 6H, 1D, 3D.
Intensively used for BTC and BNB. And useful for any other coin.
VRSI-MARSI AI wanted to create an indicator which resembles price movement, aside to volume movement.
MARSI (= MA RSI(close)) = "yellow-blue" line which is the MA(5) of the RSI (9) of closing price.
VRSI (= MA RSI(Volume)) = "orange" line which is the MA(5) of the RSI (9) of Volume .
(Default plot of RSI and VRSI is not visible but can be made visible ("Settings" > "Style" > set "Opacity" of "RSI & VRSI"))
Because it still is a RSI indicator, the midline (50), and Oversold/Overbought area's (20-30 & 70-80) are important to watch, especially the MARSI!
Comparing the price movement with the "orange" Volume VRSI line helps to spot a possible trend change,
for example when price goes up and an ascending Volume VRSI line starts to flatten or starts descending,
this could be a sign that the Bullish trend is weakening, predicting a possible trend change.
Or, when for example a downwards price movement is accompanied with a rising Volume VRSI line, this can be a sign of large Bearish power.
This study comes with Bollinger Bands as an assisting tool, it is default made not visible but can be made visible
("settings" > "style" > Set "Opacity" of "basis, upper & lower")
You can see where the MARSI ("yellow-blue" line) crosses the "basis", or bounces off the bands, ...
All this is seen in "VRSI-MARSI B"
"VRSI-MARSI A" contains the alerts:
1) Long/Short = "Triangle UP/DOWN", color: lime/red
Condition: Movement of MA(5) of RSI (9) of price (close )
2) Long2/Short2 = ">", color: lime/red
Condition: Long/Short condition is true for 2 or more bars (= continuation)
3) Long3/Short3 = "•", color: lime/red
Condition: MA RSI (Close) crosses MA RSI ( Volume )
1 or more alerts can easily be disabled if desired (settings > inputs)
Thanks!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
More information available in the script ;-)
VRSI-MARSI BI wanted to create an indicator which resembles price movement, aside to volume movement.
MARSI (= MA RSI(close)) = "yellow-blue" line which is the MA(5) of the RSI (9) of closing price.
VRSI (= MA RSI(Volume)) = "orange" line which is the MA(5) of the RSI (9) of Volume .
(Default plot of RSI and VRSI is not visible but can be made visible ("Settings" > "Style" > set "Opacity" of "RSI & VRSI"))
Because it still is a RSI indicator, the midline (50), and Oversold/Overbought area's (20-30 & 70-80) are important to watch, especially the MARSI!
Comparing the price movement with the "orange" Volume VRSI line helps to spot a possible trend change,
for example when price goes up and an ascending Volume VRSI line starts to flatten or starts descending,
this could be a sign that the Bullish trend is weakening, predicting a possible trend change.
Or, when for example a downwards price movement is accompanied with a rising Volume VRSI line, this can be a sign of large Bearish power.
This study comes with Bollinger Bands as an assisting tool, it is default made not visible but can be made visible
("settings" > "style" > Set "Opacity" of "basis, upper & lower")
You can see where the MARSI ("yellow-blue" line) crosses the "basis", or bounces off the bands, ...
All this is seen in "VRSI-MARSI B"
"VRSI-MARSI A" contains the alerts:
1) Long/Short = "Triangle UP/DOWN", color: lime/red
Condition: Movement of MA(5) of RSI (9) of price (close )
2) Long2/Short2 = ">", color: lime/red
Condition: Long/Short condition is true for 2 or more bars (= continuation)
3) Long3/Short3 = "•", color: lime/red
Condition: MA RSI (Close) crosses MA RSI ( Volume )
1 or more alerts can easily be disabled if desired (settings > inputs)
Thanks!
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
More information available in the script ;-)
sma 50 100 200 multi Timframes actual daily weekly monthlysma 50-100-200
Just 3 sma from actual,daily,weekly and monthly timeframe
Rolling Moving Average, SMA/EMA, for IPO stocksThe script replicates the standard EMA/SMA used by tradingview, but also adds an estimate for the first X periods, where X is the length of the moving average. This allows for an estimate of support resistance in IPO stocks, when fewer date is available
150MA Cross BuyAndSell Strategy [d3nv3r]This is a Buy And Sell Strategy I haven't seen anywhere so i share mine.
Used on Bitcoin - daily chart - the strategy generate sell and buy indicator on crossover and crossunder the 150 simple moving average.
Scripting Tutorial 9 - TManyMA Strategy - Long Market Order OnlyThis script is for a triple moving average strategy where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
- Converted the existing study into a strategy
- Strategy only enters long positions with a market order when MA crossovers occur
- Strategy exits positions when crossunders occur
- Trades 100% of the equity with one order/position by default
- Ability to disable trading certain crosses with input checks
This script is meant as an educational script with well-formatted styling, and references for specific functions.
*** PLEASE NOTE - THIS STRATEGY IS MEANT FOR LEARNING PURPOSES. DEPENDING ON IT'S CONFIGURATION IT MAY OR MAY NOT BE USEFUL FOR ACTUAL TRADING. THE STRATEGY IS NOT FINANCIAL ADVICE ***
Ultimate MA Cross IndicatorContinue to experiment with new labels functionality in TradingView. Created ma cross script with 9 different types of MA wit additional information box. In that box, I included the bars passed from the previous bull/bear cross.
Also you cand find there live distance between moving averages in price and ATRs , so you track how close are you from the next close.
Do you think this concept is useful? What information do you want to see in this kind of boxes?
These ma types are included in this indicator:
Simple Moving Average ( SMA )
Exponential Moving Average ( EMA )
Weighted Moving Average ( WMA )
Arnaud Legoux Moving Average ( ALMA )
Hull Moving Average ( HMA )
Volume-weighted Moving Average ( VWMA )
Least Square Moving Average ( LSMA )
Smoothed Moving Average ( SMMA )
Double Exponential Moving Average ( DEMA )
Scripting Tutorial 8 - Triple Many Moving Averages RibbonsThis script is for a triple moving average indicator where the user can select from different types of moving averages, price sources, lookback periods and resolutions.
Features:
- 3 Moving Averages with variable MA types, periods, price sources, resolutions and the ability to disable each individually
- Crossovers are plotted on the chart with detailed information regarding the crossover (Ex: 50 SMA crossed over 200 SMA )
- Forecasting available for all three MAs. MA values are forecasted 5 values out and plotted as if a continuation to the MA.
- Forecast bias also applies to all forecasting. Bias means we can forecast based on an anticipated bullish, bearish or neutral direction in the market.
- To understand bias, please read the source code, or if you can't read the code just send me a message on here or Twitter. Twitter should be linked to my profile.
- Ribbons added and on by default. Optional setting to disable the ribbons. 5 ribbons between MA1 and MA2 and another 5 between MA2 and MA3.
- Ribbons are alpha-color coded based on their relation to their default MAs.
- Ribbons are only visible between MAs if the MAs being compared share the same Type, Resolution, and Source because there is no way to consolidate those three in a simple manner.
- Ribbon values are calculated based on calculated MA Periods between the MAs.
This script is meant as an educational script with well-formatted styling, and references for specific functions.
Simple 17 BF 🚀A Simple Moving Average of period 17 based on ohlc4 values. We go long when price closes above it. We go short when price closes below it. No stop loss. No take profit.
This strategy is really to showcase how effective a basic system can be, and that with discipline and patience, trading does not need to be complex to yield good results over time.
You can change the Moving Average type, source and period in the settings as well as the backtesting range. I found 17 period SMA with ohlc4 to be a good fit for XBT/USD on Daily timeframe but for other pairs, the type, source and period will likely differ.
INSTRUCTIONS
Red turns to Green = Long Entry/Short Exit
Green turns to Red = Short Entry/Long Exit
The entries are based on when price crosses the MA and this is what the backtest is based on. We exit the current trade when we get an opposing signal and enter the new trade.
Easy to Use 50/100/200 Day Moving Average StrategyWhenever you see someone publish a chart or idea, what's the one thing you almost always see? Moving Averages!
Many investors focus on these indictors solely as entry and exit points, so here's an easy to manipulate strategy to backtest and see if this is feasible on your security.
CODE VARIABLES
LINE 2 - Here you can change your currency and amount you want to invest on each entry.
LINE 8/9/10 - Here we establish the 50 (Fast), 100 (Medium) and 200 (Slow) day variables. These can be adjusted to your choosing.
LINE 13/14/15 - Here we establish what date we want to start backtesting from. Simple change the defval on each line to change the date (In the code below we start on Jan 1st, 2010).
LINE 20/23 - Here, within the crossover and crossunder functions, we set which MA's must cross to enter and exit a trade. Below we have the 50 day moving above and under the 200 day. Simple change the variables to FastMA, MediumMA and SlowMA to your choosing.
NOTE: As a beginner you may not want to short stock, therefore LINE 5 was added to only allow long positions.
Hope this helps, from one beginner to another.
Cheers!
8 EMA & 5 SMA ComboA combination of 8 EMA & 5 SMA to use with more advanced MA strategies and de-cluttering of indicator list.
To identify lines, Color combination should be somewhat warmer/lighter to cooler/darker colors.
EMA have a thicker line than the SMA. Color pairs have lighter/darker in cases where there are slight variations (when using one over another).
3 EMA & SMA (Market Cycle)Simple Indicator based on 3 Simple and 3 Exponential Moving Averages. Used to indicate Market Cycles.
Definition of Bull Market: 10 SMA is above 21 EMA . 30 SMA slope is up. 55 EMA is trending above 200 EMA .
Definition of Bear Market: 10 SMA is below 21 EMA . 30 SMA slope is down. 55 EMA is trending below 200 EMA .
SSL Channel BFSSL Channel Close is a great all-rounder based on 2 Simple Moving Averages, one of recent Highs, one of recent Lows.
The calculation prints a channel on the chart consisting of 2 lines.
This strategy gives a Long signal when price closes above the top of these 2 lines and a Short signal when it closes below the bottom.
Trading in choppy sideways markets can compound losses so we avoid that here by using recent ATR to determine relative volatility and refrain from trading when the background is White.
We use a basic 3% stop loss.
Charted on XBT/USD Bitmex Daily chart.
INSTRUCTIONS
Green = long
Red = short
White Background= No trade
The way I have set this strategy up is that if we get stopped out but we are still in a green or red background, we re-enter. Closing the trade only occurs on an opposing signal or if we get stopped out.