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
Daily Loss Limit [Lab] detects a new trading day, stores starting equity, and tracks the day's highest and lowest equity. Trading permission depends on whether the loss from the day's starting equity stays inside a percentage of starting equity or a fixed dollar cap. Inputs switch between those limits, show a statistics table, and set fast and slow moving-average lengths for the example strategy. It plots on the price chart. No stop loss appears in the supplied code.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Max Daily Loss (% of Starting Equity)
float
2.0
maxDailyLossPct
Max Daily Loss ($)
float
200.0
maxDailyLossDollar
Use Percentage Limit
bool
true
usePercentLimit
Show Statistics Table
bool
true
showStats
Fast MA Length
int
10
maFastLen
Slow MA Length
int
30
maSlowLen
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.
SMC Quant Engine is an intraday trading strategy that combines Smart Money Concepts with a quantitative scoring system. It identifies order blocks and fair value gaps aligned with higher-timeframe 240-minute moving averages, ADX trend strength, and volume. Ent
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
This strategy trades EMA crossovers on the price chart. It enters long when the fast EMA crosses above the slow EMA and price is above a longer trend EMA, and enters short on the opposite cross below that filter. Entries are allowed only in a morning session o
This strategy demonstrates a training, testing, and deployment lifecycle for Pine Script strategies. It calculates a simple moving average (SMA 20) and generates buy signals on crossover. The runMode input selects between Training, Testing, and Deployment. In
This Pine Script v6 strategy plots fast and slow moving average crossovers on the price chart to generate buy and sell signals. It calculates EMA or alternative MA types on a selectable source and triggers entries when the lines cross, subject to confluence fi
This overlay strategy offers two selectable entry modes: a Bollinger squeeze on typical price and a simple moving-average cross. It filters trades by weekday, session, date range, and an optional news window, and can restrict direction or invert the side. Risk