Q-Trend w/ SL+Trailing Stop — Strategy by danieltrinidad497
By version
Performance Metrics
- Author: version
- Symbol: OANDA:XAUUSD
- Timeframe: 1 hour
- Net P&L: +2,935,602.89 USD (+293.56%)
- Win Rate: 49.7%
- Profit Factor: 124.274
- Max Drawdown: 27,815.00 USD (0.81%)
- Total Trades: 1,658
Description
Q Trend Strategy Simple Q Trend Strategy mixed with a fixed SL and Trailing drawdown. Also using VIDYA Volumatic Indicator and Two Pole Oscillator for entry confirmation. Using The Indicator:-Some arrows and exit positions will pop up on the chart. You ONLY need to focus on the BLUE and RED arrows. -BLUE arrow is for LONG and RED arrow is for SHORT. Simple!- You can use it on most time frames but 15M,30M,1H timeframes work best. Try and get your entry as close as you can to the arrows and exit on the reversal.- If the delta volume is BELOW 20% you should just stay out of the market. Above 20% the trade has higher probability of being profitable.Feedback is appreciated. Enjoy Pinescript Code://version=5strategy("Q-Trend Strategy with SL and Trailing Stop + Date Range", overlay = true, default_qty_type = strategy.percent_of_equity, default_qty_value = 100)// ─────────────────────────────────────────────────────────────────────────────// Date Range FilteruseDateFilter = input.bool(true, "Use Date Range Filter", group="Date Range")startTime = input.time(timestamp("2024-01-01T00:00:00"), "Start Date", group="Date Range")endTime = input.time(timestamp("2026-12-31T23:59:59"), "End Date", group="Date Range")closeAfterEnd = input.bool(true, "Close positions after End Date?", group="Date Range", tooltip="If enabled, any open position will be closed on/after the End Date.")// Allow entries only inside the date windowinDateRange = not useDateFilter or (time >= startTime and time p ? m[1] : matr = ta.atr(atr_p)[1]epsilon = mult * atrchange_up = (mode == "Type B" ? ta.cross(src, m + epsilon) : ta.crossover(src, m + epsilon)) or src > m + epsilonchange_down = (mode == "Type B" ? ta.cross(src, m - epsilon) : ta.crossunder(src, m - epsilon)) or src = lss = open > h - d / 8 and open = endTime and strategy.position_size != 0 strategy.close_all(comment="End Date Close")plot(m, title="Trend Line", color=ls == "B" ? color.green : color.red, linewidth=2)