Skip to main content

What is valuewhen in Pine Script?

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

ta.valuewhen is a Pine Script function that returns a value from a historical bar where a specified condition was true. It acts as market memory for your scripts. Instead of watching price move in real time and guessing what happened last time something similar occurred, you capture the exact number and use it.

I spent last month backtesting a golden cross strategy on AAPL. Without valuewhen, I had to scroll around the chart manually, trying to remember what the RSI was reading when each cross happened. With it, I pulled those values in seconds. That single function changed how I build indicators.

What Language is Pine Script? TradingView's Language for Indicators

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

You know that feeling when someone mentions "Pine Script" and you nod along, pretending you totally get it? Yeah, I've been there too. Pine Script is TradingView's own programming language, purpose-built for traders who want to create custom indicators and automate strategies without a computer science degree. Understanding what it actually is changes how you approach trading on TradingView completely.

Why Are My Orders Getting Rejected on TradingView?

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

I've had plenty of TradingView orders bounced back over the years. One morning last March I was trying to enter a EUR/USD position and kept getting "Order rejected" — no explanation, just a red popup. Turns out my available margin was $300 short because of an open GBP/JPY trade I'd forgotten about. A TradingView order rejection is the platform's way of telling you that something in your setup or the current market environment needs attention. Most of the time it's a simple fix, not a platform bug.

I've worked through dozens of these rejections across different brokers, and the causes fall into a few predictable buckets. Here's what I've learned about each one.


Why Are My Orders Getting Rejected on TradingView?

Williams Accumulation Distribution Indicator for TradingView

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

The Williams Accumulation Distribution (WAD) indicator is a price-action-based tool that reveals institutional buying and selling pressure without requiring volume data. Here's something most traders don't realize: you can spot smart money accumulation just by how price closes relative to its true range.

Created by Larry Williams—the same trader who turned $10,000 into over $1 million in the World Cup Trading Championship—WAD strips away noise and focuses on one question: are professionals accumulating or distributing?

Unlike volume-dependent indicators that fail in forex and crypto, WAD works everywhere. Bitcoin at 3 AM or blue-chip stocks during market hours—price tells the real story, and WAD knows how to listen.

Williams %R Indicator: Williams Percent Range TradingView Settings

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

The Williams %R indicator has been around since the 1970s, and most people still use it backward. Williams %R (also called Williams Percent Range) is a momentum gauge that swings between 0 and -100, measuring where the current close sits compared to the highest high and lowest low over a lookback period. Larry Williams designed it to catch market reversals, and I've found it works — but only if you interpret the signals correctly.

Wisesheets vs Pineify AI Finance Agent: Smarter Stock Research

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

I've used both Wisesheets and Pineify AI Finance Agent for stock research over the past six months. Here's the short version: if you need a spreadsheet data feed and nothing else, Wisesheets does the job. But if you want AI that actually talks back, analyzes filings, and screens stocks in natural language, Pineify wins. Pineify AI Finance Agent is an AI-powered conversational research platform that connects to live financial data feeds and responds to plain-English questions. It covers 11,000+ stocks, 400+ crypto and forex pairs, and 90+ financial data tools through a single chat interface.


Wisesheets Alternative: Pineify AI Finance Agent - Smarter Stock Research Tool

Zweig Market Breadth Thrust Indicator: TradingView Setup Guide

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

I missed the August 2024 rally by three days. Sitting there watching the S&P 500 rip higher while I was flat — that stung. Then I realized the Zweig Market Breadth Thrust indicator had been screaming BUY for a week. I just wasn't watching it.

The Zweig Market Breadth Thrust indicator is a market-wide oscillator that measures how many NYSE stocks participate in a move. It calculates the ratio of advancing stocks to total moving stocks, then smooths the result with a 10-day exponential moving average. When this ratio crosses above 0.615 or below 0.4, it signals a rare but powerful shift in market internals. Martin Zweig built this to answer whether a market move is broad-based or just a few megacaps fooling everyone.

Zweig Market Breadth Thrust Indicator