Strategy · Pine Script v5 · On the chart

FTB Strategy

by Web3Degenerate· code credited to ZenAndTheArtOfTrading / www.PineScriptMastery.com

The FTB Strategy is a short-only overlay strategy targeting EURUSD during the European session from 0200-0700.

View on GitHub

GitHub stars2on the repository
Pine versionv5runs as is
Lines of code178
Settings18inputs
LicenceNone stated
Last update2 years ago13 Sep 2024

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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

FTB Strategy enters short positions when filters confirm RSI overbought, a bullish prior bar close, or a high price level within lookback bars, combined with a candle close percentage threshold. Stop loss is placed at the specified stop pips above the high, with take profit set by the risk-reward ratio. Position size is calculated from starting balance and risk per trade. The script plots signals and equity curves on the price chart. Filters and session times are main adjustable settings. It is a curve-fitted example strategy with no exit rules beyond the take profit.

Details

Published by

Web3Degenerate on GitHub

Code credit

ZenAndTheArtOfTrading / www.PineScriptMastery.com, as written in the script's header

Draws

On the price chart

Markets

Forex

Timeframes

M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Stop Pipsfloat2.0pips
Risk:Rewardfloat1.0rr
Timezonesession0200-0700timezone
RSI OB/OS?booltrueuseRsiFilter
Previous Bar Must Be Bullish?boolfalseuseCloseFilter
High FilterboolfalseuseHighFilter
High Lookbackint10highLookback
Candle Close %float0.5fib
RSI Lengthint3rsiLen
RSI OBfloat70.0rsiOB
Mondaybooltrued_monday
Tuesdaybooltrued_tuesday
Show all 18 settings
SettingTypeDefaultVariable
Wednesdaybooltrued_wednesday
Thursdaybooltrued_thursday
Fridaybooltrued_friday
Starting Balancefloat10000.0startBalance
Risk Per Tradefloat1.0riskPerTrade
Draw BacktesterbooltruedrawTester
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.

Similar Pine Scripts

13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy
4 stars

This strategy trades opening gap fades on the DAX index during the European Xetra session. At the 09:00 CET market open, it measures the opening price against the previous close relative to an ATR threshold. If a gap exceeds the threshold, it fades the move by

Strategy v6 Mean reversionSessions & time
Updated 2 months ago · MIT GitHub repository of DAX Gap Fade [trugurpala]
3 stars

This strategy plots Bollinger bands and a simple moving average on the price chart. It opens a short when price crosses above the upper band while below the average, and a long when price crosses below the lower band while above the average. Entries are allowe

Strategy v5 Volatility & bandsMoving averages
Updated 2 years ago · None stated GitHub repository of 周末布林带策略

RSI Mean Reversion

by GifariKemal
3 stars

This strategy plots entry signals, stop loss, take profit levels, and an information panel directly on the price chart. It combines a relative strength index mean reversion model with ATR percentile thresholds to filter trades based on volatility conditions. T

Strategy v5 Oscillators & momentumVolatility & bands
Updated 5 days ago · MIT GitHub repository of RSI Mean Reversion
2 stars

This mean-reversion trading strategy targets XAUUSD during the Asian trading session. It generates buy signals when price touches the lower Bollinger Band and RSI is oversold, and sell signals when price reaches the upper band and RSI is overbought. Trades are

Strategy v6 Mean reversionSessions & time
Updated 4 months ago · None stated GitHub repository of XAUUSD Mean Reversion Strategy

BB(10,2) + TP20 SameDay

by zraesdev-hub
1 stars

This strategy draws Bollinger Bands on the price chart and enters long when both the open and the close are below the lower band. Mode S1 exits the same day at a 20 percent take profit or forces a close if that target is missed. Mode S2 can hold for a set numb

Strategy v5 Volatility & bandsMean reversion
Updated 4 months ago · None stated GitHub repository of BB(10,2) + TP20 SameDay

More Mean reversion scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers