This strategy computes the Cumulative Weighted Average Price (CWAP) using a selectable source price such as close, with user-defined reset periods including daily, weekly, monthly or session.
1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
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
The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.
Overview
Entry signals trigger when price reaches the CWAP line offset by a sensitivity value. Optional ATR-based stop loss and take profit apply with configurable multipliers, or the CWAP line serves as trailing stop. The script plots the CWAP line, entry signals and background color on active trades. All settings are adjustable via inputs including alert enablement.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Strategy Enabled
bool
true
i_strategy_enabled
CWAP Source Price
source
close
i_cwap_src
CWAP Reset Period
string
No Reset
i_cwap_reset
Entry Sensitivity (CWAP Offset)
float
0.0
i_entry_sensitivity
Use ATR Stop Loss/Take Profit
bool
true
i_use_atr_sl_tp
ATR Period
integer
14
i_atr_period
Stop Loss Multiplier (x ATR)
float
2.0
i_sl_multiplier
Take Profit Multiplier (x ATR)
float
4.0
i_tp_multiplier
Use CWAP as Trailing Stop
bool
true
i_use_cwap_trailing
CWAP Trailing Offset
float
0.0
i_cwap_trailing_offset
Plot CWAP Line
bool
true
i_plot_cwap
Plot Entry Signals
bool
true
i_plot_signals
Show all 14 settings
Setting
Type
Default
Variable
Color Background on Trade
bool
false
i_bg_color
Enable Alerts
bool
true
i_alert_enabled
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 plots Bollinger Bands on the price chart using an EMA or SMA basis and a matching standard-deviation calculation. It enters long when price crosses back above the lower band and short when price crosses back below the upper band. An optional Intr
This strategy runs on the price chart to identify trade entries using volume sequences, specifically tracking consecutive declining volume candles followed by a volume surge at lower price levels. It provides webhook execution support for Zignaly copy trading
Plots Donchian Channels and identifies trading setups based on price testing the channel extremes during high volume spikes. In long mode, it places limit buy orders when the low touches the lower Donchian band with volume exceeding a volume moving average mul
This overlay strategy requires sequential confluence before it enters. A hybrid detector blends selected oscillators, including RSI, CCI, MFI, Bollinger percent B and Keltner percent K, and treats extreme overbought or oversold readings as the market regime. V
This strategy detects Low Volume Node rejection and acceptance signals on the price chart using an SMA basis and ATR bands. It calculates LVN upper and lower bands as the basis plus or minus the width multiplier times ATR. Long entries trigger on rejection or
This strategy calculates a rolling volume-weighted average price and Chris Moody's Williams Vix Fix to detect market bottoms and oversold volatility spikes. It plots in a separate pane and colors chart bars based on filtered exhaustion criteria and price actio