1Copy the scriptPress Copy script above, or the copy button on the code below.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.
Source Code
104 lines of Pine Script v6 from Quant-code/strategy/订单流分析策略.pine, published under Apache-2.0. Keep the author's credit and licence lines when you reuse it.
订单流分析 enters long trades when trading volume exceeds a relative threshold, price moves significantly above VWAP, net volume pressure is positive, and volume momentum is rising. Short trades are placed when price drops below VWAP under high volume and negative pressure. It manages risk through optional percentage-based stop loss and take profit orders. Plotting in a separate pane, the script evaluates on every tick, meaning signals can change intrabar before the bar closes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
时间周期调整
string
AUTO
timeframeInput
成交量阈值(相对于平均值)
float
2.0
volumeThreshold
价格变化阈值(%)
float
0.5
priceChangeThreshold
回溯期间
int
20
lookbackPeriod
启用止损
bool
true
useStopLoss
止损百分比
float
2.0
stopLossPercent
启用止盈
bool
true
useTakeProfit
止盈百分比
float
3.0
takeProfitPercent
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.
This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und
This strategy calculates the Inverse Fisher Transform on selectable technical factors including Money Flow Index, RSI, RSX, Karobein Oscillator, and Scaled Price. It smooths values using a Jurik Moving Average smoother and plots the resulting oscillator in a s
This strategy calculates the normalized rate of change between On-Balance Volume (OBV) and Price Volume Trend (PVT) indicators. It applies Bollinger Bands to this volume metric along with a Hodrick-Prescott filter array for time series decomposition. Displayed
This strategy plots a MACD oscillator in a separate pane and trades Bitcoin futures from zero-line and signal-line crosses. Optional early momentum signals, a volume filter, and a trend moving-average filter can confirm entries. It sizes positions as fixed con
This strategy calculates a Relative Strength Index (RSI) applied to the Volume Weighted Average Price (VWAP) rather than standard close values. It plots dedicated long and short RSI-VWAP lines with customizable overbought and oversold thresholds, alongside an
This strategy calculates the Volume Zone Oscillator (VZO) alongside volume spikes to detect directional momentum. It enters long positions when the VZO turns bullish accompanied by a volume spike, and enters short when the VZO turns bearish with elevated volum