Strategy · Pine Script v6 · On the chart

No Wick + TQ Strategy

by riegodavid-git

A strategy that places limit orders at the midpoint of a candle with no wick on the entry side, when a trend quality measure is above a bull threshold or below a bear threshold.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code286
Settings29inputs
LicenceNone stated
Last update4 months ago25 Jun 2026

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

Further filters cover close position within the candle, minimum body size relative to ATR, trading sessions in Singapore time, a window after each hour turn, VWAP side and weekdays. Each trade has an ATR-based initial stop and a fixed reward-to-risk target, with fixed quantity and limit orders that expire after a set number of bars.

Details

Published by

riegodavid-git on GitHub

Draws

On the price chart

Markets

Forex

Timeframes

M1-M5

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
Fast Lengthint7lenFast
Slow Lengthint15lenSlow
Trend Lengthint4lenTrend
Noise TypestringLINEARtypeNoise
Noise Lengthint250lenNoise
Correction Factorint2corrFactor
Bull Threshold (TQ ≥)float2.0tqBullMin
Bear Threshold (TQ ≤ −)float2.0tqBearMin
Min Close Positionfloat0.5minClosePos
Min Body (× ATR)float0.2minBodyFactor
Enable Session FilterbooltruefilterSessions
Asia (06:00–12:00 SGT)boolfalsetradeAsia
Show all 29 settings
SettingTypeDefaultVariable
London (12:00–18:00 SGT)booltruetradeLondon
New York (18:00–00:00 SGT)booltruetradeNY
Avoid Macro WindowsbooltruefilterMacro
Bars After Hour Turnint5macroBars
Enable VWAP FilterbooltruefilterVwap
Anchor PeriodstringSessionvwapAnchor
Enable Day FilterboolfalsefilterDays
MondaybooltruetradeMonday
TuesdaybooltruetradeTuesday
WednesdaybooltruetradeWednesday
ThursdaybooltruetradeThursday
FridaybooltruetradeFriday
Limit Expiry (bars)int6limitExpire
ATR Lengthint14atrLen
ATR Multiplierfloat1.5atrMult
Risk:Reward Ratiofloat1.5rrMult
Fixed Quantityfloat1.0fixedQty
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

106 stars

This strategy trades the three-candle strike pattern filtered by trend direction and time sessions. It calculates market regime using linear regression and exponential or smoothed moving averages to distinguish between ranging and trending conditions. Risk man

Strategy v5 Candlestick patternsTrend
Updated 2 years ago · GPL-3.0 GitHub repository of 3 Candle Strike Strategy
3 stars

Hercules Strategy Rewrite is an automated backtesting strategy that generates entry signals using engulfing candlestick patterns, tick thresholds, and support or resistance level breakouts. It offers multi-layer filtering including moving average trend checks,

Strategy v5 Candlestick patternsSessions & time
Updated 5 months ago · None stated GitHub repository of Hercules Strategy Rewrite

Dskyz Adaptive Futures Elite (DAFE)

by mushroom-men-Trading
2 stars

Dskyz Adaptive Futures Elite (DAFE) is an automated strategy designed for intraday trading. It generates long and short entries by pairing fast and slow moving average crossovers with candlestick pattern detection, filtered by RSI, volume, volatility, and a hi

Strategy v6 Moving averagesCandlestick patterns
Updated 9 months ago · None stated GitHub repository of Dskyz Adaptive Futures Elite (DAFE)

Pin Bar Magic v1

by Alorse
330 stars

This strategy trades price action pin bar patterns aligned with moving average trend alignment on the main price chart. It defines uptrends or downtrends using a fan arrangement of three moving averages (6 EMA, 18 EMA, and 50 SMA). Entry conditions require a b

Strategy v4 Candlestick patternsTrend
Updated 2 months ago · None stated GitHub repository of Pin Bar Magic v1
285 stars

Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish

Strategy v4 Mean reversionCandlestick patterns
Updated 3 years ago · None stated GitHub repository of Mean Reversion Strategy
257 stars

Donald - Test Logic Futures is an overlay strategy designed for intraday futures trading. It combines kernel regression functions with exponential moving averages to evaluate price retracements and entry timing. Trades are filtered by session execution windows

Strategy v5 TrendMoving averages Repaints
Updated 6 weeks ago · None stated GitHub repository of Donald - Test Logic Futures

More Trend 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