Let’s talk about technical analysis & stops.Technical analysis is not your decision-making process — it’s a tool to help you structure better trading decisions by studying past price movements to anticipate likely future moves.
👉 Every time you look at a chart, you should decide:
✅ Do I want to trade at all?
✅ What’s my entry?
✅ Where’s my stop (when does my thesis fail)?
✅ What’s my target (where will I take profits)?
________________________________________
🛑 Where to put your stop?
Take the S&P 500 daily chart. It’s been trending up strongly. Many traders use an exponential moving average (EMA) as a dynamic stop.
But:
• A 9 EMA often stops you out too early on strong trends.
• Adjusting to a 15 or 16 EMA could keep you in the trade longer, letting your winners run.
In tools like TradingView, you can visually adjust the EMA and see in real time how it would have kept you in or taken you out.
________________________________________
💡 Key takeaway:
When price closes below your EMA stop — that’s your signal to exit and lock in profits.
Use TA to structure your trades, not just spot pretty patterns.
________________________________________
💬 What’s your favourite method for setting stops?
Disclaimer:
The information posted on Trading View is for informative purposes and is not intended to constitute advice in any form, including but not limited to investment, accounting, tax, legal or regulatory advice. The information therefore has no regard to the specific investment objectives, financial situation or particular needs of any specific recipient. Opinions expressed are our current opinions as of the date appearing on Trading View only. All illustrations, forecasts or hypothetical data are for illustrative purposes only. The Society of Technical Analysts Ltd does not make representation that the information provided is appropriate for use in all jurisdictions or by all Investors or other potential Investors. Parties are therefore responsible for compliance with applicable local laws and regulations. The Society of Technical Analysts will not be held liable for any loss or damage resulting directly or indirectly from the use of any information on this site.
Community ideas
Eth $2,500 Resistance — Will Harmonic Pattern Trigger a Rally?Ethereum Stuck at $2,500 Resistance — Will Harmonic Pattern Trigger a Rally to $3,400?
Ethereum has been trading in a prolonged consolidation phase around the $2,500 level — a region that has acted as resistance for several weeks. This extended period of sideways action could signify either accumulation or distribution, depending on what comes next. Technically, Ethereum remains capped below major resistance and has yet to confirm a bullish breakout. However, a deeper corrective move followed by a reclaim of key levels could activate a larger harmonic pattern, which presents a potential rally scenario toward the $3,400 region.
-$2,500 Resistance Zone: Price continues to stall at this critical area, signaling indecision
-$2,200 Support Level: A potential bounce zone where bulls may re-enter the market
-Harmonic Pattern Forming: Possible C-to-D leg expansion targeting $3,400, pending confirmation
Ethereum’s price has remained stuck around the $2,500 region, which has evolved into a high time frame resistance. Price has yet to show a decisive breakout, and this extended stay near resistance typically signals one of two things: stealth accumulation before a breakout, or distribution before a breakdown. The direction will become clearer once price action reacts to either a support retest or a break of the current range.
From a bullish perspective, a potential corrective move toward the $2,200 region — a well-established support — would provide a healthy reset for price action. This zone has previously acted as a demand area and aligns closely with the value area low. If Ethereum bounces from this level and reclaims the point of control (POC) around $2,550 — which also aligns with weekly resistance — it would be a strong structural signal.
This sequence of moves could activate a larger harmonic pattern currently visible in Ethereum’s price action. If valid, the market could enter the C-to-D expansion phase of the harmonic setup, targeting the $3,400 region. While this pattern remains speculative and unconfirmed, its structure is valid and aligns with both historical Fibonacci extensions and support/resistance dynamics.
For this pattern to be confirmed, Ethereum must hold the $2,200 support level and produce a strong reclaim of $2,550 backed by volume. Without this confirmation, the idea remains purely speculative and should be approached with caution.
If Ethereum corrects to $2,200 and reclaims $2,550, a bullish C-to-D harmonic expansion may play out targeting $3,400. Until then, ETH remains range-bound and capped under major resistance.
SOLANA Loves THIS Pattern | BULLISHSolana usually increases alongside ETH. Possible because its a big competitor.
We can see SOL follows ETH very closely, with the exception of dipping earlier than ETH by a week:
In the 4h, we see a push to breakout above the neckline resistance:
In the daily timeframe, SOL is just about to break out above the moving averages - which would be the final confirmation of a bullish impulse to come:
Could this pattern be the confirmation of the start of another big pump for SOL?
_______________________
BINANCE:SOLUSDT
Is Bitcoin Working Out a New Leg Up? Onchain Data Says It May BeDiamond hands are waving goodbye and institutions are loading up — it’s why Bitcoin may be struggling to break out of its current consolidation range. How long can this accumulation phase continue?
And yes — we look at the trades of the decade — two transactions where each one moved a cool billie from a $7.8K investment in 2011.
Some people cling to their Bitcoin BITSTAMP:BTCUSD stash like it’s their last protein bar before a marathon. Others, apparently, wake up one day and decide to dump their coins and browse the market for islands.
Welcome to the silent shift that’s redefining the big players in the Bitcoin market, worth about $2.2 trillion as per data from our Crypto Coins Heatmap .
Old-school whales — the very early adopters and miners holding the OG wallets — are quietly selling, while institutional heavyweights sweep in to buy every dip (part of the reason why lately every breakout never breaks out).
Over the past year, these OG whales have shed about half a million Bitcoin — worth north of $50 billion — according to data from 10x Research. And guess who’s gobbling it all up? ETFs, corporate treasuries, and family offices that didn’t want anything to do with crypto five years ago.
Is it bullish? Is it bearish? Is it just Bitcoin being Bitcoin? Let’s pull up the charts, squint at the data, and see what the world’s most famous digital coin might be plotting next.
📈 A Record High — And Now What?
So here’s the setup. Bitcoin has been strutting under its record high of $111,000 for months now. You’d think the hype machine — from Trump’s pro-crypto administration, to corporate balance sheets going full Michael Saylor (looking at you, GameStop NYSE:GME ) — would send BTC blasting past the Moon and landing on Mars.
Instead? It’s just... chilling. Volatility’s drying up like the last drop of liquidity in a summer Friday session. And the reason is surprisingly simple: the massive handover happening between big, anonymous early adopters and the suit-and-tie institutional crowd.
😌 From Wild Ride to Easy Cruising?
You could argue this is exactly what Bitcoin needs: maturity, respectability, less drama. But don’t tell that to the day traders who want 20% swings before breakfast. As these whales get out and institutions get in, analysts say the upside could be capped at a chill 10% to 20% a year.
Good news for your retirement portfolio, maybe not so great for that “Lambo by Labor Day” dream.
Institutions now hold about 25% of all Bitcoin in circulation — and once these get in, they tend to sit tight for years.
🚀 The $1.1 Billion Time Capsule
Speaking of whales: ever wonder what happens when a Bitcoin wallet goes dark for 14 years? It pops back online to make your mind melt.
On April 3, 2011, a wallet labeled “1HqXB...gDwcK” moved 23,377 BTC to three addresses. At the time, Bitcoin was worth a mere 78 cents. Fast forward: two of those receiving wallets, each with 10,000 BTC, sat dormant for over a decade.
This month, both wallets moved their treasure troves — worth over $1.1 billion each — within 30 minutes of each other. Talk about a coordinated exit. What’s behind the move? Tax planning? A lost key finally found?
A savvy crypto thief who figured how to crack the earliest key generation method? We may never know. Also, OG guy, if you’re reading this — props for the all-at-once move without even a test transaction.
⛓️ What Onchain Data Says
Onchain data is like reading tea leaves for nerds with Bloomberg terminals. It says the supply is tightening — not because there’s less Bitcoin, but because fewer coins are actually available to trade.
When long-term holders move coins, that typically signals big-picture changes. Here’s the twist: the net effect has been… stability. Institutional demand, like Bitcoin exchange-traded funds , soaks up supply just as fast as whales drip it back in.
That’s why Bitcoin’s been stuck in this $100K–$110K limbo, ping-ponging while the accumulation phase is still going strong.
👀 So, Is a New Leg Up Coming?
This is where the optimists and realists start to bicker over the charts. On the one hand, the structural handover to institutions makes Bitcoin more credible, more regulated, and more boring.
But less volatility can mean steadier gains — especially if you believe that the world will always want an inflation hedge that no central bank can print into oblivion.
On the other hand, a sideways market can test your patience more than a typical drawdown. Some of the whales are gone, the suits have arrived, and the easy moonshots might not be so easy anymore.
🌱 The Trade-Offs of Growing Up
Bitcoin was born in the wild west of finance — an anonymous, volatile, meme-fueled phenomenon. Now, it’s drifting deep into the mainstream. That might limit the fireworks, but it also locks in its place as an asset class that’s not going away.
🌊 Closing Thoughts: The Next Billion-Dollar Move
Will we see another $7,800 investment turn into a cool $1 billion? Maybe not exactly like that. But the game isn’t over — it’s just evolving.
Keep your eyes on the whales, the ETFs, the Fed’s next move , and those onchain breadcrumbs.
Over to you , chart-watchers: does this calm consolidation make you bullish, bearish, or just plain bored? Share your thoughts in the comments!
Pine Screener - Powerful tool for building programmable screenerHello Everyone,
In this video, we have discussed on how to use pine screener utility of tradingview. We are making use of the indicator Divergence Screener for this demonstration and screen stocks undergoing bullish divergence.
In a nutshell, here are the steps:
🎯 Use Stock Screener to build watchlist of less than 1000 symbols
🎯 Add the indicator you want to use in the pine screener to your favorites.
🎯 Pine screener can be accessed from the tradingview screener menu or you can simply click on the link www.tradingview.com
🎯 Add the watchlist and indicator to the pine screener and adjust the timeframe and indicator settings
🎯 Select the criteria to be scanned and press scan
BTC monthly yelling at us for something interesting ?We read daily news about ETF, accumulation by institutes and scarcity in the exchanges, but I recognize something different in the chart based on multiple indicators. Historically, BTC boomed after touching 50 EMA and whenever it is extended it traces back to 50 EMA on monthly chart. As per current data, BTC is extended far from it. Also RSI and MACD indicating that it is losing momentum with -ve divergence. Volume as well descreasing since last leg, though price moved up. So, I expect price to retrace to 50 EMA which coincides with previous high at 60K. Let us see how it unfolds.
How to mark your charts Lightning fast!One of the things I didn't like was marking my charts. I would take so much time marking my charts and adding the prices on the side. My mentor showed me the fastest way. Just use the FIB tool and use "0" and "1". Now you can focus on other important things. I want to thank my mentor for showing me this. Good luck to everyone
Gold on the Move – Major Resistance Levels to Watch AheadThe current price action looks strong, and if the bullish momentum continues, we have three main target levels in mind.
The first target is $3,380. This is an important level we expect gold to reach soon if the trend continues upward.
If the price breaks above $3,380, the next target is $3,433. This level is likely to act as a strong resistance, meaning the price might slow down or pull back here. But if gold can push through it with strength, that’s a strong signal of continued upside.
After that, the third target is $3,495, which would mark a strong extension of the current bullish trend.
As long as gold stays above key support levels, we believe the bullish outlook remains valid, and these targets are possible in the coming days or weeks.
BTC POTENTIAL BULLS TRAP IN DEVELOPMENTI am inspecting the 4 hour candle in comparison to the daily chart on BTC and it seem we have all the characteristics of a bulls trap on the chart. If the next 4 hours candle does not close bullish, it will confirm a bulls trap and price will likely pullback into the triangle. So be cautious trading at this resistance level.
Bull Trap Chart Characteristics
Look for:
A strong bullish candle that breaks above recent highs or resistance.
Volume spike on the breakout — signs that traders are buying.
Followed by a sharp bearish candle (like a shooting star, bearish engulfing, or long wick).
Price falls back below resistance, turning the breakout into a fakeout.
Cheers !!
Gold setup: ascending triangle and Trump’s debt bombGold just formed an ascending triangle, and a breakout could send it $300 higher. In this video, we analyse the new pattern, the key breakout level, and why Trump’s new tax bill and Powell’s potential replacement could spark a major move. Will fundamentals match the technicals? Watch to find out.
Top fundamentals that will shape the S&P 500 this summer 2025The summer of 2025 is characterized by a combination of macroeconomic and microeconomic factors that will shape the trajectory of the US equity market. While the S&P 500 is trading close to its all-time highs and at a valuation comparable to that at the end of 2021, the strength of the upward momentum will depend on the conjunction of several key variables. Understanding these fundamentals is crucial to grasping the potential and risks awaiting investors over the coming months.
1) The trade war and economic diplomacy, the main source of uncertainty
The trade issue remains the most unpredictable at the start of the summer. The July 9 deadline for the conclusion or failure of tariff negotiations is crystallizing tensions between the United States and its main partners. The prospect of a new wave of tariffs could have a direct impact on production costs, inflation and business confidence. Trade diplomacy is thus the variable most likely to provoke volatility jolts and challenge positive earnings growth expectations. If trade agreements are signed, then this will help to sustain the S&P 500's uptrend.
2) US fiscal policy: the “One Big, Beautiful Bill”
The Trump administration's major tax bill is another hotspot. This piece of legislation calls for an extension of the tax cuts initiated in 2017 and a dramatic increase in the public debt ceiling, to the tune of $5,000 billion. While these measures potentially support consumption and private investment, their medium-term impact on public finances is uncertain. The real issue for the equity market is to assess whether these decisions will lead to a surge in long-term US bond yields. A slippage in US Treasury yields would increase corporate financing costs and undermine currently high valuation multiples. Conversely, if yields remain contained, the equity market's upward momentum could continue.
3) Inflation and the Fed's monetary policy: a delicate balance
The trajectory of inflation, in particular that of the PCE index, will be a major determinant. US inflation is currently slightly below the Fed's target. Several components, notably the services sector, which accounts for almost two-thirds of the PCE basket, are proving relatively stable. Inflationary risks are more likely to come from commodities, particularly if trade tensions reignite. Oil, which accounts for around 11% of the PCE basket, is currently showing no major warning signs, benefiting from a geopolitical calm. Real estate and healthcare are also showing reassuring indicators. Against this backdrop, the Federal Reserve is adopting a cautious stance: while several major Western central banks are moving towards a neutral rate, the Fed is stalling and conditioning its monetary pivot on visibility regarding tariffs and corporate behavior.
The timing of rate cuts is one of the biggest sticking points. According to recent signals, the first rate cut could take place as early as September. However, influential members of the FOMC, appointed by the Trump administration, are arguing for earlier easing. The political pressure is strong: Trump is calling for immediate cuts, but Chairman Powell remains in control of the agenda, taking care to preserve a consensus within the committee.
4) The job market and the likelihood of a recession
The US employment situation is an advanced barometer of the economic cycle. Weekly jobless claims and the aggregate unemployment rate are closely monitored. Historically, a significant rise in unemployment signals that the economic slowdown is already underway. For the time being, the labor market is proving resilient, but the slightest deterioration could alter investors' central scenario and reinforce recessionary expectations. This risk is one of the potential dampeners to the prevailing optimism, unless it were to accelerate the timetable for resuming the cut in the federal funds rate.
5) Second-quarter results and earnings outlook
The second-quarter earnings season is of particular importance. US companies must demonstrate their ability to deliver earnings growth in line with forecasts, even as valuation multiples remain stretched. Maintaining high price levels on the S&P 500 assumes robust earnings growth and confident guidance from management. Failing this, the risk of a correction would be high, especially as the market has already incorporated many positive factors. The weakness of the US dollar and the price of oil, as well as the current momentum in AI, could hold out some pleasant surprises for second-quarter results.
6) Geopolitics and oil, potential sources of volatility
Finally, global geopolitics is a second-order variable, but one that could suddenly become a priority. A rapid deterioration in the international situation, particularly in the Middle East or the China Sea, could affect trade flows and oil prices, fuelling renewed inflation and financial volatility.
Conclusion :
The summer of 2025 promises to be a period of strategic transition for the US equity market. Between trade diplomacy, fiscal policy, inflation, the trajectory of interest rates and earnings momentum, investors will have to deal with an accumulation of uncertain factors. If these uncertainties gradually dissipate, the uptrend could continue. Conversely, the combination of a geopolitical shock, a rebound in inflation and a political stalemate over the federal budget would have the potential to weaken the current rally.
DISCLAIMER:
This content is intended for individuals who are familiar with financial markets and instruments and is for information purposes only. The presented idea (including market commentary, market data and observations) is not a work product of any research department of Swissquote or its affiliates. This material is intended to highlight market action and does not constitute investment, legal or tax advice. If you are a retail investor or lack experience in trading complex financial products, it is advisable to seek professional advice from licensed advisor before making any financial decisions.
This content is not intended to manipulate the market or encourage any specific financial behavior.
Swissquote makes no representation or warranty as to the quality, completeness, accuracy, comprehensiveness or non-infringement of such content. The views expressed are those of the consultant and are provided for educational purposes only. Any information provided relating to a product or market should not be construed as recommending an investment strategy or transaction. Past performance is not a guarantee of future results.
Swissquote and its employees and representatives shall in no event be held liable for any damages or losses arising directly or indirectly from decisions made on the basis of this content.
The use of any third-party brands or trademarks is for information only and does not imply endorsement by Swissquote, or that the trademark owner has authorised Swissquote to promote its products or services.
Swissquote is the marketing brand for the activities of Swissquote Bank Ltd (Switzerland) regulated by FINMA, Swissquote Capital Markets Limited regulated by CySEC (Cyprus), Swissquote Bank Europe SA (Luxembourg) regulated by the CSSF, Swissquote Ltd (UK) regulated by the FCA, Swissquote Financial Services (Malta) Ltd regulated by the Malta Financial Services Authority, Swissquote MEA Ltd. (UAE) regulated by the Dubai Financial Services Authority, Swissquote Pte Ltd (Singapore) regulated by the Monetary Authority of Singapore, Swissquote Asia Limited (Hong Kong) licensed by the Hong Kong Securities and Futures Commission (SFC) and Swissquote South Africa (Pty) Ltd supervised by the FSCA.
Products and services of Swissquote are only intended for those permitted to receive them under local law.
All investments carry a degree of risk. The risk of loss in trading or holding financial instruments can be substantial. The value of financial instruments, including but not limited to stocks, bonds, cryptocurrencies, and other assets, can fluctuate both upwards and downwards. There is a significant risk of financial loss when buying, selling, holding, staking, or investing in these instruments. SQBE makes no recommendations regarding any specific investment, transaction, or the use of any particular investment strategy.
CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. The vast majority of retail client accounts suffer capital losses when trading in CFDs. You should consider whether you understand how CFDs work and whether you can afford to take the high risk of losing your money.
Digital Assets are unregulated in most countries and consumer protection rules may not apply. As highly volatile speculative investments, Digital Assets are not suitable for investors without a high-risk tolerance. Make sure you understand each Digital Asset before you trade.
Cryptocurrencies are not considered legal tender in some jurisdictions and are subject to regulatory uncertainties.
The use of Internet-based systems can involve high risks, including, but not limited to, fraud, cyber-attacks, network and communication failures, as well as identity theft and phishing attacks related to crypto-assets.
Debugging Pine Script with log.info()log.info() is one of the most powerful tools in Pine Script that no one knows about. Whenever you code, you want to be able to debug, or find out why something isn’t working. The log.info() command will help you do that. Without it, creating more complex Pine Scripts becomes exponentially more difficult.
The first thing to note is that log.info() only displays strings. So, if you have a variable that is not a string, you must turn it into a string in order for log.info() to work. The way you do that is with the str.tostring() command. And remember, it's all lower case! You can throw in any numeric value (float, int, timestamp) into str.string() and it should work.
Next, in order to make your output intelligible, you may want to identify whatever value you are logging. For example, if an RSI value is 50, you don’t want a bunch of lines that just say “50”. You may want it to say “RSI = 50”.
To do that, you’ll have to use the concatenation operator. For example, if you have a variable called “rsi”, and its value is 50, then you would use the “+” concatenation symbol.
EXAMPLE 1
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//@version=6
indicator("log.info()")
rsi = ta.rsi(close,14)
log.info(“RSI= ” + str.tostring(rsi))
Example Output =>
RSI= 50
Here, we use double quotes to create a string that contains the name of the variable, in this case “RSI = “, then we concatenate it with a stringified version of the variable, rsi.
Now that you know how to write a log, where do you view them? There isn’t a lot of documentation on it, and the link is not conveniently located.
Open up the “Pine Editor” tab at the bottom of any chart view, and you’ll see a “3 dot” button at the top right of the pane. Click that, and right above the “Help” menu item you’ll see “Pine logs”. Clicking that will open that to open a pane on the right of your browser - replacing whatever was in the right pane area before. This is where your log output will show up.
But, because you’re dealing with time series data, using the log.info() command without some type of condition will give you a fast moving stream of numbers that will be difficult to interpret. So, you may only want the output to show up once per bar, or only under specific conditions.
To have the output show up only after all computations have completed, you’ll need to use the barState.islast command. Remember, barState is camelCase, but islast is not!
EXAMPLE 2
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//@version=6
indicator("log.info()")
rsi = ta.rsi(close,14)
if barState.islast
log.info("RSI=" + str.tostring(rsi))
plot(rsi)
However, this can be less than ideal, because you may want the value of the rsi variable on a particular bar, at a particular time, or under a specific chart condition. Let’s hit these one at a time.
In each of these cases, the built-in bar_index variable will come in handy. When debugging, I typically like to assign a variable “bix” to represent bar_index, and include it in the output.
So, if I want to see the rsi value when RSI crosses above 0.5, then I would have something like:
EXAMPLE 3
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//@version=6
indicator("log.info()")
rsi = ta.rsi(close,14)
bix = bar_index
rsiCrossedOver = ta.crossover(rsi,0.5)
if rsiCrossedOver
log.info("bix=" + str.tostring(bix) + " - RSI=" + str.tostring(rsi))
plot(rsi)
Example Output =>
bix=19964 - RSI=51.8449459867
bix=19972 - RSI=50.0975830828
bix=19983 - RSI=53.3529808079
bix=19985 - RSI=53.1595745146
bix=19999 - RSI=66.6466337654
bix=20001 - RSI=52.2191767466
Here, we see that the output only appears when the condition is met.
A useful thing to know is that if you want to limit the number of decimal places, then you would use the command str.tostring(rsi,”#.##”), which tells the interpreter that the format of the number should only be 2 decimal places. Or you could round the rsi variable with a command like rsi2 = math.round(rsi*100)/100 . In either case you’re output would look like:
bix=19964 - RSI=51.84
bix=19972 - RSI=50.1
bix=19983 - RSI=53.35
bix=19985 - RSI=53.16
bix=19999 - RSI=66.65
bix=20001 - RSI=52.22
This would decrease the amount of memory that’s being used to display your variable’s values, which can become a limitation for the log.info() command. It only allows 4096 characters per line, so when you get to trying to output arrays (which is another cool feature), you’ll have to keep that in mind.
Another thing to note is that log output is always preceded by a timestamp, but for the sake of brevity, I’m not including those in the output examples.
If you wanted to only output a value after the chart was fully loaded, that’s when barState.islast command comes in. Under this condition, only one line of output is created per tick update — AFTER the chart has finished loading. For example, if you only want to see what the the current bar_index and rsi values are, without filling up your log window with everything that happens before, then you could use the following code:
EXAMPLE 4
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//@version=6
indicator("log.info()")
rsi = ta.rsi(close,14)
bix = bar_index
if barstate.islast
log.info("bix=" + str.tostring(bix) + " - RSI=" + str.tostring(rsi))
Example Output =>
bix=20203 - RSI=53.1103309071
This value would keep updating after every new bar tick.
The log.info() command is a huge help in creating new scripts, however, it does have its limitations. As mentioned earlier, only 4096 characters are allowed per line. So, although you can use log.info() to output arrays, you have to be aware of how many characters that array will use.
The following code DOES NOT WORK! And, the only way you can find out why will be the red exclamation point next to the name of the indicator. That, and nothing will show up on the chart, or in the logs.
// CODE DOESN’T WORK
//@version=6
indicator("MW - log.info()")
var array rsi_arr = array.new()
rsi = ta.rsi(close,14)
bix = bar_index
rsiCrossedOver = ta.crossover(rsi,50)
if rsiCrossedOver
array.push(rsi_arr, rsi)
if barstate.islast
log.info("rsi_arr:" + str.tostring(rsi_arr))
log.info("bix=" + str.tostring(bix) + " - RSI=" + str.tostring(rsi))
plot(rsi)
// No code errors, but will not compile because too much is being written to the logs.
However, after putting some time restrictions in with the i_startTime and i_endTime user input variables, and creating a dateFilter variable to use in the conditions, I can limit the size of the final array. So, the following code does work.
EXAMPLE 5
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
// CODE DOES WORK
//@version=6
indicator("MW - log.info()")
i_startTime = input.time(title="Start", defval=timestamp("01 Jan 2025 13:30 +0000"))
i_endTime = input.time(title="End", defval=timestamp("1 Jan 2099 19:30 +0000"))
var array rsi_arr = array.new()
dateFilter = time >= i_startTime and time <= i_endTime
rsi = ta.rsi(close,14)
bix = bar_index
rsiCrossedOver = ta.crossover(rsi,50) and dateFilter // <== The dateFilter condition keeps the array from getting too big
if rsiCrossedOver
array.push(rsi_arr, rsi)
if barstate.islast
log.info("rsi_arr:" + str.tostring(rsi_arr))
log.info("bix=" + str.tostring(bix) + " - RSI=" + str.tostring(rsi))
plot(rsi)
Example Output =>
rsi_arr:
bix=20210 - RSI=56.9030578034
Of course, if you restrict the decimal places by using the rounding the rsi value with something like rsiRounded = math.round(rsi * 100) / 100 , then you can further reduce the size of your array. In this case the output may look something like:
Example Output =>
rsi_arr:
bix=20210 - RSI=55.6947486019
This will give your code a little breathing room.
In a nutshell, I was coding for over a year trying to debug by pushing output to labels, tables, and using libraries that cluttered up my code. Once I was able to debug with log.info() it was a game changer. I was able to start building much more advanced scripts. Hopefully, this will help you on your journey as well.
Biggest What-Ifs in Stocks (or How Investors Live with Regret)You think you’ve got regrets because you didn’t buy Nvidia NASDAQ:NVDA at $50 or sold Tesla NASDAQ:TSLA at $420? Join the club.
The stock market’s history is littered with “almost” trades, missed deals, and facepalm-worthy decisions that turned out to be trillion-dollar pivots.
This is the hall of fame for what didn’t happen — and what those stories teach us about how markets (and human nature) actually work. Call it a free masterclass in greed, fear, FOMO, and the priceless value of just sitting tight sometimes.
Take it easy today, grab your cold brew and read up on the biggest what-ifs in stock market history.
🍏 Ronald Wayne: The Patron Saint of “Oops”
Our first inductee needs no introduction. But let’s do it anyway. Ronald Wayne, the third Apple NASDAQ:AAPL co-founder, sold his 10% stake back in 1976 for the princely sum of $800. He wanted to avoid any debts if things went south. Sensible, right?
That $800 stake today would be worth more than $300 billion. That’s more than the GDP of Finland — and about 1.2 million new iPhones every single day for pretty much the rest of his life. Wayne has since said he doesn’t regret it. Which is probably the biggest lie he’s ever told.
🍿 Blockbuster’s Netflix “Pass”
In 2000, Netflix NASDAQ:NFLX was a DVD-by-mail startup with spotty profits. Reed Hastings, Netflix’s founder, knocked on Blockbuster’s door and offered to sell the whole thing for $50 million — about the price of a Hollywood production.
Blockbuster’s execs reportedly laughed him out of the room. “People will always want to drive to a store to rent a VHS,” they said, basically. Fast forward: Netflix is worth around $560 billion, and Blockbuster is down to one store that’s mostly a selfie museum for millennials who miss rewinding tapes.
💻 Microsoft’s Lifeline That Saved Apple
In 1997, Apple NASDAQ:AAPL was broke. Steve Jobs had returned but was days away from the company flat-lining for good. Enter Bill Gates.
Microsoft NASDAQ:MSFT wrote Apple a $150 million check, partly to keep antitrust regulators off its back. Jobs even appeared on stage with Gates beaming in on a giant screen like Big Brother — a moment that made every Apple fan cringe.
But that deal saved Apple’s hide. The iMac was born. The iPod followed. Then the iPhone. That $150 million is now a rounding error on Apple’s $3 trillion valuation. Sometimes your greatest rival is also your best frenemy.
🔍 Google: The $750K “Meh”
Before “Google it” became a verb, Larry Page and Sergey Brin tried to sell their little search engine to Excite — the Yahoo-lite portal that dominated the ‘90s web. The price? $750,000.
Excite’s CEO said search “wasn’t that important” — one of the worst calls in tech history. Today, Alphabet NASDAQ:GOOGL is worth over $2.1 trillion and always flashing bright on the Stock Heatmap , and Excite is a footnote in a forgotten Web 1.0 graveyard.
The lesson? Never dismiss a side project just because it doesn’t fit the spreadsheet.
💸 Masayoshi Son’s $200 Billion Slip
SoftBank’s Masayoshi Son is known for his giant, risky bets . And in 2017, he made a pretty good one: his Vision Fund scooped up a 5% chunk of Nvidia stock worth about $4 billion. He called GPUs the backbone of the AI revolution. He was right.
But by 2019, SoftBank was under pressure to tidy up its books. So Son sold the whole position for a tidy short-term profit. That stake today would be worth nearly $200 billion, given Nvidia’s rocket-fuel AI rally .
“We can cry together,” CEO Jensen Huang told Masa Son at an AI Summit in Tokyo last year. Early doesn’t always mean patient. And being “kind of right” can be the most painful lesson of all.
📊 Berkshire Hathaway: A Textile Mill’s Rebirth
Think of Berkshire Hathaway NYSE:BRK.A now — a $1 trillion behemoth. Insurance, utilities, railroads, huge piles of Apple shares . But back when Warren Buffett bought it, Berkshire was a dying textile business in New England.
Buffett only bought control because he was annoyed at the CEO’s lowball tender offer. It turned into his permanent holding company. The textile side eventually went extinct — but the insurance side became the cash-printing machine Buffett used to buy everything else.
Sometimes your best trade starts with pure pettiness.
🚀 Tesla: The Short Sellers’ Pain Cave
Here’s a more recent tale. Tesla was not long ago the most shorted stock on Earth. Everyone from hedge funds to your uncle at Thanksgiving was betting on Elon’s dream to fail.
Every now and then, the short-sellers get slapped with billions of dollars in losses, because the stock shoots up out of nowhere. The most recent example? November 12, when those naysayers nursed $7 billion in wiped out cash . Bears have been torched so many times, they might as well switch sides and sell Tesla hoodies instead.
🌌 Yahoo’s Double Miss: Google and Facebook
If you think blowing one chance is bad, try blowing two. Yahoo turned down the chance to buy Google for less than a million bucks. Then years later, they offered $1 billion for Facebook (now META NASDAQ:META ) — but bungled the negotiations and tried to lower the price. Zuck said “nope.”
But back to Google, because the story didn’t end there. In 2002, Yahoo said it wanted to buy Google for $3 billion. Brin and Page said $5 billion and Yahoo said no. Then Microsoft was ready to pay $40 billion to acquire Yahoo in 2008. But Yahoo said no.
Today, Google, Microsoft, and Meta are trillion-dollar titans. Yahoo? Sold itself for $4.5 billion, mostly for its patents, in 2016 to Verizon. Talk about slipping on the same banana peel more than once.
🧃 Apple: The Splits that Keep Giving
Want a reason to love boring old “buy and hold”? Apple NASDAQ:AAPL has split its stock five times since its 1980 IPO. If you’d bought 100 shares back then, you’d now have over 56,000 shares, plus mountains of dividends.
Next time you want to swing trade every squiggle, remember: sometimes the slowest route is the sweetest.
📝 Regret: The Only Universal Asset Class
Every trader has a “coulda, shoulda, woulda.” It’s the cost of doing business in a market that only makes sense in hindsight. Even the pros — billionaires, boards, hedge funds — have stories that make yours look tame.
Ronald Wayne reminds you that selling too soon can cost you your own island. Masayoshi Son proves being right but impatient is still being wrong. Yahoo shows that “almost” is worth exactly zero on a balance sheet.
What these stories prove is that the market’s biggest edge isn’t necessarily timing, genius, or inside scoops — it’s discipline, resilience, and sometimes a stubborn refusal to touch the sell button.
🤗 Bonus Story: Ballmer Regrets Nothing
But not every story has to be a regret story. Just look at Steve Ballmer, Microsoft ‘s former CEO. Since the early 2000s, he’s been holding his 4% stake in the software maker and that’s now worth more than $130 billion. No regrets found.
👉 What’s Your “One That Got Away”?
Now your turn : What’s your personal what-if story? Which ticker haunts you in your sleep? Drop your best missed trade or worst sell in the comments — we promise to laugh with you, not at you. Probably. Stay sharp. Stay patient!
Valero Breaks the DowntrendValero Energy spent more than a year in a downtrend, but some traders may think conditions have changed.
The first pattern on today’s chart is the series of lower highs between April 2024 and May 2025. VLO pushed above that falling trendline last month and has remained there since. That may suggest its longer-term direction is turning higher.
Second is the price area between roughly $132 and $136. The oil refiner peaked there in March, April and May. But it made a low in the same zone last week and this week. Is old resistance becoming new support?
Third, prices have remained above the rising 21-day exponential moving average. They’re also above the 200-day simple moving average. Those patterns may be consistent with emerging bullishness in the short and long terms.
Check out TradingView's The Leap competition sponsored by TradeStation.
TradeStation has, for decades, advanced the trading industry, providing access to stocks, options and futures. If you're born to trade, we could be for you. See our Overview for more.
Past performance, whether actual or indicated by historical tests of strategies, is no guarantee of future performance or success. There is a possibility that you may sustain a loss equal to or greater than your entire investment regardless of which asset class you trade (equities, options or futures); therefore, you should not invest or risk money that you cannot afford to lose. Online trading is not suitable for all investors. View the document titled Characteristics and Risks of Standardized Options at www.TradeStation.com . Before trading any asset class, customers must read the relevant risk disclosure statements on www.TradeStation.com . System access and trade placement and execution may be delayed or fail due to market volatility and volume, quote delays, system and software errors, Internet traffic, outages and other factors.
Securities and futures trading is offered to self-directed customers by TradeStation Securities, Inc., a broker-dealer registered with the Securities and Exchange Commission and a futures commission merchant licensed with the Commodity Futures Trading Commission). TradeStation Securities is a member of the Financial Industry Regulatory Authority, the National Futures Association, and a number of exchanges.
TradeStation Securities, Inc. and TradeStation Technologies, Inc. are each wholly owned subsidiaries of TradeStation Group, Inc., both operating, and providing products and services, under the TradeStation brand and trademark. When applying for, or purchasing, accounts, subscriptions, products and services, it is important that you know which company you will be dealing with. Visit www.TradeStation.com for further important information explaining what this means.
Middle East War Whispers: Is Bitcoin About to Crash?The scent of conflict is once again in the air over the Middle East. Tensions are rising, and traders are starting to worry.
If war erupts once more in the region, will Bitcoin and the crypto market survive? Or should we prepare for a heavy drop?
In this analysis, we’ll explore realistic scenarios and tools that experienced traders use to protect themselves in moments like these.
Hello✌
Spend 3 minutes ⏰ reading this educational material.
🎯 Analytical Insight on Official Trump:
Official Trump continues to exhibit high sensitivity to political narratives and has recently entered a multi-leg correction phase amid escalating Middle East tensions 🌍. Based on current price structure and sentiment flow, a potential drawdown of approximately 30% appears likely, with a key downside target projected near the $6 region 📉.
Now , let's dive into the educational section,
📌 How Markets Have Reacted to Geopolitical Tension
Historically, during major geopolitical flare-ups, risk markets like crypto have shown heightened sensitivity. What matters most isn’t the exact nature of the conflict — it’s how the market interprets the situation. Price doesn’t move on truth; it moves on perception.
🔍 TradingView Tools to Navigate Crisis and Spot Potential Sell-Offs 📊
When fear dominates the market and uncertainty clouds every candle, TradingView’s built-in tools become essential for staying ahead. Let’s explore the most practical ones for moments like this:
Market Sentiment Indicators
Tools like the Crypto Fear & Greed Index combined with higher time-frame volume analysis can help you track the mood swings that drive market volatility.
Layered Watchlists
Create watchlists that compare major projects with volatile meme coins or micro-caps. Early exits often show up as disproportionate drops in smaller assets before the big ones move.
Smart Alerts Based on Price Behavior
Set up alerts not just for price levels, but for candle closes, trendline breaks, and sudden volume shifts. These help you act swiftly, without letting fear control you.
Cross-Market Correlation Tracking
Use TradingView’s Compare function to monitor Bitcoin’s correlation with assets like gold, oil, or the dollar index. Shifts in capital flow toward safe havens may signal a crypto downturn.
Heatmaps for Crowd Behavior
Heatmaps let you see real-time buying and selling intensity. During panic phases, expanding red zones on the map could indicate larger market fear and potential liquidation zones.
🎯 What Should You Do? Scenarios and Strategic Responses
When the headlines are hot but the charts unclear, neither blind holding nor panic selling helps. Let’s break down potential paths:
Scenario One: Sudden and Escalating Conflict
A quick escalation may trigger immediate sell pressure. Watch for key levels and volume patterns to protect or hedge open positions.
Scenario Two: Prolonged News-Driven Tension
This usually creates choppy, range-bound price action. Combining momentum indicators like RSI with moving averages can help filter out fake-outs.
Scenario Three: The Dangerous Silence
A flat, quiet market can hide a ticking bomb. Underlying sell pressure might build unnoticed. Combining macro news with multi-timeframe analysis is key here.
🧠 Psychology of Fear in Unstable Times
In unstable markets, emotion drives action. When fear spreads faster than facts, many traders get caught off guard. Relying solely on what your eyes see in price action can mislead you. Instead, look at alerts, volume shifts, sentiment data, and crowd reactions.
⛑️ Final Tip for Traders
During crisis rumors and uncertainty, the worst decisions often come from rushing or overreacting. If you don’t have a clear plan, stay out. Use the tools available, prepare for multiple outcomes, and remember — your capital is your power. Don’t gamble it on noise.
🧾 Final Thoughts
The market stands at a psychological and strategic crossroad. With Middle East tensions rising again, crypto traders must prepare, not panic. Use the depth of TradingView tools, plan for different outcomes, and react with logic — not fear.
In times of crisis, survival comes before profit.
✨ Need a little love!
We put so much love and time into bringing you useful content & your support truly keeps us going. don’t be shy—drop a comment below. We’d love to hear from you! 💛
Big thanks, Mad Whale 🐋
📜Please remember to do your own research before making any investment decisions. Also, don’t forget to check the disclaimer at the bottom of each post for more details.
EURJPY is rising to 173 for a bearish and larger pattern.EURJPY is rising to 173 for a bearish and larger pattern.
Since the beginning of March 2025, EURJPY started an uptrend and is still rising in a clear way with no signs of reversal.
As long as the BOJ has no plans to change its monetary policy statement or make any significant interventions in Forex, then EURJPY can continue to rise higher.
There is a high possibility that Eurjpy will complete a major daily harmonic pattern near 173.00.
Given that EURJPY may be close to the all-time high zone, the reversal could also occur within the zone, but I think EURJPY may start a reversal between 173.00 and the higher level. We can look for sell signals there.
At the moment, EURJPY is rising and may rise to 173.00, although not in a clear way.
You may find more details in the chart!
Thank you and Good Luck!
PS: Please support with a like or comment if you find this analysis useful for your trading day
Disclosure: I am part of Trade Nation's Influencer program and receive a monthly fee for using their TradingView charts in my analysis.
Bitcoin Fractal, increase to $116k Hi Everyone☕👋
BINANCE:BTCUSDT
Been such a long time since I posted. Today I'm looking at BTCUSDT, and I'm looking at the previous all time high cycle and what we were seeing (the pattern aka fractal).
Here's why we're likely going a little higher.
First correction of -32%
Followed by first peak, ATH
Correction, then the second peak and the REAL ath. Which is where we likely are:
Interesting to note that the previous time, the second ath was NOT THAT MUCH HIGHER. This should be considered to manage expectations in terms of how high we can go. Anything above +6% is a bonus.
How to Trade Double Tops & Bottoms in TradingViewLearn how to identify, validate, and trade double top and double bottom reversal patterns using TradingView's charting tools in this comprehensive tutorial from Optimus Futures. Understanding these classic chart formations can help you spot potential trend reversals and capitalize on contrarian trading opportunities in the futures markets.
What You'll Learn:
• Understanding contrarian vs. continuation trading strategies and when to use each approach
• The psychology behind buying low and selling high through reversal pattern trading
• How to identify double top and double bottom formations on any timeframe
• Key characteristics of valid double tops and bottoms, including volume confirmation
• Using TradingView's XABCD pattern tool to validate potential double top/bottom setups
• Real-world example analysis using crude oil futures charts
• Risk management techniques for trading reversal patterns
• How to calculate appropriate entry points, stop losses, and profit targets
• Setting up 1:1 risk-reward ratios for mathematical trading edge
• Understanding win rate requirements for profitable pattern trading
• How double bottom patterns work as the inverse of double top formations
This tutorial may benefit futures traders, swing traders, and technical analysts interested in contrarian trading strategies and reversal pattern recognition. The concepts covered could help you identify potential turning points in market trends and develop systematic approaches to trading these classic chart formations.
Visit Optimus Futures to learn more about trading futures with TradingView: optimusfutures.com/Platforms/TradingView.php
Disclaimer:
There is a substantial risk of loss in futures trading. Past performance is not indicative of future results. Please trade only with risk capital. We are not responsible for any third-party links, comments, or content shared on TradingView. Any opinions, links, or messages posted by users on TradingView do not represent our views or recommendations. Please exercise your own judgment and due diligence when engaging with any external content or user commentary.
This video represents the opinion of Optimus Futures and is intended for educational purposes only. Chart interpretations are presented solely to illustrate objective technical concepts and should not be viewed as predictive of future market behavior. In our opinion, charts are analytical tools—not forecasting instruments. Market conditions are constantly evolving, and all trading decisions should be made independently, with careful consideration of individual risk tolerance and financial objectives.