This strategy uses a fast and slow exponential moving average crossover to generate long and short signals. Optional filters restrict signals to a 30-minute chart and weekdays. When a crossover points in the opposite direction, the script closes the existing…
Knowledge library
Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.
Search the library
9,660 documents
This chart indicator marks configurable Sydney, Tokyo, London, and New York trading windows. It draws each session’s high-low range and separately highlights its opening hour. Once that hour has elapsed, it plots a horizontal level at the prior bar’s close,…
This chart indicator constructs a Gann box from the visible chart's highest high and lowest low, then divides the price and time span using configurable percentage levels. It can display the box, level labels, a fan of diagonal lines, curves, and Gann…
This educational strategy template limits new entries to a user-defined session. Traders can choose between breakouts through the developing session high or low and fast-versus-slow EMA crosses. A switch can restrict entries to one per session day. The…
This intraday MNQ strategy builds an opening range from the first configurable minutes after the New York session opens, then places breakout entries beyond its high or low with a tick buffer. It can require price to be on the matching side of VWAP, cap the…
This Pine library provides two ways to represent finite-state machines: a matrix for transitions driven by one event, and a map-based design intended to handle concurrent events. Rules map a current state and event to a next state. In the matrix version,…
This Pine library supplies functions that calculate values relative to the bars currently shown on a chart. It can identify visible-range boundaries, cumulative visible volume and bar count, and the running highest high and lowest low with their bar indices…
This strategy provides configurable long and short entries driven by user-selected signal sources. In single mode, one source must be positive; dual mode requires two sources in the same direction. Entries can be limited to enabled evening, overnight, or New…
This strategy requires agreement among a moving average trend filter, a break of the latest pivot swing, a recent fair value gap, and above-average volume. Long and short setups are aligned with price above or below the selected SMA and EMA, respectively. A…
This intraday strategy seeks pullbacks in the direction of a higher-timeframe bias. The bias requires price to be on the matching side of VWAP and the fast EMA to be above or below the slow EMA; an optional higher-timeframe EMA filter can add another trend…
This educational strategy template demonstrates how to attach structured webhook messages to strategy order fills. Its example entry logic uses a fast and slow moving average crossover, while configurable exits use either an average true range-based stop or…
This TradingView indicator imports and decodes Forex Factory news data, then filters events by currency and expected impact. It presents selected events in a chart table and can draw event lines and labels over price history. Currency selection can be…
This XAUUSD strategy uses the relationship between 20-period and 50-period exponential moving averages to define direction. It enters long when price crosses above the faster average while that average is above the slower one, and enters short on the inverse…
This indicator manages a user-defined long or short trade from a selected chart time and price. It offers four stop approaches: an offset based on ATR, a percentage of price, recent swing highs or lows, or Parabolic SAR. For ATR and percentage modes, the…
This document describes a reusable TradingView strategy framework intended to let users supply their own long and short signals while retaining common backtest controls. Its interface separates entry triggers from directional filters, with four named…
This Pine Script library draws horizontal rays from user-defined conditions and price levels. A ray can extend to the right or stop at the current bar; when price reaches the level, the active ray is removed and may be retained as a historical line. Its…
This strategy uses the SuperTrend indicator, calculated from ATR length and multiplier inputs, to classify the market as bullish or bearish. It generates a long entry when direction flips from bearish to bullish and a short entry when it flips the other way.…
This automated long strategy derives Fibonacci-style price levels from recent pivot highs and lows, then lets the user select one level as a candidate entry. When the preceding bar’s low crosses below the selected level and other state conditions allow a…
This script describes a US30-oriented strategy that uses RSI crossing the 50 level to generate directional signals, subject to configurable trading sessions and an ATR floor. A signal places a stop entry beyond the signal bar’s high or low by a set offset,…
This futures strategy looks for a two-bar directional impulse and then a pullback into a retracement zone based on the second bar’s range. It requires both bars to have substantial bodies and rising volume; same-direction bars or a mixed pair with a…
This indicator systematically draws trendlines by joining successive confirmed pivot highs and lows, with the pivot period configurable. It tracks the two most recent fractals of each type, plots higher highs, lower highs, higher lows, and lower lows, and…
This strategy uses three-bar swing patterns as entry signals and filters them with a daily fractal bias. A local bullish fractal occurs when a bar’s low is below the preceding low and the following bar’s low is higher; the bearish version reverses the high…
This long-only grid strategy divides a fixed ETH price range into configurable levels using either geometric or arithmetic spacing. When the closing price crosses downward through an unowned level, it opens a buy slot sized from the allocated investment. If…
This strategy packages seven candlestick signal types: pinbars, engulfing patterns, fractal highs and lows, single and double harami patterns, and large-body candles. Each type can be switched on or off independently, with configurable pinbar and body-size…