Skip to main content

564 posts tagged with "TradingView"

Blog posts related to the TradingView

View All Tags

Pine Script array.push() — How to Add Elements to Arrays

· 9 min read
Pineify Team
Pine Script and AI trading workflow research team

I remember my first attempt at tracking price highs across bars in a TradingView script. I used a regular variable and lost every value except the last one. Pine Script array.push() is a function that adds new elements to the end of an array, letting you build dynamic data collections inside your indicators and strategies. Whether you're tracking RSI across 50 symbols or building a custom volatility tracker, this function is the tool I reach for.

Detect the First Bar of Each Trading Day in Pine Script

· 13 min read
Pineify Team
Pine Script and AI trading workflow research team

First bar of day detection in Pine Script is the technique of identifying when a new trading session begins on an intraday chart. I use this constantly for opening range breakout systems and market open alerts. Maybe that's what you're after too?

I tested this on AAPL's 5-minute chart across Q1 2025, and the first bar fired at 9:30 AM ET every single trading day. On Monday January 6th, the script correctly picked up the first bar after the weekend gap on SPY as well.

Pine Script First Bar of Day

Pine Script Timeframe Input: Build Flexible Indicators with input.timeframe

· 8 min read
Pineify Team
Pine Script and AI trading workflow research team
Pineify | Best Pine Script Editor

input.timeframe() is a Pine Script function that adds a timeframe selector drop-down to any indicator's settings panel. Pick '15m', '1h', or 'D' from the menu — no code edits. I stumbled onto this in 2022 while building a multi-timeframe RSI for AAPL, and it changed how I structure every indicator.

Before using it, I kept separate scripts for each resolution. RSI_5min, RSI_1hour, RSI_daily — a cluttered folder of near-identical files. input.timeframe() collapses all that into one clean script.

Pine Script Timestamps: How to Use Time Functions in TradingView

· 8 min read
Pineify Team
Pine Script and AI trading workflow research team

Pine Script timestamps are UNIX millisecond counters that tell you when each bar opened, closed, or where you are in real-time. Every bar on a TradingView chart carries one, and if you've built a strategy that needs to know what time it is, you've already dealt with them. I spent a whole afternoon debugging my first time filter on SPY — turned out I was comparing seconds to milliseconds.

Blue Sky Day No-Repaint Script: TradingView Breakout Strategy

· 8 min read
Pineify Team
Pine Script and AI trading workflow research team

The Blue Sky Day script on TradingView is a no-repaint breakout indicator for forex and stock traders. A no-repaint indicator locks its signals in place once they appear — no retroactive changes when a new candle closes. I've traded with it on EUR/USD 15-minute charts since September, and I prefer it over conventional moving average crosses because the entries are cleaner and the targets are built in.

Mastering the Blue Sky Day Script on TradingView

MT4 Backtesting: How to Test and Optimize Strategies in MetaTrader 4

· 16 min read
Pineify Team
Pine Script and AI trading workflow research team

MetaTrader 4 backtesting is the process of running your trading strategy through historical market data to evaluate its performance without risking real capital. I've run hundreds of these tests myself, and I can tell you: the gap between a strategy that looks good on paper and one that actually works is almost always revealed during a proper backtest. MT4's built-in Strategy Tester handles the simulation inside the platform you're already using, whether you're testing a manual rule set or an automated Expert Advisor (EA).


MetaTrader 4 Backtesting: Complete Guide to Testing and Optimizing Trading Strategies

Momentum Indicator: How to Spot Trend Strength on TradingView

· 10 min read
Pineify Team
Pine Script and AI trading workflow research team

I've been watching AAPL since early October 2025, and the Momentum indicator caught something I nearly missed. Price was grinding higher, but the indicator had already peaked three weeks earlier. That bearish divergence saved me from buying into a $4 pullback.

The Momentum indicator measures the velocity of price changes by comparing the current price to a past price, typically 10 periods ago. A positive reading means prices are climbing; negative means they're falling. The steeper the line, the faster the move.

Momentum Investing Strategy: How to Ride Market Trends for Profits

· 20 min read
Pineify Team
Pine Script and AI trading workflow research team

Momentum investing is about following the trend. An asset moving up or down in price will often keep moving that direction for a while. I think of it like catching a wave—you jump on when it's already building momentum and ride it until it fades.

Instead of hunting for undervalued bargains, this approach buys assets that are already performing well and sells those that are struggling. It's a "buy high, sell higher" mindset. Research backs this as a way to boost returns, especially over shorter time frames. I've personally found it works best in strongly trending markets like the NASDAQ-100 during 2023-2024, where momentum strategies returned roughly 15-20% annually in backtests.

Momentum Investing Strategy: Complete Guide to Riding Market Trends for Profits

Money Flow Index (MFI): Volume-Weighted Momentum Signals

· 9 min read
Pineify Team
Pine Script and AI trading workflow research team

I missed a TSLA breakout in March 2025 because I was glued to RSI — the price surged, but volume told the real story. That's when I started using the Money Flow Index (MFI). It's a momentum oscillator that weights each price bar by the volume behind it, so you see not just where price went, but whether real money pushed it there.