Reverse Ehler Instantaneous Trendline - TraderHalaiThis script uses a reverse function of the famous Ehler Instantaneous Trendline to calculate the source price required in order to change from Bullish to bearish
From my analysis, the reverse price does appear to be rather choppy, though it is 100% accurate. This is because Ehler's Instantaneous Trendline tends to remain trending for longer periods of time with above average hold periods.
The main suitability for this would be higher level timeframes, such as Weekly, 5 daily, 3 daily. From my findings Smoothed Heikin Ashi Trend, tends to provide better risk-adjusted returns across most timeframes (Higher return to drawdown ratio)
As I have spent a bit of time getting the reverse function mathematics to work, I decided to publish this as open source for the benefit, scrutiny and for further development by the TradingView community anyways.
Enjoy!
Cerca negli script per "daily"
Inflation Adjusted Performance: Ticker/M2 money supplyPlots current ticker / M2 money supply, to give an idea of 'inflation adjusted performance'.
~In the above, see the last decade of bullish equities is not nearly as impressive as it seems when adjusted to account for the FED's money printing.
~Works on all timeframes/ assets; though M2 money supply is daily data release, so not meaningful to plot this on timeframe lower than daily.
~To display on same pane; comment-out line 6 and un-comment line 7; then save, remove and re-add indicator.
~Scale on the right is meaningless; this indicator is just to show/compare the shape of the charts.
Session High Low
This indicator shows Session High Low line and prices.
1: Session range is adjustable based on your timeframe. Nomore confusing timezone settings.
You can choose your timezone then set your Session start and end time.
Script will show you the following session high and low lines which is extendable until next session.
2: All historical lines and price levels are can be partially or fully hidden.
And line colors are adjustable so you can use suitable color on your chart.
Based on session you choose this script can be used as a session break strategy AKA (Asian session break, London session break strategy).
You can create your own trading Session and high lows.
Personally I monitor how price reacts on London session high lows during the NewYork trading session.
In this chart Session starts at 8am (London open) and closes at 12:30 (NewYork open). Script is showing high lows only in this session range.
Always double confirm with your trading style. It's not a Financial advice.
Inputs:
1: Hide history - Hides all historical lines and prices that means you can see only todays session.
2: Show price - Shows price level of session high lows. You can hide price level if you want to see only lines.
3: Session time - You can set your time range of session.
4: Start time - Session start time. You can see vertical line on your chart or you can hide line.
5: End time - Session end time. You can see vertical line on your chart or you can hide line.
6: Line extend time - End of the high low lines. You can draw line until the end of the session or you can draw short line.
7: All line and price colors are optional.
Thank you.
Stock ScreenerThis indicator helps monitoring QQE Mod and RMO of 20 tickers simultaneously.
This indicator shows last 4/8 indicator results of particular ticker.
Left side: 8 last colors of both indicator on current timeframe. Most left is older.
Right side: 4 last colors of both indicator on selected higher timeframe. Most right is newer.
Icon color is QQE Mod.
Background color is RMO color.
This indicator is suitable for daily or swing trade.
Recommended timeframe is 2 Hours, and recommended higher timeframe is Daily.
ATRvsDTR + ADR Zone + SSS50%This Script is to be used for intra day as far as the adr zones. The adr zones are used as support and resistance but also can be used to determine whether the stock is breaking out or not. Also being that the adr zones are calculated using a 5 or 10 day period unless you change the settings, and are set when price opens. It does really help you know whether a stock is moving more than it does on average to me it just signifies its directional. So I added the atr vs dtr so you can see what a stock moves on average versus what it has moved today.
The atr period is calculated based on the daily period unless you change the settings. I added to the original script 3 more percentages the atr vs dtr will change as it goes higher so that you can be aware when the stock is getting closer to moving 100% of its atr. Even though a stock breaks above or below the adr that doesn't mean it has moved more than it normally moves.
I also have the weekly open on the script as I trade the strat and I want to know, at what price the the week will change from bearish to bullish and vice versa. So that I can understand the trend when I am trading intraday.
The 50% lines were added for Sara strat snipers 50% rule and you can change the timeframes on them. This is used to know whether a candle will go 3. This also can help with retracements vs reversals, because in traditional technical analysis 50% is around where people start think its a reversal more so than a retracement.
I believe the script will be very help as it can show you price being directional but can also let you know when the stock is getting close to moving more than it normally has or if it has moved more than it normally has. As well as being able to see if something is a retracement vs a reversal. I trade TheStrat strategy so this can be very helpful in that regard
The 50% retracement levels are default 1h and daily. You can change them and whether or not they show
In the example chart you can see we are below weekly open which is bearish and you can also see where price reverses out of the upper adr zone. As well as how much of the atr we have moved on this day in time.
Oversold RSI with tight SL Strategy (by Coinrule)This is one of the best strategies that can be used to get familiar with technical indicators and start to include them in your trading bot rules.
ENTRY
1. This trading system uses the RSI ( Relative Strength Index ) to anticipate good points to enter positions. RSI is a technical indicator frequently used in trading. It works by measuring the speed and change of price movements to determine whether a coin is oversold (indicating a good entry point) or overbought (indicating a point of exit/entry for a short position). The RSI oscillates between 0 and 100 and is traditionally considered overbought when over 70 and oversold when below 30.
2. To pick the right moment to buy, the strategy enters a trade when the RSI falls below 30 indicating the coin is oversold and primed for a trend reversal.
EXIT
The strategy then exits the position when the price appreciates 7% from the point of entry. The position also maintains a tight stop-loss and closes the position if the price depreciates 1% from the entry price. The idea behind this is to cut your losing trades fast and let your winners ride.
The best time frame for this strategy based on our backtesting data is the daily. Shorter time frames can also work well on certain coins, however in our experience, the daily works best. Feel free to experiment with this script and test it on a variety of your coins! With our backtesting data a trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange by volume. In the example shown, this strategy made a handsome net profit of 39.31% on Chainlink with 61.54% of trades being profitable.
Oversold RSI with Tight Stop-Loss Strategy (by Coinrule)KRAKEN:LINKUSD
This is one of the best strategies that can be used to get familiar with technical indicators and start to include them in your rules on Coinrule .
ENTRY
1. This trading system uses the RSI (Relative Strength Index) to anticipate good points to enter positions. RSI is a technical indicator frequently used in trading. It works by measuring the speed and change of price movements to determine whether a coin is oversold (indicating a good entry point) or overbought (indicating a point of exit/entry for a short position). The RSI oscillates between 0 and 100 and is traditionally considered overbought when over 70 and oversold when below 30.
2. To pick the right moment to buy, the strategy enters a trade when the RSI falls below 30 indicating the coin is oversold and primed for a trend reversal.
EXIT
The strategy then exits the position when the price appreciates 7% from the point of entry. The position also maintains a tight stop-loss and closes the position if the price depreciates 1% from the entry price. The idea behind this is to cut your losing trades fast and let your winners ride.
The best time frame for this strategy based on our back testing data is the daily. Shorter time frames can also work well on certain coins, however in our experience, the daily works best. Feel free to experiment with this script and test it on a variety of your coins! With our back testing data a trading fee of 0.1% is taken into account. The fee is aligned to the base fee applied on Binance, which is the largest cryptocurrency exchange by volume. In the example shown, this strategy made a handsome net profit of 52.6% on Chainlink with 66.67% of trades being profitable.
You can execute this strategy on your favorite exchanges with Coinrule .
Volume + VolatilityBefore I begin I want to mention:
1. This is a variation of the 'CCI & BB' made by matsu_bitmex (Link: ) and SigmaDraconis's 'On Balance Volume Oscillator + Bollinger Bands' (Link: )
2. While using this sometimes you may not notice the crossover so I've added the Line 'x' outside 'x' BB to only see if Line 3 and 4 crossed over
The indicator:
1. When the background is green and the 2 lines are going up it means uptrend
2. When the background is red and the 2 lines are going down it means downtrend
3. When there is a crossover and the background outside BB turns yellow, it means there is a lot of volatility or volume
How to use (Or how I use this):
1. All trades based on the yellow color MUST be during a trend
2. When the color changes to yellow for the 1st time in the direction of a trend it is advisable to enter
Creentrend Pressure SignalsThe hull moving average is my favorite moving average, as well as slower (55ma Bollinger Bands dev@(1.618)) is my favorite standard deviation indicator. Lets combine the two to evaluate overbought, oversold, and pressure.
Use for all time frames- I PREFER daily.
Bollinger band MA at 55
Hull ma at 55
The Hull is more reactive and faster than any band on the BB (both at 55)
When HULL closes BELOW LOWER BAND- it will print a buy signal, remember- over sold and overbought in VOLATILITY could be dangerous on low time frames, as swift moves typically have short term reversals but return to the main trend eventually, this is why i reccomend daily candles.
When PRICE closes ABOVE UPPER BOLLINGER BAND- it will print a green ^ signal under candle indicating upward pressure.
When HULL closes ABOVE UPPER BOLLINGER BAND- it will print a red resistance line. Complex tops happen a lot with bitcoin so take a 1-5% stop above it if shorting.
Simple Trader - LevelsThis indicator plots the below levels in the chart.
Note: This is not a buy/sell recommendation. Reach Simple Trader to understand how to trade these levels.
Current day open,
Prev. day close,
Prev. day high,
Prev. day low.
Prev. week high,
Prev. week low,
Prev. month high,
Prev. month low.
WMA Combo Crossover V2Before I begin I want to mention:
1. This is an upgrade of my indicator WMA Combo Crossover. (Link: www.tradingview.com)
2. The upgrade was inspired from the CCI and Bollinger Bands indicator by matsu_bitmex. (Link: www.tradingview.com)
3. I have combined the indictor with Bollinger Bands , coloring those sections as yellow, to increase winning trades as well as avoid losing trades by spotting potential reversals with the aid of news avoidance
4. This indicator is designed primarily for NNFX (No Nonsense Forex) though it can be used for any type of trading style
5. Also, I want to thank kurtisbu for helping me out. Thank you!
The indicator:
1. When WMA 25 is blue and is going upwards, it means there is an uptrend
2. When WMA 25 is red and is going down, it means there is a downtrend
3. During a trend, the color may switch to red and blue occasionally. When the color switches back to the direction of the trend, it can be used for re-entries
4. All trades based on the yellow color MUST be during a trend
5. When the color changes to yellow that means price is very volatile and only on the 1st candle is it advisable to enter a trade. (I have not backtested entering on the 2nd candle of a yellow color change)
6. During a trend, when the color changes to yellow and there is an incoming news event, then the chances of a reversal increase and I recommended avoid entering
Ehlers Moving Average Difference Indicator [CC]The Moving Average Difference Indicator was created by John Ehlers (Stocks and Commodities Oct 2021 pg 23) and this is essentially his version of the famous MACD indicator. He calls this indicator the "thinking mans" MACD because his thought process for creating the lengths is based on half of the period of the dominant cycle. These are the default lengths that he created but feel free to test it out with your own variations and please let me know if you come up with a better one. I'm sorry for my long delay from TV. Sometimes I just need to step away and collect my thoughts before I burn myself out with the many scripts I keep publishing daily. I will try to get back into publishing daily again because I have a personal backlog of over 50 scripts ready to go that I haven't published yet. As always I have included strong buy and sell signals in addition to normal ones so darker colors are strong and lighter colors are normal. Buy when the line turns green and sell when it turns red.
Let me know if there are any other scripts you would like to see me publish!
Multi Range VWAP PivotsMulti Range VWAP Pivots turned out to be one of my most accurate pivot indicators to date!
Multi Range VWAP Pivots works by recognizing the high and low of the timeframe selected (D, W, M, 6M, and 12M) and plotting range high to VWAP averages and range low to VWAP averages.
After further examination of each completed range, I came to the conclusion that due to the nature of averages, high and low respectively would need to be completed within the current range, for the averages to actually display pivots correctly. This means that if all averages appear to be "pivoting" correctly after or during a break lower of higher, then we can only assume the most recent break higher or lower could be exhaustion and price will be reverted to the mean (VWAP). OR, this could be the most accurate hindsight indicator on the planet.
*DISCLAIMER*: This indicator repaints. DO NOT backtest or set alerts with this indicator.
LTB Zigzag CirclesHello All,
Today I am here with a new idea and script, " LTB Zigzag Circles ". The idea is to create Circles using last 2 zigzag waves and to catch the breakouts earlier than horizontal lines. if a circle is broken then the script shows entry for Long/Short positions. and if broken circle reappears again then the position is closed. You can change Zigzag period as you wish and see the different results.
Here you can see how the script calculates and draws the Circles:
Below you can see how the script draws part of the circle on each bar:
Optionally the script can show levels:
P.S. I haven't tested it as a strategy, Result and Performance may change by Zigzag period, you need to find best Zigzag period according to your strategy. By the way, my Zigzag Circles idea can be improved, if you have any recommendation let me know please ;)
Enjoy!
Williams %R Color MapThis script is used to have a quick view for my triple screen trading system.
I use it in 1 hour chart so that the higher timeframe is 5-hour and daily.
Visual for the current price on which fib area of 5-hour and daily chart.
EMA BANDS//Trades have been checked periodically on daily charts with normal, basically, you'll set in trades for weeks, months, and years in some cases depending on the time frame and strategy you use, DO NOT TRADE ON MARGIN INTEREST WILL RUIN YOU.
//You can use the strategies on lower timeframes, however, you'll need to be able to execute trades during all market hours if you choose anything less than a daily.
//You MUST stay in your trade until the very end. that means even if you open the trade and you're super in red DON'T DUMP.
//Set stop losses to no more than 50% of your entry price. Less is better but understand that you may be stomped out of a trade that could reverse after a 40-49% pullback.
//I suggest you pull initial capital out after you 2x to lock in your profit.
//You must also have the ability to sell/buy after market hours, you'll make your trades generally one-two hours post-market in most cases.
//The green line gives a simple average of the last 1618 candles. The further price action is from the mean, the more the price will be pulled back. (Ideally)
//Strategy One (Safe/Slow)
//Buy when the closing price is less than the lower bounds of all bands. This does not include the green "Mean" line
//Sell when the closing price is greater than the upper bounds of all bands. Again, this does not include the green "Mean" line
//Strategy Two (Neutral)
//Buy when the closing price is less than the bounds of 3-4 out of the 4 bands.
//Sell when the closing price is greater than the bounds of 3-4 out of the 4 bands.
//This means that you execute trades even if the closing price is still within one band.
//You'll still execute orders even if the closing price is outside of all bands
//Strategy Three (Least Safe/Fast)
//Buy when the closing price is less than the bounds of 2-4 out of the 4 bands.
//Sell when the closing price is greater than the bounds of 2-4 out of the 4 bands.
//This means that you execute trades even if the closing price is still within two bands.
//You'll still execute orders even if the closing price is outside of all bands
//You'll still execute orders even if the closing price is outside of 3 of 4 bands
RSI EMA SMA StratThis script looks at the RSI EMA and RSI SMA crossovers when above a certain price EMA
It was mainly written for swingtrading and only for long positions on a daily timeframe for BTC and ETH. They idea is to have a script that indicates when to convert your BTC /ETC to a stable coin and when to buy in again.
You could try to use it for other positions (short, long, etc..) and other coins but I didn't test these.
When the RSI EMA & SMA hover around 50 for a few days in flat lines and you get a buy signal it may be best to wait a few days longer to see what direction they take.
The default values for RSI EMA , RSI SMA and price EMA gave the best return (start out with an amount of x coins in 2015 and end up with the biggest possible amount of coins today). Again, this was only tested on daily. Feel free to tweak these when using other timeframes or other coins
Simple and efficient PSAR swing strategyThis is a strategy build inside tradingview, which I found it works great with swing/position trading.
It works based on parabolic sar indicator, when indicator is below the candle, is an uptrend and when its its above is a downtrend.
At the same time it's very nice, because it has a sort of stop loss which is dynamic, because it triggers when candle crosses with indicator, so you dont have to worry about stop loss or take profit .
The key here of course, is going to be the risk management, if you want to success with it, never trade more than 2% of you capital, and if you want you can always apply a rule inside the code to close all position if x % amount of equity was going down, although I recommend have patience and let the system do its job.
I recommend this strategy to be used with charts like 1 day or 1 week. If you need and want I can convert it to an indicator that uses alerts (although with strategy as well can be made to send alerts).
PS. When you add this strategy on chart, inside is has different versions, if you use first version(1), it uses the system I explain above. If you use the last one, its based on risk management when the stop loss is the difference between psar and the candle, but it still needs some adjustments to make.
Overall first one is atm much more profitable, but I believe that the version with risk management can be much better, but it need much more adjustments to make which I dont have the time at the moment for it.
Enjoy it .
market phases - JDThis indicator shows the relation of price against different period ma's.
When put in daily Timeframe it gives the 1400 Day (= 200 Weekly) and the 200 ,100 an 50 Daily.
The lines show the 200,100 and 50 ma in relation to the 1400 ma.
JD.
#NotTradingAdvice #DYOR
2% candlePart of my strategy involves entering a trade based on a candle on a 5-min chart being < 2% (ignoring major volatility).
I got tired of calculating the range of a single candle either in my head or on a calculator, so I wrote this up. Feel free to share it.
Shows the %move of any single candle, default horizontal lines are 1% & 2%, can be changed by clicking the gear icon next to the indicator after you have added the indicator to your chart. Works on any timeframe, 5m, 1h, 1d, etc , obviously
the higher the timeframe, the larger the move.
Sessions BrockJavaThis script is a flexible, timezone-aware Session High/Low indicator for TradingView. It is based on the original work of kurtsmock (Mozilla Public License 2.0) and includes enhancements for UTC offset handling and autoscale compatibility.
Features:
Tracks and plots the highest and lowest prices within user-defined trading sessions.
Session times default to UTC, but you can set a custom UTC offset (e.g., -4 for New York, 0 for London, +8 for Singapore).
Reset modes: by session, by a set number of hours, or daily.
Backtesting support: specify a date range to limit indicator activity to historical periods.
Session constraint: restricts operation to specific sessions, with optional weekend inclusion for crypto or 24/7 markets.
Visual customization: choose to display session high/low as lines, background color, or filled regions. All colors and transparencies are user-configurable.
Efficient plotting: session levels are always included in TradingView’s autoscale, so you never lose sight of key levels.
Technical details:
Session definition uses TradingView’s session string format (e.g., 1800-1500).
Timezone handling is automatic and accurate, even with custom offsets.
Designed for high efficiency, supporting up to 5000 bars back and 500 lines.
Credit:
Major credit to kurtsmock, the original author. This version adds UTC offset and improved autoscale support.
License: Mozilla Public License 2.0
If you need session-based high/low levels that always fit your chart and your trading hours, this script is for you.
Holy Grail (100% Win Rate)tldr:
1. Here you go folks – no repaint, no dodgy stuff, and 100% win rate
2. DO NOT TRADE THIS
________________________________________
Key points:
• Assets to trade: SPY, NASDAQ, DAX, FTSE, Bitcoin
• Time Frame: 1D or higher
________________________________________
What does the script do?
The script buys a certain amount of the asset every time we're in a pullback, and sells when we make a new All-Time High (ATH). More specifically, it waits for the first green candle after the lowest point of the pullback, and then adds to the position. We assume that when we see a green candle, the pullback is over. If we go even lower – we wait for another green candle. The script sells on the first red candle after an ATH.
The pullback is identified using a simple moving average (MA) – if we're below the MA, we're in a pullback.
You can set the MA length in the settings. I considered adding different types of MAs, but decided against it as it wouldn't change much in terms of the general idea.
You can also set the percentage of your account to invest on the very first candle – this is an initial pre-filling of the position, so you have something to sell if the price goes straight up after you start trading. If you think we’re in a bear market and the only way is up, you might want to set a higher number. On the other hand, if you believe we’re near the top of a bull market, set a lower one.
You can set the percentage of the position to sell on each red candle after ATH under Settings → Input → Exit % . Similarly, you can set the percentage to buy on each green candle after a pullback low under Settings → Properties → Order Size . Since bull markets tend to last longer than bear market pullbacks, you’ll typically want Exit % to be larger than Order Size — though this may vary depending on your initial pre-fill.
________________________________________
Why these assets?
These are assets that are expected to go up over the long run. I call them “number go up” assets. Meaning: no matter where they are now, at some point in the future they’ll make a new ATH. That’s why this might not work on individual stocks like Nvidia or Tesla — there’s no guarantee they won’t go bust tomorrow. We all remember big companies from the past (Enron, Lehman Brothers, etc.) that collapsed unexpectedly.
With SPY, you're betting on the American economy. And the American economy will go up at least because of inflation. If you believe inflation will continue, then you believe we’ll eventually see a new ATH in SPY. It may take years — like from 2007 to 2013 — but it happened. And there was a bull run after that.
And if you think the American economy will never grow again — well, if that’s true, we’ll all have much bigger problems than trading scripts.
________________________________________
Why this time frame?
Because, as mentioned, it may take a long time to reach a new ATH. You can use a shorter time frame, but that requires a higher TradingView subscription plan to view multi-year data.
Also, if you choose a shorter time frame, you should reduce the Order Size and Exit % accordingly, because the script will jump in on every new green candle after a pullback. On a 1-minute chart, that could mean 100x more entries compared to daily. Conversely, if you go to a higher time frame, increase the sizes — otherwise, too much of your capital will just sit unused.
________________________________________
So if everything is so great and it has a real 100% win rate – why not trade it?
If you turn on the “buy & hold equity” curve, you’ll see that the profit from all closed trades (with a 100% win rate) is smaller than if you had simply bought the asset and held it for years.
Real-world slippage and fees will reduce your actual profits even more.
If you’re unlucky and start trading at the very top of a bull market, it might take 10 years before even a single trade is closed.
Some assets that seem like they can only go up long-term... might not. Take Bitcoin. Many believe it can only go up in the long term, but it could still die — just like anything else. The only reason I included it is because many people treat it as a “number go up” asset. And I know some will try to trade it. You've been warned. But I don’t want to start holy wars in the holy grail description (pun intended), so let’s move on.
________________________________________
What if, after all this, you do decide to trade this strategy?
Why would you? Maybe not for profit, but just to impress your friends with a 100% win rate. Or maybe you skipped the entire explanation above and just want to jump in because it sounds like a sure win.
Whatever your reason, first you should research the asset’s historical max time (in years) between ATHs. That’s how long you might need to keep a trade open. My other script – Cycles Analysis – might help with this.
Second, experiment with the input parameters. There aren't many, so it should be easy to find what works best for your asset. You can also enable “Show stats table” in settings – it’ll help you see how many entries/exits the script makes, which will help you find the right Order Size to Exit % ratio.
Yes, this might lead to over-optimization — but hey, if we’re at this stage, who cares, right?
That said, I did find some rare cases where specific parameter setups caused performance to dip below 100% due to a mandatory close at the wrong time.
Also, since trades can last for years, don’t use this with futures — you'd have to keep rolling them over. Use ETFs or similar long-holdable assets.
________________________________________
The final word
In short, this is a glorified “Buy the Dip” strategy. It only works long-term on a very limited set of assets, and in most cases performs worse than just buying and holding for the same period.
I created this script as a teaching tool — to show new traders that win rate isn’t everything. Even if the win rate is 100%. Trust me: it’s extremely hard to beat the market (especially without leverage), and this script is just more proof of that.