MACD Buy and Sell SignalIndikator buy dan sell berdasarkan macd, gunakan filter ema agar lebih akurat
Cross
Buy/Sell Signals (MACD + RSI) 1HThis is a Pine Script indicator for TradingView that plots Buy/Sell signals based on the combination of MACD and RSI indicators on a 1-hour chart.
Description of the Code:
Indicator Setup:
The script is set to overlay the Buy/Sell signals directly on the price chart (using overlay=true).
The indicator is named "Buy/Sell Signals (MACD + RSI) 1H".
MACD Settings:
The MACD (Moving Average Convergence Divergence) uses standard settings of:
Fast Length: 12
Slow Length: 26
Signal Line Smoothing: 9
The MACD line and the Signal line are calculated using the ta.macd() function.
RSI Settings:
The RSI (Relative Strength Index) is calculated with a 14-period setting using the ta.rsi() function.
Buy/Sell Conditions:
Buy Signal:
Triggered when the MACD line crosses above the Signal line (Golden Cross).
RSI value is below 50.
Sell Signal:
Triggered when the MACD line crosses below the Signal line (Dead Cross).
RSI value is above 50.
Signal Visualization:
Buy Signals:
Green "BUY" labels are plotted below the price bars where the Buy conditions are met.
Sell Signals:
Red "SELL" labels are plotted above the price bars where the Sell conditions are met.
Chart Timeframe:
While the code itself doesn't enforce a specific timeframe, the name indicates that this indicator is intended to be used on a 1-hour chart.
To use it effectively, apply the script on a 1-hour chart in TradingView.
How It Works:
This indicator combines MACD and RSI to generate Buy/Sell signals:
The MACD identifies potential trend changes or momentum shifts (via crossovers).
The RSI ensures that Buy/Sell signals align with broader momentum (e.g., Buy when RSI < 50 to avoid overbought conditions).
When the defined conditions for Buy or Sell are met, visual signals (labels) are plotted on the chart.
How to Use:
Copy the code into the Pine Script editor in TradingView.
Save and apply the script to your 1-hour chart.
Look for:
"BUY" signals (green): Indicating potential upward trends or buying opportunities.
"SELL" signals (red): Indicating potential downward trends or selling opportunities.
This script is simple and focuses purely on providing actionable Buy/Sell signals based on two powerful indicators, making it ideal for traders who prefer a clean chart without clutter. Let me know if you need further customization!
MicuRobert EMA Cross StrategyThis is a repost of a old strategy that cant be updated anymore, it was a request for a user made in Oct, 6, 2015
Here's a possible engaging description for the tradingview script:
**MicuRobert EMA Cross V2: A Powerful Trading Strategy**
Join the ranks of successful traders with this advanced strategy, designed to help you profit from market trends. The MicuRobert EMA Cross V2 combines two essential indicators - Exponential Moving Average (EMA) and Divergence EMA (DEMA) - to generate buy and sell signals.
**Key Features:**
* **Trading Session Filter**: Only trade during your preferred session, ensuring you're in sync with market conditions.
* **Trailing Stop**: Automatically adjust stop-loss levels to lock in profits or limit losses.
* **Customizable Trade Size**: Set the size of each trade based on your risk tolerance and trading goals.
**How it Works:**
The script uses two EMAs (5-period and 34-period) to identify trends. When the shorter EMA crosses above the longer one, a buy signal is generated. Conversely, when the shorter EMA falls below the longer one, a sell signal is triggered. The strategy also incorporates divergence analysis between price action and the EMAs.
**Visual Aids:**
* **EMA Plots**: Visualize the two EMAs on your chart to gauge market momentum.
* **Buy/Sell Signals**: See when buy or sell signals are generated, along with their corresponding entry prices.
* **Trailing Stop Lines**: Monitor stop-loss levels as they adjust based on price action.
**Get Started:**
Download this script and start trading like a pro! With its robust features and customizable settings, the MicuRobert EMA Cross V2 is an excellent addition to any trader's arsenal.
~Llama3
Strategy Builder [Cometreon]The Strategy Builder is an advanced indicator that allows you to create customized trading strategies directly on TradingView. With the ability to define up to five entry conditions and two exit conditions, this tool offers unprecedented flexibility in creating complex strategies.
Key Features:
Creation of strategies with 5 entry conditions and 2 exit conditions
Use of any indicator available on TradingView, including private indicators
Advanced options for signal and condition management
Technical Details and Customizable Inputs:
Activate Signal: Option to activate or deactivate the Long or Short condition
Special Condition:** It's possible to activate a "Special" condition, choosing from:
1) Precedent Signal: Searches for the condition in a previous candle. For example, entering 4 will check the condition in the fourth previous candle.
2) Check Signal: Verifies if the condition has occurred in a certain number of candles. For example, entering 6 will check if the condition has occurred in at least one of the 6 previous candles.
3) Multiple Signal: Checks multiple consecutive conditions. For example, with 3 the condition must occur in all 3 previous candles, unlike the "Check Signal" where a single occurrence is sufficient.
4) Confirm Signal: Checks that the condition has not occurred previously. For example, entering 5 verifies that the condition has not been activated in any of the 5 previous candles.
Source Long and Short: Allows choosing the first value to create the condition, using any indicator on TradingView, including our private indicators with derived signals
Type Long and Short":** Defines the type of condition, with a wide range of intuitive options including:
1) Cross Over Value: Source Long/Short crosses upward the second value.
2) Cross Under Value: Source Long/Short crosses downward the second value.
3) Greater Than: Source Long/Short is greater than the second value.
4) Lower Than: Source Long/Short is less than the second value.
5) Equal To: Source Long/Short is equal to the second value.
6) Increase: Source Long/Short is greater than the previous candle.
7) Decrease: Source Long/Short is less than the previous candle.
8) No Change: Source Long/Short is equal to the previous candle.
9) Change Value: Source Long/Short is different from the previous candle.
Only First: Avoids multiple or repeated signals, excluding a signal if the condition was active in the previous candle.
Type Value: Allows choosing the type of the second value:
1) Normal: allows manually entering a value (for example, 20 or 50).
2) Choose: allows selecting a value from another indicator, as for the first value.
How to Use The Indicator:
Define entry and exit conditions using desired indicators
Configure signal management options for each condition
Test the created strategy directly on the chart or in combination with the Strategy Tester
Unlock the potential of your trading strategies with TradeLab Beta's Strategy Builder start creating customized strategies optimized for your trading goals.
Don't waste any more time and visit the link to get access to all Cometreon indicators.
MA Cross HeatmapThe Moving Average Cross Heatmap Created by Technicator , visualizes the crossing distances between multiple moving averages using a heat map style color coding.
The main purpose of this visualization is to help identify potential trend changes or trading opportunities by looking at where the moving averages cross over each other.
Key Features:
Can plot up to 9 different moving average with their cross lengths you set
Uses a heat map to show crossing distances between the MAs
Adjustable settings like crossing length percentage, color scheme, color ceiling etc.
Overlay style separates the heat map from the price chart
This is a unique way to combine multiple MA analysis with a visual heat map representation on one indicator. The code allows you to fine-tune the parameters to suit your trading style and preferences. Worth checking out if you trade using multiple moving average crossovers as part of your strategy.
Key Levels SetKey Levels Set allows to set key levels as comma separated values, and to detect breaks to the downside and/or upside, taking into account potential gaps between bars.
This indicator can be very handy if you, like me, rely on some key levels that you identified as potential support/resistance from some technical analysis.
Features
+ It allows for key levels to be set as comma separated values.
+ It draws key levels on chart.
+ On close, it identifies highest key level that has been broken to the upside, if any.
+ On close, it identifies lowest key level that has been broken to the downside, if any.
+ In Cross mode, as bar is printing, it also detects highest/lowest key levels being broken to the upside/downside between bar high and low, if any.
+ It plots and labels breaks with current level and next level information.
+ It includes alerts from breaks on close.
+ It includes turn on/off functionality.
Settings
+ {Prices} checkbox: turns on/off entire functionality
+ {Prices} text field: comma separated values for key levels
+ {Breaks on} checkbox: turns on/off breaks detection functionality
+ {Breaks on} options: selects Close or Cross mode
Price Cross Time Custom Range Interactive█ OVERVIEW
This indicator was a time-based indicator and intended as educational purpose only based on pine script v5 functions for ta.cross() , ta.crossover() and ta.crossunder() .
I realised that there is some overlap price with the cross functions, hence I integrate them into Custom Range Interactive with value variance and overlap displayed into table.
This was my submission for Pinefest #1 , I decided to share this as public, I may accidentally delete this as long as i keep as private.
█ INSPIRATION
Inspired by design, code and usage of CAGR. Basic usage of custom range / interactive, pretty much explained here . Credits to TradingView.
█ FEATURES
1. Custom Range Interactive
2. Label can be resize and change color.
3. Label show tooltip for price and time.
4. Label can be offset to improve readability.
5. Table can show price variance when any cross is true.
6. Table can show overlap if found crosss is overlap either with crossover and crossunder.
7. Table text color automatically change based on chart background (light / dark mode).
8. Source 2 is drawn as straight line, while Source 1 will draw as label either above line for crossover, below line for crossunder and marked 'X' if crossing with Source 2's line.
9. Cross 'X' label can be offset to improve readability.
10. Both Source 1 and Source 2 can select Open, Close, High and Low, which can be displayed into table.
█ LIMITATIONS
1. Table is limited to intraday timeframe only as time format is not accurate for daily timeframe and above. Example daily timeframe will give result less 1 day from actual date.
2. I did not include other sources such external source or any built in sources such as hl2, hlc3, ohlc4 and hlcc4.
█ CODE EXPLAINATION
I pretty much create custom function with method which returns tuple value.
method crossVariant(float price = na, chart.point ref = na) =>
cross = ta.cross( price, ref.price)
over = ta.crossover( price, ref.price)
under = ta.crossunder(price, ref.price)
Unfortunately, I unable make the labels into array which i plan to return string value by getting the text value from array label, hence i use label.all and add incremental int value as reference.
series label labelCross = na, labelCross.delete()
var int num = 0
if over
num += 1
labelCross := label.new()
if under
num += 1
labelCross := label.new()
if cross
num += 1
labelCross := label.new()
I realised cross value can be overlap with crossover and crossunder, hence I add bool to enable force overlap and add additional bools.
series label labelCross = na, labelCross.delete()
var int num = 0
if forceOverlap
if over
num += 1
labelCross := label.new()
if under
num += 1
labelCross := label.new()
if cross
num += 1
labelCross := label.new()
else
if cross and over
num += 1
labelCross := label.new()
if cross and under
num += 1
labelCross := label.new()
if cross and not over and not under
num += 1
labelCross := label.new()
█ USAGE / EXAMPLES
Multi-Symbol Cross Indicator Template - Unleash Your Potential!Unlock your full trading potential with this powerful and versatile Multi-Symbol Cross Indicator Template! This script is designed to make you stand out from the crowd by enabling you to monitor multiple symbols on a single chart for specific events, such as a Golden Cross or Death Cross. With its high adaptability to include various technical indicators, you're in complete control of your trading decisions and market analysis.
By using the built-in request.security function, this template fetches data for your chosen symbols from the selected exchange and calculates the conditions (e.g., moving average crossovers) for each symbol. Although the current implementation focuses on Golden Crosses and Death Crosses, the sky is the limit when it comes to modifying the script to incorporate other technical indicators such as RSI, MACD, or Bollinger Bands.
You, as a discerning trader, can easily customize the script by selecting your preferred exchange and symbols through input options. This flexibility allows you to monitor your favorite markets without the need for any direct code modification, giving you the ultimate adaptability for various trading strategies and market analysis purposes.
Remember, this script is more than just an example or template; it's the key to unleashing your inner trading genius. While it's not intended to be a standalone trading strategy, it serves as the foundation for you to build upon and create your own customized multi-symbol indicators or strategies. You are awesome, and with this Multi-Symbol Cross Indicator Template, there's no doubt that you're on the path to achieving great success in your trading journey!
On Balance Volume CrossoversCheck on balance volume but with crossover. You can choose the smoothing method, which is set by default to use the Volume Weighted Moving Average (bringing volume to the equation is always a good idea) but you can change to SMA, MA, EMA, ...
Hope you guys enjoy it and don't forget to rate it up! :)
I plan to include % from 0-100 OBV in here later! Stay tuned.
Feedback is cool.
RedK Magic Ribbon JeetendraGaurCross Over Strategy
Moving average Cross Over Strategy
Please use in 1 minute Expiry
Crossover Alerts for Yesterday O/H/L/C , Today Vwap [Zero54]This is a very simple script/indicator that trigger alerts every time the script triggers the following conditions.
1) Script crosses yesterday's (previous day's) high
2) Script crosses yesterday's (previous day's) low
3) Script crosses yesterday's (previous day's) open
4) Script crosses yesterday's (previous day's) close
5) Script crosses today's vwap.
I developed this to keep track of the scripts I follow and I find it useful. Hope you will find it useful too.
Steps to use:
1) Open the ticker for which you want to set the alerts.
2) Add this indicator to the chart.
3) Right Click on the text and set choose "Add Alert"
4) After you have done with setting up the alert, feel free to remove the indicator from the chart. It is not necessary for the indicator to be added in the chart in order for it to work.
5) Repeat 1-4 for all the scripts for which you want to set the alerts.
Be advised: During market open, if you have set alerts for multiple scripts, a tsunami of alerts may be triggered.
If you like this alert indicator, please like/boost it. Feel free to re-use this code however you may wish to. Cheers!
Channel SurfingThis is my Channel Surfing indicator. It fires Buy and Sell signals based on multiple conditions. You can use EMAs or LSMAs. You will have to check the box of which moving averages to use once you add it to the chart. It plots EMAs or LSMAs using the different sources Close, Low, and High as the channel to surf. It fires a Buy signal if price crosses the channel up and if there is a pullback into the channel followed by a breakout to the upside. It fires a Sell signal if price crosses the channel down and if there is a pullback into the channel followed buy a breakdown to the down side. I find it works great on the 5 minute SPY chart and the 1 minute chart of ES with the default settings when scalping. You are able to switch between 2 different channels using LSMAs or EMAs. The EMAs has an optional LSMA slope filter for getting rid of some false signals. Let me know if you guys find any other settings or ways to use this and as always I hope it helps.
BTC Hashrate with smoothingBTC Hashrate with smoothing - thanks to the recent integration of IntoTheBlock data into Tradingview, we can now effortlessly show Hashrate data on our chart.
One popular use for Hashrate is to buy when the 30 day moving average crosses above the 60 day moving average, signifying that miner capitulation is over and recovery has started.
Definition
The Bitcoin hash rate is the number of times per second that computers on the Bitcoin network are hashing data to verify transactions and perform the encryption that secures the network. The hash rate is an indicator of how healthy the Bitcoin network is at any given time, and is driven primarily by difficulty mining and the number of miners. Generally, a high hash rate is considered a good thing.
More precisely, the Bitcoin hash rate is the number of times per second that computers on the Bitcoin network are hashing data to verify transactions and perform the encryption that secures the network.
CrossFire -=[ CryptDollar ]=-FEATURES
DO NOT USE WITHOUT READING ALL OF THIS!
Intended to be USED AGAINST Heikin Ashi Averaging Trend Candles for LEGITIMATE ‘AVERAGING’ Trend Recognition and analysis and it is a legitimate mathematical protocol using averages.
NOTE:
THIS IS NOT A simple “ENTER / EXIT" Type Indicator!!! BE CLEAR ABOUT THAT!!
THIS IS A AVERAGE TREND ANALYSIS and Support & Resistance type of indicator
ADDITIONAL NOTE:
This EMA CROSSING signal indicator DOES NOT REPRINT after the EMA CROSS CONFIRMATION, (Candle Close)!!
It may flicker during the confirmation process, which ALL indicator formulas do.
PROOF OF THIS is that the Yellow and Light Blue EMAs are IN FULL VIEW where the indications occur.
What is a Moving Average Crossover Confirmation??
It is when the selected Moving Averages fully cross each other upon candle close.
It is also important to note:
The LOWER the Timeframe, the more 'NOISE to signal' ratio you will get with this and ANY other indicator.
The HIGHER the Timeframe, the more 'SIGNAL to noise' ratio you will get with this and ANY other indicator.
To attain more reliable Trade Planning signals; simply look for signals on the higher TFs, and THEN use the lower, faster-pivoting TFs to limit into position.
You should only execute moves AFTER you 'APPROPRIATELY PLAN YOUR TRADE' and decide to 'TRADE YOUR PLAN!'
------------------------------------------
What is included with this EMA Crossing Indicator:
Dynamic SR (Horizontal lines of Support and Resistance (which is analyzed against recent average price action). An optional VWAP is included as well
ALL of these pop-up indication features can be turned Off or On in settings panel:
Also, it is very important to select the dots next to the indicator name on your chart; scroll the drop menu go to "Visibility" > "Bring to Front." so you can see the 2 and 6 EMAs on top of the Heikin Ashi AVERAGING candles.
AGAIN, this indicator is based off a known and well established Heikin Ashi EMA Crossing Swing Trading Strategy and is optimized with the use of Heikin Ashi AVERAGING Candles.
This contains all of the EMAs related a 2-6-13 Heikin Ashi AVERAGE Trading Strategy. The original strategy for traditional markets used the 17 EMA. But in crypto, I've found that the 13 EMA at least 'seems' to be more relative and consequential as a trend change 'strength' indication.
- Includes alerts with "CROSS" indications for the 2 & 6 EMA crossover points.*
- ALWAYS check for Trend & Price Support or Resistance (SR) ALONG YOUR TRADE PATH, BEFORE planning your Trade.
- DO NOT simply enter trades based on the Cross signals, as these are mere indications of directional change, and make sure you have at least a single candle close confirmation before taking it seriously.
- Along with that, there are certain sets of SMAs (21, 50, & 200) that are universally used by famed rock star traders, for both scalping and swing trades, which can be enabled and disabled in the Style Panel Settings.
- The optional ARROWS are additional indications for when the 13 EMA , 21 SMA , 50 SMA , and 200 SMA are crossed up or down.
Each EMA and SMA has its own alert that you can individually set, along with the primary "CROSS" indication alerts.
* Special note regarding the visual indications of the 13 EMA and the 21 SMA
If an arrow appears with "13-21" above or below it, that is because these moving averages are so close that
for visual notification purposes there was a visual layering issue whenever both of these MAs triggered on same candle.
This compensation for the visual indication has no effect on the individual MA's Alert settings.
- ALL EMAs and SMAs are customizable if the defaults are not to your liking, BUT understand that any EMA and SMA assignment changes will divert away from the strategy for which this indicator was designed.
If you change from the default moving average assignments in the input settings, your changes will unfortunately not be reflected in the "labeling" on the chart or in alerts)!!
- All optional are in the settings panel, and all setting listings are easily understandable as to what they are
- I was finally able to edit the script to where the labels are not obnoxious on the chart!!!
- As with all my indicators so far; I like to include the optional light-white Daily VWAP plot line to save adding an extra indicator if you like to follow the VWAP , as I do.
- If your chart seems noisy with everything turned on, you can always disable any of these features that you find yourself not using as a visual reference and then "Save as default"
Best Applied to Higher Timeframes
With ALL Default “Noisy” Visual Indications Enabled:
With Only the Visible Primary Cross Indications Enabled:
Actieve Inversiones EMABBOL by EDOHEN
EMABBOL includes these indicators:
- triple emas (9,21,50)
- Bollinger Bands
- Also includes buying or selling signals
The following strategy is based on ema crosses and bollinger ma crosses, the Bollinger band gives us the target we could expect from our trades, using the upper and lower bands.
Trading criteria
Buy : Price crosses over the triple emas and also crosses under the Bollinger band ema. Looking for 3:1 PnL
Sell : Price crosses under the triple emas and also crosses under the Bollinger band ema. Looking for 3:1 PnL
Stop Loss Tips : set the SL above the crosses if Selling, below the crosses if buying
Take Profit Tips : set the TP below the Bollinger's lower Band band if Selling, or above the Bollinger's upper Band band if Buying
5 Minute EMA Cross StrategyThis simple Fast/Slow EMA cross strategy is designed to be used with Alertatron to place limit orders and use a trailing stop/take profit.
Features:
Indicators when the fast EMA crosses the slow EMA
Trailing Stop/Take Profit
Bar look back for placing limit order
Macro EMA filter to only trade with the macro trend
FunctionIntrabarCrossValueLibrary "FunctionIntrabarCrossValue"
intrabar_cross_value(a, b, step) Find the minimum difference of a intrabar cross and return its median value.
Parameters:
a : float, series a.
b : float, series b.
step : float, step to iterate x axis, default=0.01
Returns: float
AR Peti Kemas Candle Cross EMA8 EMA13 EMA21 EMA55 EMA90 EMA200This is implementation of Peti Kemas. Slighly modified for the selection of EMA period, but user can change the period.
The strategy is if the current candle close is below EMA90 and EMA200, the buy signal is generated when the close crosses up EMA13.
When the close above EMA90 and ENA200, then the buy signal is generated when the close crosses up EMA8
Birdie AbelForxThis script indicates a breakout of the "diagonale Line" to show potential Day trading or Swing entries.
Timeframe : H1 or M30
Pairs : Forex, Index, Crypto
Insight :
The purpose of this indicator is to determine areas of reversal or beginning of trend.
Every day at 11:00 p.m. (Paris Time), the daily horizontal level is determined by a vertical line.
The trader will then have to draw the diagonal from the horizontal level of the day before to the level of the new horizontal level by anticipating it until 11:00 p.m. (Paris time)
Thus we will have a diagonal for the day which will serve as an entry trigger if the price crosses and closes beyond this diagonal. During the day the horizontal level will progress at the same time as the weather until 11:00 p.m. (Paris Time)
If you configure a trade entry, the SL level is determined by the horizontal level of the same day.
For swing trading, the SL can follow the price by placing itself each day (above for a sell / below for a buy) of the daily level so as to act as a daily trailing stop.
As long as the price is above the diagonal and the daily level, we remain in an uptrend.
As long as the price is below the diagonal and the daily level, we remain in a downtrend.
investor_EMA Three-CrossI produced a strategy using short term ema intersections.
A short-term low capital buy signal creates a yellow background after the red background color. Here, profit should be taken by following the trend.
When the green background is formed, positions can be increased, the price will lead us to a safer market.
Exposures can be turned off in the formation of a red background.
The pink zigzag average always shows the Weekly ma9. Price should be followed above the MA9 weekly average which will allow us to see medium term positive price movements.
As a result, the background colors will present a more understandable graph in price movements up and down movements.
The above strategy will generate signals as long and short.
You can make the coloring you want from the settings section.
investor_RSI Two-CrossThe RSI 14/50 cross is an oscillator that shows the market direction.
Positive price movements can be expected when the small value crosses the high value.
Negative price movements can be expected when the small value crosses the high value to the downside.
You can make the coloring you want from the settings section.
T/K CROSSSimple crossing of the Tenkan & Kijun Sen indicated by a "Cross". Surfed Tradingview for it, but did not find it, so decided to make one. Does NOT include the Ichimoku Cloud & the Chikou
Moving_average-10/5This moving average contain three moving averages , where two moving average corssover work and 1 moving average corssover on candle
when candle cross above or below moving average 10 or 5 its gives signals buy or sell ....
not work in ranging market .
backtest first before use in real trading for study how its work on chart.
thank you