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
311 lines of Pine Script v5 from Tradingview/jerry-strategy-dashboard.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
Traders can choose between Hull, EMA, SMA, WMA, or ALMA moving averages, filtered by secondary trend EMAs for long and short positions. Signals can also be restricted by custom trading sessions or date ranges. The script draws directly on the price chart with customizable candlestick coloring and an on-screen dashboard displaying performance metrics such as profit factor, win rate, and total trades. Note that default settings do not include a stop loss.
Moving average concavity and slope change detection
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Price
source
close
price
MA Length
int
25
ma_length
MA Type
string
hma
ma_type
Lookback
int
1
lookback
Std. Dev Length
int
21
stddev_len
Uptrend EMA Length
int
20
uptrend_ema
Downtrend EMA Length
int
20
downtrend_ema
Color MA Line
bool
false
color_ma_line
Color Candlesticks
bool
true
color_candlesticks
Show Divergence Labels
bool
false
show_divergence_labels
Show Trend Labels
bool
true
show_trend_labels
Strategy Start Date
time
timestamp("01 January 2020 00:00:00 UTC-5")
strategy_start
Show all 39 settings
Setting
Type
Default
Variable
Use Trading Hours
bool
false
use_trading_hours
Trading Time
session
0930-1600
trading_time
Long Trades
bool
true
long_trades
Short Trades
bool
true
short_trades
Dashboard Size
string
Medium
LabelSize
Text Color
color
color.new(#000000, 0 )
dashboard_text_color
Bull Color
color
color.new(#04fc04,0)
bull_color
Bear Color
color
color.new(#fc0404,0)
bear_color
Neutral Color
color
color.new(color.white,0)
neutral_color
Show Buy & Hold Return
bool
true
show_buy_and_hold
Start Date
time
timestamp("01 July 2021 00:00:00 UTC-5")
buy_hold_timeframe
Show Total Closed Trades
bool
true
show_total_closed_trades
Show Total W/L Trades
bool
true
show_winning_losing_trades_counter
Show Profit Factor
bool
true
show_profit_factor
| Target Profit Factor
float
1.50
target_profit_factor
Show Percent Profitable
bool
true
show_percent_profitable
| Target Win %
float
50.00
target_win_rate
Show Net Profit
bool
true
show_net_profit
| Target ROI %
float
20.00
target_roi_on_capital
Show Largest Winning Trade
bool
true
show_max_win_trade
Show Largest Losing Trade
bool
true
show_max_loss_trade
Show Avg. Trade
bool
true
show_avg_trade
Show Avg. Winning Trade
bool
true
show_avg_winning_trade
| Target ROI %
float
5.00
target_roi_on_wins
Show Avg. Losing Trade
bool
true
show_avg_losing_trade
Show Max DD
bool
true
show_max_dd
Show Open Trade
bool
true
show_open_trade
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 an Optimized Trend Tracker and a selectable moving-average support line on the price chart. It builds the average as SMA, EMA, WMA, TMA, VAR, WWMA, ZLEMA, or TSF, then offsets long and short stops by a percent of that average. Optional mark
Calculates a custom moving average (MaMA) by modifying the source price with price momentum, acceleration, and psychological win-rate probability before applying an EMA or SMA. Plots the adjusted moving average directly on the price chart alongside optional re
This long-only trend-following strategy combines Ichimoku Kinko Hyo components with higher timeframe moving average filters. It triggers long entries when price trades above a higher timeframe EMA and a bullish Tenkan-Sen cross above Kijun-Sen occurs under fav
This strategy plots a fast and a slow simple moving average on the price chart and trades long only. It enters when the fast average crosses above the slow average and closes the position when the fast average crosses back below. There is no stop loss or take
This strategy executes trades based on dual exponential moving average trend alignment, customizable Bollinger Bands, and normalized ATR volatility thresholds. It enters positions in the direction of the moving average trend and manages risk using a dynamic st
EMA Trend Surfer is a dual-timeframe trend-following strategy designed for index futures such as MES and MNQ. It determines overall trend direction using fast and slow exponential moving averages on a higher timeframe while seeking entry signals on a lower tim