The Mechanical Trader - Strategy

This strategy is designed to help traders backtest and execute a mechanical workflow based on price action concepts. It combines context filters (liquidity context, daily bias, EMA, and premium/discount) with three selectable entry modules, allowing users to build a rules-based approach that can be evaluated in Strategy Tester.
The goal is to translate discretionary price action ideas into explicit, repeatable rules. This can make it easier to backtest, review, and learn from a consistent process.
Core concepts / filters
- Liquidity context (e.g., sweep/reversal-type setups)
- Daily bias (optional)
- EMA filter (optional)
- Premium/Discount framework (optional)
Entry modules (selectable)
- Engulfing patterns
- Fair Value Gaps (FVG)
- Breakouts
Trade management
- Multiple stop-loss and take-profit options (including structure-based placement)
- Trailing stop options
- Break-even logic
- Partial take-profits
Position sizing
Includes risk-based sizing utilities intended to support consistent decision making. It can calculate sizing when risking a % of equity and size based on different stop methods (e.g., ATR or structure-based stops such as beyond an FVG or pattern). Stop levels can also be used in alert-based execution workflows.
Suggested workflow (testing & execution)
This script is intended to be tested and used on the selected chart timeframe (intraday or swing). Some constraints (like trading windows and max trades/day) are primarily intended for intraday use.
- Trading window (time filter)
- Max trades per day
- Clearly defined rules for entries, exits, and management
To reduce random noise when evaluating settings:
- Build a ruleset first (modules + filters + management)
- Use a minimum sample size (for example 20–30 trades total or more)
- If you decide to forward-test, keep settings unchanged during a defined sample (for example at least 20 trades) to avoid mixing results from different parameter sets
Note: Strategy Tester results depend on instrument settings and execution assumptions. For realistic evaluation, adjust Strategy Properties to match your market conditions.
How to access
See the Author’s Instructions below.
Disclaimer
Not financial advice. Trading involves risk. Past performance is not indicative of future results.
The publication chart image uses example Strategy Properties (Initial capital: $10,000; risk per trade: 0.5%; slippage: 6 ticks). Always adjust execution costs to your own broker/market conditions.
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب krissegaming مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.
تعليمات المؤلف
buy.stripe.com/14A14g4en2eVcgkeFPa3u00
Discord access included for support
إخلاء المسؤولية
نص برمجي للمستخدمين المدعوين فقط
يمكن فقط للمستخدمين الذين تمت الموافقة عليهم من قبل المؤلف الوصول إلى هذا البرنامج النصي. ستحتاج إلى طلب الإذن والحصول عليه لاستخدامه. يتم منح هذا عادةً بعد الدفع. لمزيد من التفاصيل، اتبع تعليمات المؤلف أدناه أو اتصل ب krissegaming مباشرة.
لا توصي TradingView بالدفع مقابل برنامج نصي أو استخدامه إلا إذا كنت تثق تمامًا في مؤلفه وتفهم كيفية عمله. يمكنك أيضًا العثور على بدائل مجانية ومفتوحة المصدر في نصوص مجتمعنا.
تعليمات المؤلف
buy.stripe.com/14A14g4en2eVcgkeFPa3u00
Discord access included for support